:root {
  --page-bg: #fcfcff;
  --surface: #ffffff;
  --surface-soft: #f7f8ff;
  --surface-blue: #f1f8ff;
  --surface-mint: #f1fbfb;
  --surface-violet: #f6f4ff;
  --text-primary: #111c44;
  --text-secondary: #68728f;
  --text-muted: #9aa3ba;
  --brand: #4b3df2;
  --brand-2: #7769ff;
  --brand-hover: #3d30d5;
  --brand-light: #edebff;
  --brand-border: #8179ff;
  --mint: #3abda3;
  --border: #e9ebf4;
  --border-strong: #dde0f0;
  --shadow-card: 0 8px 22px rgba(40, 47, 102, .06);
  --shadow-upload: 0 16px 36px rgba(66, 57, 198, .12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text-primary); background: var(--page-bg); -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, canvas, video { max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: min(var(--container), calc(100% - 80px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.hidden { display: none !important; }

/* Header */
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(233, 235, 244, .72); background: rgba(252, 252, 255, .86); backdrop-filter: blur(18px); }
.header__inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand__mark { width: 30px; height: 30px; position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(-24deg); }
.brand__mark i { display: block; border-radius: 8px 4px 8px 4px; background: linear-gradient(145deg, #2e26da, #7d72ff); box-shadow: 0 4px 9px rgba(76, 61, 242, .19); }
.brand__mark i:nth-child(2) { opacity: .75; transform: translateY(3px); }
.brand__mark i:nth-child(3) { opacity: .85; transform: translateY(-3px); }
.brand__mark i:nth-child(4) { opacity: .58; }
.brand__name { font-size: 21px; font-weight: 750; letter-spacing: -.035em; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-left: auto; margin-right: auto; }
.nav-link { color: #2a3351; border: 0; background: transparent; padding: 8px 2px; font-size: 13px; font-weight: 600; transition: color .18s ease; }
.nav-link:hover { color: var(--brand); }
.nav-link svg { width: 14px; height: 14px; margin-left: 3px; vertical-align: -2px; }
.nav-drop { position: relative; }
.nav-drop__menu { position: absolute; top: calc(100% + 11px); left: 50%; min-width: 185px; padding: 8px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255, 255, 255, .97); box-shadow: 0 16px 35px rgba(26, 30, 87, .12); opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s ease, visibility .18s ease, transform .18s ease; }
.nav-drop:hover .nav-drop__menu, .nav-drop:focus-within .nav-drop__menu, .nav-drop.is-open .nav-drop__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop__menu a { display: block; border-radius: 9px; padding: 9px 10px; color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.nav-drop__menu a:hover { color: var(--brand); background: var(--brand-light); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .menu-button { min-height: 40px; border: 1px solid var(--border); background: rgba(255, 255, 255, .82); color: var(--text-primary); box-shadow: 0 3px 12px rgba(45, 48, 107, .045); transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.icon-button:hover, .menu-button:hover { border-color: #cfd1ea; transform: translateY(-1px); background: #fff; }
.icon-button { width: 40px; border-radius: 50%; display: grid; place-items: center; }
.icon-button svg { width: 17px; height: 17px; }
.menu-button { border-radius: 12px; display: none; gap: 9px; align-items: center; justify-content: center; padding: 0 13px 0 16px; font-size: 13px; font-weight: 650; }
.menu-button svg { width: 18px; height: 18px; }
.mobile-nav { display: none; }
.mobile-nav a.active { color: var(--brand); background: var(--brand-light); }

/* Hero */
.hero { padding: 44px 0 38px; overflow: hidden; }
.hero__content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.privacy-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 100px; background: #f4f7ff; color: #657092; font-size: 11px; font-weight: 650; }
.privacy-pill svg { width: 14px; height: 14px; color: #6b82ab; }
.privacy-pill__info { opacity: .7; }
.hero h1 { margin: 22px 0 0; color: var(--text-primary); font-size: clamp(42px, 5.05vw, 67px); font-weight: 800; line-height: 1.045; letter-spacing: -.055em; }
.hero h1 span { display: inline-block; background: linear-gradient(90deg, #3c35f0 0%, #4f45f7 47%, #8177ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { max-width: 720px; margin: 19px 0 0; color: var(--text-secondary); font-size: 16px; font-weight: 500; line-height: 1.55; }
.upload-card { width: min(965px, 100%); min-height: 241px; margin-top: 30px; padding: 9px; border: 2px dashed var(--brand-border); border-radius: 24px; background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,247,255,.95)); box-shadow: var(--shadow-upload), inset 0 0 0 1px rgba(255,255,255,.8); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.upload-card:hover, .upload-card.is-dragging { border-color: var(--brand); background: #fbfbff; transform: translateY(-2px); box-shadow: 0 18px 42px rgba(66, 57, 198, .16); }
.upload-card--selected { border-style: solid; border-color: #5e5af6; }
.upload-card__content { height: 100%; min-height: 218px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.upload-card__icon { width: 47px; height: 47px; display: grid; place-items: center; color: var(--brand); }
.upload-card__icon svg { width: 42px; height: 42px; stroke-width: 1.65; }
.upload-card strong { margin-top: 10px; font-size: 16px; font-weight: 750; letter-spacing: -.025em; }
.upload-card__content > span { margin-top: 6px; color: #77819e; font-size: 13px; font-weight: 500; }
.select-file-button { display: inline-flex; align-items: center; gap: 9px; height: 46px; margin-top: 16px; padding: 0 11px 0 15px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(100deg, #4938f4 0%, #6d5eff 100%); box-shadow: 0 9px 18px rgba(75, 61, 242, .25); font-size: 13px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.select-file-button:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(75, 61, 242, .32); }
.select-file-button svg { width: 17px; height: 17px; stroke-width: 1.7; }
.select-file-button i { width: 1px; height: 21px; background: rgba(255,255,255,.35); }
.select-file-button__chevron { width: 15px !important; height: 15px !important; }
.upload-card small { margin-top: 10px; color: #919ab4; font-size: 11px; }
.format-row { display: flex; align-items: center; justify-content: center; gap: 7px; flex-wrap: wrap; margin-top: 18px; color: #8b94ad; font-size: 11px; font-weight: 500; }
.format-row b { padding: 4px 9px; border: 1px solid #edf0f7; border-radius: 100px; background: #fff; color: #68728f; font-size: 10px; font-weight: 700; }
.format-row em { font-style: normal; color: #8b94ad; }
.home-converter { width: min(965px, 100%); margin: 18px auto 0; text-align: left; }
.home-converter .settings { border-top: 0; padding-top: 0; }
.home-converter .file-list { margin-bottom: 18px; }
.home-converter .result-state { margin-top: 18px; }
.home-converter .processing { margin-top: 18px; }

/* Sections */
.section { padding: 34px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading h2, .tool-panel h2, .newsletter-card h2 { margin: 0; color: var(--text-primary); letter-spacing: -.04em; }
.section-heading h2 { font-size: 21px; font-weight: 760; }
.counter { display: inline-grid; width: 22px; height: 22px; margin-left: 4px; place-items: center; vertical-align: 2px; border-radius: 50%; color: var(--brand); background: var(--brand-light); font-size: 11px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 13px; font-weight: 700; }
.text-link svg { width: 17px; height: 17px; }
.popular-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px; margin-top: 22px; }
.task-card { position: relative; display: flex; flex-direction: column; min-height: 192px; overflow: hidden; padding: 18px 17px 15px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 3px 11px rgba(31, 40, 102, .025); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.task-card:hover { border-color: #d4d1ff; box-shadow: var(--shadow-card); transform: translateY(-3px); }
.task-card__art { height: 46px; display: flex; align-items: center; justify-content: center; gap: 5px; margin-bottom: 13px; }
.task-card__art > svg { width: 17px; height: 17px; color: #b3b9d1; }
.mini-file { display: inline-flex; position: relative; width: 27px; height: 33px; align-items: flex-end; justify-content: center; overflow: hidden; padding-bottom: 4px; border: 1.4px solid currentColor; border-radius: 4px; color: #7f91aa; background: #fff; font-size: 6px; font-weight: 800; }
.mini-file::after { content: ""; position: absolute; top: 0; right: 0; width: 8px; height: 8px; border-left: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; background: #fff; }
.mini-file--blank { color: #c4cadb; }
.mini-file--heic { color: #35a693; background: #f0fbf8; }
.mini-file--jpg { color: #f0aa1c; background: #fff8e9; }
.mini-file--webp { color: #5e66db; background: #f4f4ff; }
.mini-file--png { color: #7c6bf2; background: #f7f5ff; }
.mini-file--pdf { color: #f05c73; background: #fff3f5; align-items: center; padding: 0; }
.mini-file--pdf svg { width: 18px; height: 18px; }
.mini-file--pdf small { position: absolute; z-index: 2; bottom: 3px; font-size: 5px; font-weight: 800; }
.mini-file--pdf.second { margin-left: -7px; color: #f47a8a; opacity: .85; transform: translateY(4px); }
.mini-file--pdf.teal { color: #25abc2; background: #f0fbfd; }
.compress-icon { display: inline-grid; width: 34px; height: 34px; place-items: center; border: 1.5px solid #a6d7f1; border-radius: 50%; color: #46a9e0; }
.compress-icon svg { width: 19px; height: 19px; }
.task-card h3 { margin: 0; font-size: 15px; font-weight: 760; letter-spacing: -.035em; }
.task-card p { margin: 8px 0 0; color: #7d86a0; font-size: 11px; font-weight: 500; line-height: 1.45; }
.card-arrow { display: inline-grid; width: 23px; height: 23px; margin-top: auto; margin-left: auto; place-items: center; color: var(--brand); }
.card-arrow svg { width: 17px; height: 17px; }

/* Tool panels */
.tool-panels { padding-top: 2px; }
.tool-panels__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.tool-panel { position: relative; min-height: 405px; overflow: hidden; border: 1px solid var(--border); border-radius: 21px; }
.tool-panel--photo { background: linear-gradient(135deg, #f0fbfc 0%, #f7fffe 70%); }
.tool-panel--pdf { background: linear-gradient(135deg, #f7f5ff 0%, #fbfaff 80%); }
.tool-panel__content { position: relative; z-index: 1; padding: 27px 29px; }
.tool-panel h2 { font-size: 21px; font-weight: 780; }
.tool-panel--pdf h2 span { color: var(--brand); }
.tool-panel h2 + p { margin: 8px 0 0; color: #68728f; font-size: 12px; line-height: 1.55; }
.tool-panel__decor { position: absolute; pointer-events: none; }
.tool-panel__decor--sun { width: 43px; height: 43px; top: 38px; right: 97px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd1ad, #f4ab80); box-shadow: 0 12px 18px rgba(244, 171, 128, .2); }
.tool-panel__decor--mountains { display: flex; align-items: end; gap: 0; right: -20px; bottom: -5px; width: 205px; height: 185px; opacity: .52; }
.tool-panel__decor--mountains span { display: block; width: 115px; height: 135px; margin-right: -62px; transform: rotate(45deg); border-radius: 12px; background: linear-gradient(135deg, rgba(142, 218, 213, .2), rgba(108, 180, 199, .45)); }
.tool-panel__decor--mountains span:nth-child(2) { height: 100px; background: linear-gradient(135deg, rgba(205, 234, 227, .2), rgba(153, 218, 207, .48)); }
.tool-panel__decor--mountains span:nth-child(3) { height: 80px; background: linear-gradient(135deg, rgba(143, 214, 203, .15), rgba(107, 180, 181, .45)); }
.tool-panel__decor--orb { right: -32px; top: 5px; width: 206px; height: 206px; border-radius: 50%; background: radial-gradient(circle at 38% 42%, rgba(219, 211, 255, .67), rgba(246, 244, 255, 0) 68%); }
.format-icons { display: flex; align-items: end; gap: 6px; margin-top: 17px; }
.format-icon { display: inline-grid; width: 35px; height: 40px; place-items: end center; padding-bottom: 5px; border: 1px solid rgba(198, 219, 230, .72); border-radius: 6px; background: rgba(255,255,255,.92); color: #7a91a6; font-size: 7px; font-weight: 800; }
.format-icon::before { content: ""; width: 14px; height: 13px; margin-bottom: 2px; border: 1.2px solid currentColor; border-radius: 3px; }
.format-icon--heic { color: #34a996; }.format-icon--jpg { color: #2fb1c3; }.format-icon--png { color: #667699; }.format-icon--webp { color: #4e63d7; }.format-icon--avif { color: #6d80a1; }.format-icon--svg { color: #399aba; }
.benefit-list { display: grid; gap: 13px; margin: 21px 0 18px; padding: 0; list-style: none; }
.benefit-list li { display: flex; gap: 10px; align-items: flex-start; }
.benefit-list li > svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: #37b4a1; }
.benefit-list b { display: block; color: #2e5761; font-size: 11px; font-weight: 750; }
.benefit-list small { display: block; margin-top: 3px; color: #74939a; font-size: 10px; font-weight: 500; }
.panel-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border: 1px solid; border-radius: 9px; font-size: 11px; font-weight: 700; transition: transform .18s ease, background .18s ease; }
.panel-button:hover { transform: translateY(-1px); }
.panel-button svg { width: 15px; height: 15px; }
.panel-button--mint { border-color: #a9dad9; color: #2a858d; background: rgba(255,255,255,.67); }.panel-button--mint:hover { background: #fff; }
.panel-button--violet { border-color: #c9c5ff; color: var(--brand); background: rgba(255,255,255,.64); }.panel-button--violet:hover { background: #fff; }
.pdf-tile-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 20px 0; }
.pdf-tile { display: flex; min-height: 84px; padding: 10px 6px; align-items: center; justify-content: center; gap: 6px; flex-direction: column; border: 1px solid rgba(233, 235, 244, .95); border-radius: 10px; background: rgba(255,255,255,.89); color: #354266; font-size: 10px; font-weight: 700; text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.pdf-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 14px rgba(77, 67, 181, .08); }
.pdf-tile svg { width: 22px; height: 22px; color: #665afb; }
.pdf-tile:nth-child(1) svg { color: #ef7183; }.pdf-tile:nth-child(2) svg { color: #7772fb; }.pdf-tile:nth-child(3) svg { color: #27b5bb; }.pdf-tile:nth-child(4) svg { color: #f06279; }.pdf-tile:nth-child(5) svg { color: #6e9eea; }.pdf-tile:nth-child(6) svg { color: #7c68e9; }

/* Trust */
.trust-strip { padding-top: 26px; padding-bottom: 25px; }
.trust-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust-item { display: flex; align-items: flex-start; gap: 11px; }
.trust-item__icon { display: grid; flex: 0 0 auto; width: 32px; height: 32px; place-items: center; border: 1.5px solid #8981ff; border-radius: 11px; color: var(--brand); }
.trust-item__icon svg { width: 18px; height: 18px; }
.trust-item h3 { margin: 1px 0 4px; color: #253052; font-size: 12px; font-weight: 760; letter-spacing: -.02em; }
.trust-item p { margin: 0; color: #7a84a0; font-size: 10px; font-weight: 500; line-height: 1.45; }

/* Newsletter */
.newsletter-section { padding-top: 19px; padding-bottom: 36px; }
.newsletter-card { position: relative; display: flex; align-items: center; min-height: 181px; overflow: hidden; padding: 30px 32px; border: 1px solid #e8eaff; border-radius: 20px; background: linear-gradient(104deg, #f5f9ff 0%, #f9f8ff 64%, #f0eeff 100%); }
.newsletter-card__copy { position: relative; z-index: 2; }
.newsletter-card h2 { font-size: 19px; font-weight: 760; }
.newsletter-card p { margin: 8px 0 15px; color: #6d7793; font-size: 12px; line-height: 1.55; }
.newsletter-form { display: flex; gap: 7px; width: min(100%, 322px); }
.newsletter-form input { min-width: 0; width: 100%; height: 40px; padding: 0 12px; border: 1px solid #e1e5f2; border-radius: 9px; outline: 0; background: #fff; color: var(--text-primary); font-size: 12px; transition: border-color .18s ease, box-shadow .18s ease; }
.newsletter-form input:focus { border-color: #9d96ff; box-shadow: 0 0 0 3px rgba(75,61,242,.1); }
.newsletter-form button { flex: 0 0 auto; height: 40px; padding: 0 14px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(100deg, #4938f4, #6d5eff); font-size: 12px; font-weight: 700; box-shadow: 0 7px 14px rgba(75,61,242,.18); }
.form-status { margin: 10px 0 0; color: var(--mint); font-size: 12px; font-weight: 700; }
.form-status.is-error { color: #e74d65; }
.envelope-art { position: absolute; right: 105px; bottom: 21px; width: 146px; height: 105px; border-radius: 10px 10px 16px 16px; background: linear-gradient(142deg, #766bf0, #9a91ff); box-shadow: 0 16px 25px rgba(90, 79, 228, .2); transform: rotate(1.5deg); }
.envelope-art::before, .envelope-art::after { content: ""; position: absolute; left: 0; width: 100%; height: 56px; background: #8a80fa; clip-path: polygon(0 0, 50% 78%, 100% 0, 100% 100%, 0 100%); }
.envelope-art::before { top: 0; }.envelope-art::after { bottom: 0; transform: rotate(180deg); background: #8076f2; }
.envelope-art__paper { position: absolute; z-index: -1; top: -41px; left: 32px; width: 80px; height: 76px; border-radius: 6px; background: #fffdf7; box-shadow: 0 8px 15px rgba(59, 56, 134, .13); }
.envelope-art__paper::after { content: ""; position: absolute; top: 17px; left: 18px; width: 43px; height: 4px; border-radius: 5px; background: #f1d5b0; box-shadow: 0 14px 0 #e9e9f4, 0 28px 0 #e9e9f4; }
.envelope-art__flap { position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 67px; background: #a39bff; clip-path: polygon(0 0, 50% 72%, 100% 0); }
.envelope-art__spark { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: #ffad6f; transform: rotate(45deg); }
.envelope-art__spark--one { top: -27px; right: -24px; }.envelope-art__spark--two { bottom: 12px; left: -35px; width: 6px; height: 6px; background: #9b91ff; }

/* Footer */
.site-footer { padding: 31px 0 38px; border-top: 1px solid #eef0f7; background: rgba(255,255,255,.73); }
.footer__grid { display: grid; grid-template-columns: 1.34fr 1fr 1fr 1.16fr 1fr; gap: 22px; align-items: start; }
.footer-brand p { margin: 28px 0 0; color: #9aa3ba; font-size: 10px; }
.footer-links { display: grid; gap: 8px; }
.footer-links h3 { margin: 0 0 2px; color: #293253; font-size: 11px; font-weight: 780; }
.footer-links a { color: #65708d; font-size: 10px; font-weight: 500; transition: color .18s ease; }
.footer-links a:hover { color: var(--brand); }
.footer-social { display: grid; justify-items: end; gap: 18px; }
.footer-social > div { display: flex; gap: 9px; }
.footer-social a { display: grid; width: 37px; height: 37px; place-items: center; border: 1.3px solid #68a8ff; border-radius: 50%; color: #2385ee; transition: transform .18s ease, background .18s ease; }
.footer-social a:hover { background: #eff7ff; transform: translateY(-2px); }.footer-social svg { width: 18px; height: 18px; }
.footer-social p { margin: 0; color: #79839f; font-size: 10px; font-weight: 500; white-space: nowrap; }.footer-social p span { color: #f15c82; }

/* Accessible focus */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(75, 61, 242, .28); outline-offset: 3px; }

/* Optional dark toggle */
.theme-night { --page-bg: #121428; --surface: #1b1e38; --surface-soft: #202440; --surface-blue: #19263e; --surface-mint: #162c31; --surface-violet: #252142; --text-primary: #f5f6ff; --text-secondary: #b5bdd4; --text-muted: #919ab2; --border: #2f3452; --border-strong: #42486d; --brand-light: rgba(117, 105, 255, .17); }
.theme-night .site-header { background: rgba(18, 20, 40, .86); }.theme-night .task-card, .theme-night .pdf-tile, .theme-night .format-row b, .theme-night .icon-button, .theme-night .menu-button, .theme-night .newsletter-form input { background: var(--surface); }.theme-night .upload-card { background: linear-gradient(135deg, rgba(35, 39, 69, .98), rgba(27, 30, 56, .98)); }.theme-night .site-footer { background: #171a31; }.theme-night .nav-link { color: var(--text-secondary); }.theme-night .tool-panel--photo { background: linear-gradient(135deg, #162e35, #17272d); }.theme-night .tool-panel--pdf { background: linear-gradient(135deg, #292344, #201d36); }.theme-night .newsletter-card { background: linear-gradient(104deg, #202841, #2b2748); }.theme-night .task-card h3, .theme-night .trust-item h3, .theme-night .footer-links h3, .theme-night .benefit-list b { color: var(--text-primary); }
.theme-night .theme-toggle svg use { href: "#i-sun"; }

@media (max-width: 1120px) {
  .container { width: min(var(--container), calc(100% - 48px)); }
  .desktop-nav { gap: 17px; }
  .popular-grid { grid-template-columns: repeat(3, 1fr); }
  .task-card { min-height: 174px; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }.footer-social { grid-column: 1 / -1; justify-items: start; display: flex; align-items: center; }.footer-social p { margin-left: 6px; }
}

@media (max-width: 850px) {
  .desktop-nav { display: none; }.mobile-nav { display: grid; position: fixed; z-index: 49; top: 78px; left: 0; right: 0; gap: 7px; padding: 14px 24px 21px; border-bottom: 1px solid var(--border); background: rgba(252,252,255,.98); box-shadow: 0 18px 30px rgba(39, 43, 100, .08); transform: translateY(-125%); opacity: 0; pointer-events: none; transition: transform .24s ease, opacity .24s ease; }.mobile-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }.mobile-nav a { padding: 10px 12px; border-radius: 10px; color: var(--text-secondary); font-size: 14px; font-weight: 700; }.mobile-nav a:hover { color: var(--brand); background: var(--brand-light); }
  .tool-panels__grid { grid-template-columns: 1fr; }.tool-panel { min-height: auto; }.trust-strip__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }.footer__grid { grid-template-columns: 1.5fr 1fr 1fr; }.footer-brand { grid-column: 1 / -1; }.footer-brand p { margin-top: 12px; }
}

@media (max-width: 650px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .header__inner { min-height: 70px; }.brand__mark { width: 27px; height: 27px; }.brand__name { font-size: 19px; }.icon-button { display: none; }.menu-button { height: 39px; padding: 0 11px 0 13px; }.mobile-nav { top: 70px; padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 34px; padding-bottom: 22px; }.hero h1 { margin-top: 18px; font-size: clamp(35px, 11vw, 46px); line-height: 1.08; }.hero__lead { margin-top: 15px; font-size: 14px; }.upload-card { min-height: 238px; margin-top: 24px; border-radius: 20px; }.upload-card__content { min-height: 216px; }.select-file-button { width: min(250px, 94%); justify-content: center; }.format-row { margin-top: 16px; }.format-row > span { width: 100%; }.format-row em { display: none; }
  .section { padding: 25px 0; }.section-heading h2 { font-size: 19px; }.text-link { font-size: 12px; }.popular-grid { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; }.task-card { min-height: 177px; padding: 15px 13px 12px; border-radius: 14px; }.task-card h3 { font-size: 13px; }.task-card p { font-size: 10px; }.task-card__art { margin-bottom: 8px; transform: scale(.9); transform-origin: left center; }.card-arrow { margin-right: 0; }
  .tool-panel { border-radius: 18px; }.tool-panel__content { padding: 23px 20px; }.tool-panel h2 { font-size: 20px; }.pdf-tile-grid { gap: 7px; }.pdf-tile { min-height: 80px; font-size: 9px; }.trust-strip__grid { grid-template-columns: 1fr; gap: 17px; }.trust-item__icon { width: 30px; height: 30px; }.trust-item h3 { font-size: 12px; }.newsletter-card { min-height: 244px; padding: 24px 19px 135px; border-radius: 18px; }.newsletter-card h2 { font-size: 18px; }.newsletter-card p { font-size: 11px; }.newsletter-form { width: 100%; }.newsletter-form button { padding: 0 11px; }.envelope-art { right: 23px; bottom: 15px; transform: scale(.72) rotate(1.5deg); transform-origin: bottom right; }.footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }.footer-brand, .footer-social { grid-column: 1 / -1; }.footer-links { gap: 7px; }.footer-social { display: flex; justify-content: space-between; }.footer-social p { margin-left: auto; }
}

@media (max-width: 390px) { .popular-grid { grid-template-columns: 1fr; }.task-card { min-height: 154px; }.task-card p br { display: none; } .task-card__art { height: 39px; } .task-card h3 { margin-top: 0; }.footer__grid { grid-template-columns: 1fr; }.footer-brand, .footer-social { grid-column: auto; }.footer-social { justify-content: flex-start; gap: 9px; flex-wrap: wrap; }.footer-social p { margin-left: 5px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* ===== Tool page styles (workspace) ===== */
.tool-hero { padding: 46px 0 32px; text-align: center; position: relative; overflow: hidden; }
.tool-hero::before { content: ""; position: absolute; z-index: -1; width: 600px; height: 310px; border-radius: 50%; background: radial-gradient(circle, rgba(94,80,255,.10), rgba(94,80,255,0) 70%); left: 50%; top: -160px; transform: translateX(-50%); }
.breadcrumbs { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs svg { width: 14px; height: 14px; }
.tool-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; color: #5a6380; background: var(--brand-light); font-size: 12px; font-weight: 700; }
.tool-kicker--server { color: #6e567c; background: #f8f2ff; }
.tool-kicker svg { color: var(--brand); width: 14px; height: 14px; }
.tool-title { margin: 14px auto 10px; max-width: 820px; font-size: clamp(34px,5vw,58px); line-height: 1.06; letter-spacing: -.055em; font-weight: 800; }
.tool-title em { color: var(--brand); font-style: normal; }
.tool-description { max-width: 660px; margin: 0 auto; color: var(--text-secondary); font-size: 17px; line-height: 1.55; }

.workspace { padding: 10px 0 86px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 24px; align-items: start; }
.main-panel { min-width: 0; }
.tool-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-card); overflow: hidden; }
.tool-card::after { content: ""; pointer-events: none; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(150deg, rgba(255,255,255,0) 30%, rgba(112,99,255,.035)); }
.process-heading { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.process-heading h2 { margin: 0; letter-spacing: -.03em; font-size: 20px; font-weight: 760; }
.step-row { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.step { width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-strong); background: var(--surface); font-size: 11px; font-weight: 700; }
.step.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.step-line { width: 22px; height: 1px; background: var(--border-strong); }

.upload-zone { position: relative; z-index: 1; min-height: 266px; border: 2px dashed var(--brand-border); border-radius: 20px; background: linear-gradient(135deg, rgba(244,243,255,.88), rgba(250,252,255,.9)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; transition: .2s ease; }
.upload-zone:hover, .upload-zone.is-dragover, .upload-zone.dragover { border-color: var(--brand); background: #f5f4ff; box-shadow: inset 0 0 0 4px rgba(75,61,242,.04); }
.upload-icon { width: 54px; height: 54px; border-radius: 18px; background: var(--brand-light); display: grid; place-items: center; color: var(--brand); margin-bottom: 12px; }
.upload-icon svg { width: 28px; height: 28px; stroke-width: 1.65; }
.upload-title { font-size: 18px; margin: 0 0 4px; letter-spacing: -.02em; font-weight: 750; }
.upload-copy { margin: 0 0 15px; color: var(--text-secondary); font-size: 14px; }
.upload-button { display: inline-flex; align-items: center; gap: 9px; border: 0; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 11px 20px rgba(75,61,242,.2); border-radius: 12px; padding: 13px 18px; font-size: 14px; font-weight: 700; }
.upload-button:hover { transform: translateY(-1px); box-shadow: 0 14px 24px rgba(75,61,242,.25); }
.upload-limit { margin: 12px 0 0; color: var(--text-muted); font-size: 12px; }
.file-input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }

.file-state { position: relative; z-index: 2; display: none; }
.file-state.is-visible { display: block; }
.upload-zone.has-file { display: none; }
.file-list { display: grid; gap: 10px; margin-bottom: 20px; }
.file-item { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--border); background: #fff; border-radius: 14px; }
.file-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--brand); background: var(--brand-light); }
.file-icon.pdf { color: #e0576e; background: #fff1f3; }
.file-meta { min-width: 0; flex: 1; }
.file-name { display: block; color: var(--text-primary); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-info { display: block; color: var(--text-muted); font-size: 12px; margin-top: 3px; }
.file-remove { width: 34px; height: 34px; border: 0; background: transparent; color: var(--text-muted); border-radius: 10px; display: grid; place-items: center; transition: color .18s ease, background .18s ease; }
.file-remove:hover { color: #e74d65; background: #fff0f2; }

.settings { border-top: 1px solid var(--border); padding-top: 22px; }
.settings-title { font-size: 16px; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 750; }
.setting-grid, .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.field { padding: 13px; border: 1px solid var(--border); background: #fbfcff; border-radius: 14px; }
.field.field-full { grid-column: 1 / -1; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-secondary); font-size: 12px; font-weight: 700; margin-bottom: 9px; }
.field-value { color: var(--brand); }
.select, .text-input { width: 100%; border: 1px solid var(--border); background: #fff; border-radius: 10px; color: var(--text-primary); padding: 10px 11px; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.select:focus, .text-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(75,61,242,.1); }
.range { width: 100%; accent-color: var(--brand); }
.choice-row { display: flex; gap: 7px; flex-wrap: wrap; }
.choice { border: 1px solid var(--border); background: #fff; border-radius: 9px; padding: 7px 10px; color: var(--text-secondary); font-size: 12px; font-weight: 700; transition: all .18s ease; }
.choice.is-selected, .choice:hover { border-color: #a49eff; color: var(--brand); background: var(--brand-light); }
.toggle { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.toggle input { appearance: none; width: 38px; height: 21px; background: #cfd5e4; border-radius: 99px; position: relative; transition: .2s; flex-shrink: 0; }
.toggle input::before { content: ""; position: absolute; width: 15px; height: 15px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); transition: .2s; }
.toggle input:checked { background: var(--brand); }
.toggle input:checked::before { transform: translateX(17px); }

.tool-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.convert-button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg,var(--brand),var(--brand-2)); font-weight: 800; font-size: 15px; box-shadow: 0 12px 23px rgba(75,61,242,.22); transition: transform .18s ease, box-shadow .18s ease; }
.convert-button:hover { transform: translateY(-1px); box-shadow: 0 15px 27px rgba(75,61,242,.27); }
.add-more { width: 50px; height: 50px; border: 1px solid var(--border); background: #fff; color: var(--brand); display: grid; place-items: center; border-radius: 13px; transition: all .18s ease; }
.add-more:hover { border-color: #aaa4ff; background: var(--brand-light); }
.add-more svg { width: 20px; height: 20px; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--brand); padding: 9px 13px; font-size: 13px; font-weight: 700; transition: border-color .18s ease, background .18s ease; }
.btn-outline:hover { border-color: var(--brand-border); background: var(--brand-light); }
.clear-button { flex: 0 0 auto; min-height: 50px; border: 1px solid var(--border); border-radius: 13px; padding: 0 16px; background: #fff; color: var(--text-secondary); font-weight: 750; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.clear-button:hover { border-color: var(--brand-border); color: var(--brand); background: var(--brand-light); }
.logo-upload-zone { margin-top: 8px; display: grid; gap: 10px; }
.logo-upload-zone img { max-width: 90px; max-height: 54px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: #fff; }
.processing { display: none; margin-top: 16px; border-radius: 13px; padding: 13px; color: var(--text-secondary); background: var(--surface-soft); font-size: 13px; align-items: center; gap: 10px; }
.processing.is-visible { display: flex; }
.processing i { width: 18px; height: 18px; border: 2px solid #d7d3ff; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; flex-shrink: 0; }
.progress-track, .progress-track-pdf { width: 100%; height: 8px; overflow: hidden; border-radius: 999px; background: #e9e8ff; }
.progress-fill, .progress-fill-pdf { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(135deg, var(--brand), var(--brand-2)); transition: width .2s ease; }
.progress-text { margin: 0; color: var(--text-secondary); font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }

.result-state { display: none; position: relative; z-index: 2; text-align: center; padding: 4px 0 2px; }
.result-state.is-visible { display: block; }
.result-icon { width: 58px; height: 58px; margin: 4px auto 10px; border-radius: 20px; color: var(--mint); background: rgba(59,185,163,.1); display: grid; place-items: center; }
.result-icon svg { width: 28px; height: 28px; stroke-width: 2; }
.result-title { font-size: 20px; letter-spacing: -.025em; margin: 0 0 5px; font-weight: 760; }
.result-copy { color: var(--text-secondary); font-size: 14px; margin: 0 0 18px; }
.result-summary { max-width: 500px; margin: 0 auto 18px; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.result-summary span { display: block; padding: 11px 8px; color: var(--text-muted); font-size: 11px; border-right: 1px solid var(--border); text-align: center; }
.result-summary span:last-child { border-right: 0; }
.result-summary strong { display: block; color: var(--text-primary); font-size: 13px; margin-top: 2px; font-weight: 700; }
.download-button { display: inline-flex; align-items: center; gap: 9px; border: 0; border-radius: 12px; padding: 13px 18px; color: #fff; background: var(--brand); font-weight: 800; box-shadow: 0 8px 16px rgba(75,61,242,.18); transition: all .18s ease; }
.download-button:hover { background: var(--brand-hover); transform: translateY(-1px); }
.download-button svg { width: 18px; height: 18px; }
.start-over { display: block; border: 0; background: transparent; color: var(--brand); margin: 11px auto 0; font-size: 13px; font-weight: 700; transition: opacity .18s ease; }
.start-over:hover { opacity: .8; }
.result-card { display: grid; gap: 8px; padding: 13px; border: 1px solid var(--border); border-radius: 14px; background: #fff; text-align: left; }
.result-card img { width: 100%; max-height: 180px; object-fit: contain; border-radius: 10px; background: var(--surface-soft); }
.result-card__name { color: var(--text-primary); font-weight: 700; overflow-wrap: anywhere; }
.result-card__size { color: var(--text-muted); font-size: 12px; }
.result-state .file-list { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0 0 18px; }

.resize-inputs, .toggle-row, .watermark-grid { display: grid; gap: 10px; }
.resize-inputs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
.resize-separator { color: var(--text-muted); font-weight: 800; }
.toggle-row { grid-template-columns: auto 1fr; align-items: center; color: var(--text-secondary); font-size: 13px; }
.toggle-row .toggle { width: 38px; height: 21px; }
.toggle-label, .sub-label { color: var(--text-secondary); font-size: 13px; }
.watermark-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sub-control { margin-top: 6px; }
.bg-color-picker { width: 46px; height: 38px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.info-callout { margin-top: 10px; padding: 11px 12px; border: 1px solid #dfe7ff; border-radius: 12px; background: #f7f9ff; color: var(--text-secondary); font-size: 12px; line-height: 1.5; }
.seo-list { margin: 14px 0 0; padding-left: 20px; color: var(--text-secondary); line-height: 1.65; }
.seo-list li + li { margin-top: 6px; }
.comparison-table { width: 100%; margin-top: 14px; border-collapse: collapse; overflow: hidden; border-radius: 14px; font-size: 13px; }
.comparison-table th, .comparison-table td { padding: 11px 12px; border: 1px solid var(--border); text-align: left; }
.comparison-table th { background: var(--surface-soft); color: var(--text-primary); }

.pdf-file-item { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.pdf-file-item__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff1f3; color: #e0576e; }
.pdf-file-item__info { min-width: 0; }
.pdf-file-item__name { overflow: hidden; color: var(--text-primary); font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.pdf-file-item__size { margin-top: 3px; color: var(--text-muted); font-size: 12px; }
.page-preview-grid { margin-top: 18px; }
.pages-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.page-thumb { position: relative; min-height: 164px; padding: 8px; border: 2px solid var(--border); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.page-thumb.selected { border-color: var(--brand-border); box-shadow: 0 8px 20px rgba(75,61,242,.12); }
.page-thumb:hover { transform: translateY(-2px); }
.page-thumb canvas { display: block; width: 100%; border-radius: 8px; background: var(--surface-soft); }
.page-thumb__label, .page-thumb__rotate-badge { position: absolute; left: 8px; bottom: 8px; display: grid; min-width: 24px; height: 24px; place-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; }
.page-thumb__rotate-badge { left: auto; right: 8px; background: var(--mint); }
.page-thumb__controls { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transition: opacity .18s ease; }
.page-thumb:hover .page-thumb__controls { opacity: 1; }
.page-thumb__btn { width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--brand); font-weight: 800; }
.page-thumb__btn.delete { color: #e74d65; }
.result-box { display: grid; justify-items: center; gap: 12px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface-soft); }
.result-box__title { margin: 0; color: var(--text-primary); font-weight: 800; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 15px; border-radius: 12px; font-weight: 800; }
.btn--primary { color: #fff; background: var(--brand); }
.btn--large { min-height: 50px; padding: 0 20px; }

/* Content pages */
.content-hero { padding: 54px 0 24px; text-align: center; }
.content-kicker { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; color: #5a6380; background: var(--brand-light); font-size: 12px; font-weight: 700; }
.content-title { max-width: 820px; margin: 15px auto 10px; font-size: clamp(34px,5vw,58px); line-height: 1.06; letter-spacing: -.055em; font-weight: 800; }
.content-title em { color: var(--brand); font-style: normal; }
.content-lead { max-width: 700px; margin: 0 auto; color: var(--text-secondary); font-size: 17px; line-height: 1.6; }
.content-page { padding: 18px 0 82px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; box-shadow: var(--shadow-card); }
.content-card + .content-card { margin-top: 18px; }
.content-card h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -.035em; }
.content-card h3 { margin: 20px 0 8px; font-size: 17px; letter-spacing: -.02em; }
.content-card p, .content-card li { color: var(--text-secondary); line-height: 1.65; }
.content-card ul, .content-card ol { margin: 12px 0 0; padding-left: 20px; }
.form-grid { display: grid; gap: 12px; }
.form-grid .field { display: block; }
.text-area { width: 100%; min-height: 132px; resize: vertical; border: 1px solid var(--border); background: #fff; border-radius: 10px; color: var(--text-primary); padding: 10px 11px; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.text-area:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(75,61,242,.1); }
.content-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.directory-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px auto 0; }
.directory-tabs a { display: inline-flex; min-height: 36px; align-items: center; border: 1px solid var(--border); border-radius: 999px; padding: 0 13px; color: var(--text-secondary); background: #fff; font-size: 12px; font-weight: 750; }
.directory-tabs a:hover { border-color: var(--brand-border); color: var(--brand); background: var(--brand-light); }
.tool-directory { display: grid; gap: 18px; }
.tool-section-title { margin: 0 0 14px; font-size: 22px; letter-spacing: -.035em; }
.tool-directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tool-link-card { display: grid; gap: 7px; min-height: 126px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: #fff; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.tool-link-card:hover { transform: translateY(-2px); border-color: #d4d1ff; box-shadow: var(--shadow-card); }
.tool-link-card b { color: var(--text-primary); font-size: 15px; }
.tool-link-card span { color: var(--text-secondary); font-size: 12px; line-height: 1.45; }
.tool-link-card i { margin-top: auto; color: var(--brand); font-style: normal; font-size: 12px; font-weight: 800; }

/* PDF catalog */
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.tools-grid .tool-card { display: grid; gap: 10px; color: var(--text-primary); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.tools-grid .tool-card:hover { transform: translateY(-2px); border-color: #d4d1ff; box-shadow: var(--shadow-upload); }
.tool-card--highlight { border-color: #c9c5ff; background: linear-gradient(135deg, #fff, #f7f5ff); }
.tool-card__icon-wrap { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-light); color: var(--brand); }
.tool-card__arrow { justify-self: end; color: var(--brand); font-weight: 800; }

/* Sidebar */
.sidebar { display: grid; gap: 14px; position: sticky; top: 96px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: 0 6px 18px rgba(38,48,112,.035); }
.side-card h3 { margin: 0 0 12px; font-size: 15px; letter-spacing: -.02em; font-weight: 750; }
.side-links { display: grid; gap: 4px; }
.side-links a { padding: 8px 9px; border-radius: 9px; color: var(--text-secondary); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 8px; transition: all .18s ease; }
.side-links a:hover { color: var(--brand); background: var(--brand-light); }
.side-links svg { width: 14px; height: 14px; flex-shrink: 0; }
.side-card--safe { background: linear-gradient(135deg,#f1fbf9,#f8fffd); border-color: #d6f3ea; }
.safe-line { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0; color: #4c6b6a; font-size: 12px; line-height: 1.45; }
.safe-line svg { color: var(--mint); width: 14px; height: 14px; margin-top: 2px; flex-shrink: 0; }
.sidebar-note { color: var(--text-muted); font-size: 12px; line-height: 1.5; }

/* Trust row for tool pages */
.trust-row { padding: 0 0 72px; }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 12px; color: var(--brand); background: var(--brand-light); }
.trust-icon svg { width: 18px; height: 18px; }
.trust-item h3 { margin: 1px 0 3px; font-size: 14px; letter-spacing: -.02em; font-weight: 750; color: var(--text-primary); }
.trust-item p { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.45; }

/* Info section / FAQ */
.info-section { padding: 58px 0 76px; border-top: 1px solid var(--border); background: #fff; }
.info-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.info-section h2 { font-size: clamp(24px,3vw,32px); letter-spacing: -.04em; margin: 0 0 14px; font-weight: 780; color: var(--text-primary); }
.info-section p { color: var(--text-secondary); line-height: 1.65; margin-bottom: 12px; }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; padding: 0 15px; background: #fff; transition: border-color .18s ease; }
.faq details[open] { border-color: #cfd1ea; }
.faq summary { padding: 14px 0; color: var(--text-primary); font-weight: 700; cursor: pointer; list-style: none; font-size: 14px; transition: color .18s ease; }
.faq summary:hover { color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding-bottom: 14px; margin: 0; font-size: 13px; line-height: 1.55; color: var(--text-secondary); }

/* Dark theme for tool pages */
.theme-night .tool-card { background: var(--surface); }
.theme-night .upload-zone { background: linear-gradient(135deg, rgba(35,39,69,.88), rgba(27,30,56,.9)); border-color: #4a42c4; }
.theme-night .upload-zone:hover { background: #1e2040; }
.theme-night .file-item { background: var(--surface); }
.theme-night .select, .theme-night .text-input { background: var(--surface); color: var(--text-primary); border-color: var(--border); }
.theme-night .choice { background: var(--surface); color: var(--text-secondary); border-color: var(--border); }
.theme-night .side-card { background: var(--surface); border-color: var(--border); }
.theme-night .info-section { background: var(--surface-soft); }
.theme-night .faq details { background: var(--surface); border-color: var(--border); }
.theme-night .result-summary { background: var(--surface); }
.theme-night .process-heading h2, .theme-night .settings-title, .theme-night .upload-title, .theme-night .result-title, .theme-night .side-card h3, .theme-night .trust-item h3, .theme-night .faq summary, .theme-night .info-section h2 { color: var(--text-primary); }
.theme-night .site-footer { background: #171a31; border-color: var(--border); }
.theme-night .footer-links h3 { color: var(--text-primary); }

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-button { display: inline-flex; }
  .mobile-nav { display: grid; position: fixed; z-index: 49; top: 78px; left: 0; right: 0; gap: 7px; padding: 14px 24px 21px; border-bottom: 1px solid var(--border); background: rgba(252,252,255,.98); box-shadow: 0 18px 30px rgba(39, 43, 100, .08); transform: translateY(-125%); opacity: 0; pointer-events: none; transition: transform .24s ease, opacity .24s ease; }
  .theme-night .mobile-nav { background: rgba(18,20,40,.98); }
  .mobile-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .mobile-nav a { padding: 10px 12px; border-radius: 10px; color: var(--text-secondary); font-size: 14px; font-weight: 700; }
  .mobile-nav a:hover { color: var(--brand); background: var(--brand-light); }
  .workspace-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .container { width: min(100% - 32px, var(--container)); }
  .header__inner { min-height: 66px; }
  .brand__name { font-size: 20px; }
  .header-actions .icon-button { display: none; }
  .menu-button { display: inline-flex; }
  .mobile-nav { top: 66px; }
  .tool-hero { padding: 32px 0 23px; }
  .tool-description { font-size: 15px; }
  .tool-card { padding: 16px; border-radius: 20px; }
  .process-heading { align-items: flex-start; }
  .step-row { display: none; }
  .upload-zone { min-height: 245px; padding: 24px 15px; }
  .upload-button { width: 100%; justify-content: center; }
  .setting-grid, .settings-grid { grid-template-columns: 1fr; }
  .field.field-full { grid-column: auto; }
  .tool-actions { flex-wrap: wrap; }
  .convert-button { width: 100%; flex: auto; }
  .add-more { order: -1; width: 100%; display: flex; justify-content: center; gap: 8px; }
  .add-more::after { content: "Добавить файлы"; font-size: 13px; font-weight: 700; }
  .sidebar { grid-template-columns: 1fr; }
  .result-summary { grid-template-columns: 1fr; }
  .result-summary span { border-right: 0; border-bottom: 1px solid var(--border); }
  .result-summary span:last-child { border-bottom: 0; }
  .trust-grid { grid-template-columns: 1fr; gap: 2px; }
  .trust-row { padding-bottom: 46px; }
  .info-grid, .footer__grid { grid-template-columns: 1fr; gap: 25px; }
  .content-grid { grid-template-columns: 1fr; }
  .tool-directory-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .watermark-grid { grid-template-columns: 1fr; }
  .info-section { padding: 44px 0; }
  .footer-social { display: flex; justify-content: space-between; }
  .footer-brand, .footer-social { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .tool-directory-grid { grid-template-columns: 1fr; }
  .content-card { padding: 18px; border-radius: 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
}
