/* TheTechFolk: one stylesheet for the whole site. Tool-specific extras live in assets/css/tools/. */
:root {
  --brand: #4f46e5; --brand-ink: #3730a3; --brand-soft: #eef2ff; --accent: #f59e0b;
  --ink: #0f172a; --muted: #5b6577; --line: #e2e8f0; --bg: #ffffff; --soft: #f6f7fb;
  --ok: #15803d; --warn: #b45309; --err: #b91c1c;
  --radius: 12px; --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img, svg, canvas, video { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.i { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; left: -9999px; }
.sr-only:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo b { color: var(--brand); }
.logo-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), #7c3aed); color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav > a, .nav-drop-btn { padding: 8px 12px; border-radius: 8px; color: var(--ink); font: 500 .95rem var(--font); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav > a:hover, .nav-drop-btn:hover, .nav > a.on { background: var(--soft); text-decoration: none; }
.nav-drop { position: relative; }
.nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 460px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-drop.open .nav-menu, .nav-drop:hover .nav-menu { display: grid; }
.nav-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--ink); font-size: .93rem; }
.nav-menu a:hover { background: var(--brand-soft); text-decoration: none; }
.nav-menu .i { color: var(--brand); }
.head-search { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; width: 230px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.head-search input[type=search], .head-search input[type=search]:focus { border: 0; background: none; outline: 0; box-shadow: none; font: inherit; width: 100%; color: var(--ink); padding: 0; min-height: 0; }
.head-search:focus-within { border-color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle .i { width: 26px; height: 26px; }

/* ---------- Buttons, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1px solid transparent; font: 600 .97rem var(--font); cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s, transform .05s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(79, 70, 229, .28); }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--soft); }
.btn-sm { padding: 6px 12px; font-size: .86rem; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > label, .field legend { font-weight: 600; font-size: .92rem; }
.field label output { font-weight: 700; color: var(--brand); margin-left: 6px; }
input[type=text], input[type=number], input[type=email], input[type=url], input[type=search], input[type=date], input[type=time], input[type=datetime-local], input[type=password], input[type=tel], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); font: 400 1rem var(--font); min-height: 44px; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
input[type=color] { width: 100%; height: 44px; padding: 3px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--brand); }
input[type=file] { width: 100%; padding: 10px; border: 1px dashed #cbd5e1; border-radius: 10px; background: var(--soft); font: inherit; }
.input-wrap { position: relative; display: block; }
.input-wrap.has-suffix input { padding-right: 62px; }
.input-wrap i { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: .85rem; color: var(--muted); pointer-events: none; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.help { color: var(--muted); font-size: .84rem; }
.alert { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; font-weight: 500; }
.alert-ok { background: #ecfdf5; color: var(--ok); border: 1px solid #bbf7d0; }
.alert-err { background: #fef2f2; color: var(--err); border: 1px solid #fecaca; }

/* ---------- Home ---------- */
.hero { padding: 56px 0 40px; text-align: center; background: radial-gradient(1000px 400px at 50% -10%, #e0e7ff 0, transparent 70%), var(--soft); border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 820px; margin: 0 auto .4em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { max-width: 660px; margin: 0 auto 24px; color: var(--muted); font-size: 1.12rem; }
.hero-search { display: flex; max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; }
.hero-search input[type=search] { flex: 1; border: 0; min-height: 48px; box-shadow: none !important; font-size: 1.05rem; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero-stats b { color: var(--ink); }
.section { padding: 44px 0; }
.section.alt { background: var(--soft); border-block: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cat-card { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-card:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }
.cat-card strong { display: block; }
.cat-card small { color: var(--muted); display: block; line-height: 1.4; margin-top: 2px; }
.cat-card em { font-style: normal; font-size: .8rem; color: var(--brand); font-weight: 600; }

/* ---------- Tool cards ---------- */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.tcard { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tcard:hover { border-color: var(--brand); box-shadow: var(--shadow); text-decoration: none; }
.tcard-i, .cat-card > span:first-child { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.tcard-i .i, .cat-card > span:first-child .i { width: 20px; height: 20px; }
.tcard-b { min-width: 0; }
.tcard strong { display: block; font-size: .98rem; line-height: 1.3; }
.tcard small { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; margin-top: 3px; }
.badge-ai { font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 999px; background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; vertical-align: 2px; }
.c-social { background: #fce7f3; color: #be185d; } .c-text { background: #e0f2fe; color: #0369a1; } .c-business { background: #ede9fe; color: #6d28d9; }
.c-seo { background: #dcfce7; color: #15803d; } .c-dev { background: #e2e8f0; color: #1e293b; } .c-image { background: #ffedd5; color: #c2410c; }
.c-design { background: #fae8ff; color: #a21caf; } .c-finance { background: #d1fae5; color: #047857; } .c-math { background: #dbeafe; color: #1d4ed8; }
.c-converters { background: #fef9c3; color: #a16207; } .c-health { background: #ffe4e6; color: #be123c; } .c-everyday { background: #ccfbf1; color: #0f766e; }

/* ---------- Hub ---------- */
.page-hero { padding: 34px 0 24px; background: var(--soft); border-bottom: 1px solid var(--line); }
.page-hero .lead { color: var(--muted); max-width: 760px; margin: 0; font-size: 1.06rem; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); } .crumbs span { margin: 0 4px; } .crumbs b { color: var(--ink); font-weight: 500; }
.hub-bar { position: sticky; top: 62px; z-index: 20; background: #fff; padding: 14px 0 10px; border-bottom: 1px solid var(--line); }
.hub-q { position: relative; max-width: 560px; }
.hub-q .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hub-q input { padding-left: 42px; border-radius: 999px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip { flex: none; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 500 .88rem var(--font); cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.hub-group { margin-top: 30px; }
.hub-group h2 { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; }
.hub-group h2 a { color: var(--ink); }
.hub-group h2 small { font-weight: 500; color: var(--muted); font-size: .85rem; }
.hub-empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---------- Tool page ---------- */
.tool-hero { padding: 28px 0 22px; background: linear-gradient(180deg, var(--soft), #fff); }
.tool-hero h1 { margin-bottom: .3em; }
.tool-hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 760px; margin: 0 0 12px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hero-tags li { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .82rem; font-weight: 500; color: var(--muted); }
.hero-tags .i { color: var(--ok); }
.hero-tags .is-ai { background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; border: 0; }
.hero-tags .is-ai .i { color: #fff; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; padding-bottom: 56px; }
.tool-col { min-width: 0; }
.tool-side { position: sticky; top: 82px; display: grid; gap: 18px; }
.tool-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; margin: 0 0 22px; border-top: 4px solid var(--brand); }
.tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; }
.uses { color: var(--muted); font-size: .88rem; }
.uses b { color: var(--ink); }
.tool-error { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: #fef2f2; border: 1px solid #fecaca; color: var(--err); font-weight: 500; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: .86rem; color: var(--muted); }
.examples button { border: 1px dashed #cbd5e1; background: var(--soft); border-radius: 999px; padding: 5px 12px; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.examples button:hover { border-color: var(--brand); }
.tool-form.loading { opacity: .75; }

/* generic results (TTF.render) */
.tool-out:not(:empty) { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); display: grid; gap: 14px; }
.out-rows { display: grid; gap: 8px; }
.out-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; }
.out-l { color: var(--muted); font-size: .92rem; flex: 1; min-width: 0; }
.out-v { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.out-row.big { background: var(--brand-soft); border-color: #c7d2fe; }
.out-row.big .out-v { font-size: 1.5rem; color: var(--brand-ink); }
.copy-btn { flex: none; padding: 5px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: 600 .8rem var(--font); cursor: pointer; }
.copy-btn:hover { border-color: var(--brand); color: var(--brand); }
.copy-btn.done, .btn.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.out-text-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-weight: 600; font-size: .92rem; }
.out-text textarea { font-family: var(--mono); font-size: .92rem; background: var(--soft); }
.out-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--soft); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.out-note { margin: 0; color: var(--muted); font-size: .9rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { padding: 14px 10px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.stat b { display: block; font-size: 1.5rem; line-height: 1.2; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.stat span { font-size: .82rem; color: var(--muted); }
.dropzone { display: grid; place-items: center; gap: 8px; padding: 34px 16px; text-align: center; border: 2px dashed #c7d2fe; border-radius: 14px; background: var(--brand-soft); color: var(--muted); cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.over { background: #e0e7ff; border-color: var(--brand); }
.dropzone strong { color: var(--ink); }
.preview { border: 1px solid var(--line); border-radius: 12px; background: var(--soft); padding: 14px; overflow: auto; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 7px; font: 600 .9rem var(--font); color: var(--muted); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
code, pre { font-family: var(--mono); font-size: .9em; }
pre { background: #0f172a; color: #e2e8f0; padding: 14px; border-radius: 10px; overflow-x: auto; }

/* AI results */
.ai-results { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.ai-results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ai-results-head h2 { margin: 0; font-size: 1.15rem; text-transform: capitalize; }
.ai-results-head > div { display: flex; gap: 8px; }
.ai-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: r; }
.ai-list li { counter-increment: r; display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.ai-list li::before { content: counter(r); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.ai-list p { flex: 1; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* guide */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose table { margin: 0 0 1em; border: 1px solid var(--line); border-radius: 10px; display: block; overflow-x: auto; }
.quick { padding: 16px 18px; background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; }
.quick strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-ink); margin-bottom: 4px; }
.quick p { margin: 0; }
.ta-callout, .callout { padding: 14px 16px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; margin: 0 0 1em; }
.steps { list-style: none; padding: 0 !important; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 54px; border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.steps strong { display: block; }
.steps span { color: var(--muted); }
.faqs { display: grid; gap: 8px; }
.faqs details { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: #fff; }
.faqs summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs details[open] summary .i { transform: rotate(180deg); }
.faqs details p { color: var(--muted); }
.updated { color: var(--muted); font-size: .85rem; margin-top: 2em; }

/* sidebar */
.side-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.side-card h2 { font-size: 1rem; margin-bottom: 10px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; color: var(--ink); font-size: .93rem; }
.side-link:hover { background: var(--soft); text-decoration: none; }
.side-link .i { color: var(--brand); }
.side-all { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-weight: 600; font-size: .9rem; }
.consult { background: linear-gradient(160deg, #312e81, #4f46e5); color: #fff; border: 0; }
.consult h2 { font-size: 1.08rem; color: #fff; }
.consult p { font-size: .92rem; opacity: .92; }
.consult .btn-primary { background: #fff; color: var(--brand-ink); box-shadow: none; }
.consult-i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .16); margin-bottom: 10px; }

/* ads */
.ad-slot { margin: 0 0 22px; text-align: center; min-height: 100px; }
.ad-sidebar { min-height: 250px; margin: 0; }
.ad-label { display: block; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; margin-bottom: 4px; }
.ad-preview { display: grid; place-items: center; min-height: 90px; border: 1px dashed #cbd5e1; border-radius: 10px; background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px); color: #94a3b8; font-size: .85rem; }
.ad-sidebar .ad-preview { min-height: 250px; }

/* ---------- Services ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pkg { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; }
.pkg:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.pkg-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pkg-i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); }
.pkg-price { font-size: 1.6rem; font-weight: 800; color: var(--brand-ink); }
.pkg h3 { margin-bottom: 6px; }
.pkg p { color: var(--muted); font-size: .93rem; flex: 1; }
.pkg-meta { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.pkg-meta b { color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
.pkg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; align-items: start; padding: 32px 20px 56px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--ok); margin-top: .25em; }
.order-card { position: sticky; top: 82px; border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--brand); }
.order-card .fields { grid-template-columns: 1fr; }
.order-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.order-price b { font-size: 2.2rem; font-weight: 800; color: var(--brand-ink); line-height: 1; }
.order-price span { color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: h; }
.how div { counter-increment: h; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.how div::before { content: counter(h); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.how p { margin: 0; color: var(--muted); font-size: .93rem; }
.narrow { max-width: 780px; margin: 0 auto; padding: 36px 20px 60px; }
.center { text-align: center; }

/* ---------- Footer ---------- */
.site-foot { background: #0f172a; color: #cbd5e1; padding: 44px 0 0; margin-top: 20px; }
.site-foot .logo { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-about { font-size: .92rem; margin-top: 12px; max-width: 320px; color: #94a3b8; }
.site-foot h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.site-foot a:not(.logo) { display: block; color: #cbd5e1; font-size: .93rem; padding: 3px 0; }
.site-foot a:hover { color: #fff; }
.foot-base { border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 18px; padding-bottom: 22px; font-size: .84rem; color: #94a3b8; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .tool-layout, .pkg-layout { grid-template-columns: minmax(0, 1fr); }
  .tool-side, .order-card { position: static; }
  .ad-sidebar { display: none; }
  .head-search { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; margin: 0; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 62px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav-menu { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 10px; }
  .nav-drop:hover .nav-menu { display: none; }
  .nav-drop.open .nav-menu { display: grid; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .container { padding: 0 14px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .tool-box { padding: 16px; border-radius: 14px; }
  .hero { padding: 36px 0 28px; }
  .section { padding: 32px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .out-row { flex-wrap: wrap; }
  .out-row.big .out-v { font-size: 1.3rem; }
  .ai-list li { flex-wrap: wrap; }
  .ai-list p { flex-basis: calc(100% - 40px); }
  .nav-menu { grid-template-columns: 1fr; }
  .hub-bar { top: 62px; }
  .pkg-layout { padding: 22px 14px 44px; }
}
@media print {
  .site-head, .site-foot, .tool-side, .ad-slot, .tool-hero, .tool-article, .tool-actions, .hub-bar { display: none !important; }
  .tool-box { border: 0; box-shadow: none; padding: 0; }
}
