/* PC Soft Atlas — mobile-first stylesheet. Breakpoints: 600, 768, 1024, 1280, 1440. */

:root {
  --green: #076C1B;
  --green-hover: #075713;
  --green-50: #EAF5EC;
  --green-100: #D5EBDA;
  --ink: #0B1530;
  --text: #1F2A3D;
  --muted: #435064;
  --border: #E1E6EC;
  --border-strong: #CBD3DD;
  --page: #FFFFFF;
  --surface: #F7F9FA;
  --hero-bg: #F4F4F4;

  --pdf-bg: #FFF0F0;   --pdf-ink: #C4221A;
  --photo-bg: #EFF7FF; --photo-ink: #1A63C7;
  --rec-bg: #EFFAF1;   --rec-ink: #0E7A35;
  --office-bg: #FFF6EB; --office-ink: #A85300;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 48, .06);
  --shadow: 0 2px 10px rgba(11, 21, 48, .07);
  --shadow-lg: 0 10px 30px rgba(11, 21, 48, .10);

  --container: 1360px;
  --gutter: clamp(16px, 3.2vw, 32px);
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-hover); }

h1, h2, h3 { color: var(--ink); line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 1.15rem + .8vw, 1.65rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: .05em .35em; overflow-wrap: anywhere; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1rem, .95rem + .3vw, 1.125rem); color: var(--muted); max-width: 72ch; }
.lead p:last-child { margin-bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 44px; padding: .55em 1.15em; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); color: #fff; }
.btn-outline { background: #fff; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green-50); color: var(--green-hover); }
.btn-soft { background: var(--green-50); color: var(--green); }
.btn-soft:hover { background: var(--green-100); color: var(--green-hover); }
.btn-sm { min-height: 40px; padding: .4em .95em; font-size: .875rem; border-radius: var(--radius-sm); }
.btn-lg { min-height: 52px; padding: .7em 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn.is-pending { opacity: .55; cursor: not-allowed; }
.sw-header-download { margin-top: 14px; }
.sw-header-download .download-note { text-align: left; }
@media (min-width: 1024px) { .sw-header-download { display: none; } }

.link-arrow { display: inline-flex; align-items: center; gap: .2em; font-weight: 600; font-size: .925rem; text-decoration: none; min-height: 44px; }
.link-arrow .icon { width: 1em; height: 1em; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--border); backdrop-filter: saturate(1.4) blur(6px); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 64px; padding-block: 8px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.site-header .logo { flex: 1 1 0; }
@media (max-width: 359px) { .logo-tag { display: none; } }
.logo-mark { width: 40px; height: auto; }
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.logo-tag { font-size: .72rem; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header-actions { margin-left: auto; display: flex; gap: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn[aria-expanded="true"] { background: var(--green-50); color: var(--green); }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline; }

.site-nav { display: none; flex-basis: 100%; order: 3; }
.site-nav.is-open { display: block; }
.nav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 8px 0 12px; }
.nav-item { display: flex; flex-wrap: wrap; align-items: center; }
.nav-link {
  flex: 1; display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: var(--radius-sm);
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.nav-link:hover { background: var(--surface); color: var(--ink); }
.nav-link.is-active { background: var(--green); color: #fff; }
.sub-toggle {
  display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; color: var(--ink);
  border-radius: var(--radius-sm); cursor: pointer;
}
.sub-toggle:hover { background: var(--surface); }
.sub-toggle .icon { transition: transform .15s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-menu { list-style: none; display: none; flex-basis: 100%; padding: 2px 0 8px 12px; }
.has-sub.is-open > .sub-menu { display: block; }
.sub-menu a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text); text-decoration: none; border-radius: var(--radius-sm); }
.sub-menu a:hover { background: var(--green-50); color: var(--green); }

.header-search { display: none; flex-basis: 100%; order: 4; position: relative; padding-bottom: 10px; }
.header-search.is-open { display: block; }
.header-search input {
  width: 100%; height: 46px; padding: 0 48px 0 16px; border: 1px solid var(--border-strong); border-radius: 999px;
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
}
.header-search input::placeholder { color: #6B7787; }
.header-search-btn {
  position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.header-search-btn:hover { color: var(--green); }

/* Hero */
.hero { background: linear-gradient(180deg, #FFFFFF 0%, var(--hero-bg) 100%); border-bottom: 1px solid var(--border); }
.hero-inner { display: grid; gap: 20px; padding-block: 28px 24px; position: relative; }
.hero-title { font-size: clamp(1.85rem, 1.25rem + 2.6vw, 2.75rem); line-height: 1.15; margin-bottom: .4em; }
.hero-title .accent { color: var(--green); display: block; }
.hero-lead { color: var(--muted); font-size: clamp(.98rem, .94rem + .2vw, 1.06rem); max-width: 46ch; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.hero-trust .icon { color: var(--green); width: 1.5em; height: 1.5em; }
.hero-media { order: 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--hero-bg); }
.hero-media img { width: 100%; height: auto; aspect-ratio: 810 / 570; object-fit: cover; }

.big-search {
  position: relative; display: flex; align-items: center; background: #fff; border: 1.5px solid var(--green);
  border-radius: 999px; box-shadow: var(--shadow); padding: 5px 5px 5px 44px;
}
.big-search-icon { position: absolute; left: 16px; color: var(--ink); width: 1.3em; height: 1.3em; }
.big-search input {
  flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink);
}
.big-search input:focus { outline: none; }
.big-search:focus-within { box-shadow: 0 0 0 3px rgba(7, 108, 27, .22), var(--shadow); }
.big-search-btn { border-radius: 999px; min-width: 96px; }
.big-search-page { max-width: 720px; margin-top: 12px; }

.chips { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.chips-label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border); color: var(--text); font-size: .85rem; text-decoration: none;
}
.chip:hover { border-color: var(--green); color: var(--green); background: var(--green-50); }
.chip-lg { min-height: 44px; font-size: .95rem; }

/* Sections */
.section { padding-block: clamp(22px, 3vw, 32px); }
.section-tight { padding-top: 20px; padding-bottom: 4px; }
.section-last { padding-bottom: clamp(40px, 5vw, 64px); }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-bottom: 14px; }
.section-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: clamp(1.25rem, 1.1rem + .7vw, 1.6rem); }
.section-title .cat-icon { width: 32px; height: 32px; }
.section-icon { color: var(--green); width: 1.25em; height: 1.25em; }

/* Category cards */
.cat-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.cat-card { border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.cat-card-top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 18px 16px 12px; text-decoration: none; color: inherit; border-radius: var(--radius) var(--radius) 0 0; }
.cat-card-top:hover .cat-card-title { text-decoration: underline; }
.cat-card .cat-icon { width: 48px; height: 48px; }
.cat-card-body { display: flex; flex-direction: column; gap: 4px; }
.cat-card-title { font-weight: 700; font-size: 1.2rem; color: var(--ink); line-height: 1.25; }
.cat-card-text { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.cat-card-chev { margin-top: 4px; }
.cat-tasks { list-style: none; display: flex; flex-wrap: wrap; gap: 0 18px; padding: 4px 16px 10px; margin-top: auto; border-top: 1px solid rgba(11, 21, 48, .06); }
.cat-tasks a { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.cat-tasks a:hover { text-decoration: underline; }
.cat-tasks .icon { width: .95em; height: .95em; }

.cat-pdf-tools { background: var(--pdf-bg); } .cat-pdf-tools .cat-tasks a, .cat-pdf-tools .cat-card-chev { color: var(--pdf-ink); }
.cat-photo-graphics { background: var(--photo-bg); } .cat-photo-graphics .cat-tasks a, .cat-photo-graphics .cat-card-chev { color: var(--photo-ink); }
.cat-file-recovery { background: var(--rec-bg); } .cat-file-recovery .cat-tasks a, .cat-file-recovery .cat-card-chev { color: var(--rec-ink); }
.cat-office-software { background: var(--office-bg); } .cat-office-software .cat-tasks a, .cat-office-software .cat-card-chev { color: var(--office-ink); }

/* Guide cards (home) */
.guide-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.guide-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s;
}
.guide-card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.guide-card-media { background: var(--surface); }
.guide-card-media img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.guide-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; }
.guide-card-title { font-size: 1.05rem; margin-bottom: .35em; }
.guide-card-title a { color: var(--ink); text-decoration: none; }
.guide-card-title a:hover { color: var(--green); }
.guide-card-text { font-size: .9rem; color: var(--muted); line-height: 1.5; margin-bottom: 10px; }
.meta-pill {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: auto 0 0; padding: 4px 10px;
  border: 1px solid var(--border); border-radius: 999px; font-size: .78rem; color: var(--muted);
}
.meta-pill .icon { width: 1.1em; height: 1.1em; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Comparisons + Featured software */
.split { display: grid; gap: 18px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; background: #fff; box-shadow: var(--shadow-sm); min-width: 0; }
.cmp-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.cmp-card {
  display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; background: #fff;
}
.cmp-card-icons { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.vs {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); font-size: .72rem; font-weight: 700; color: var(--muted);
}
.vs-lg { width: 36px; height: 36px; font-size: .85rem; }
.sw-icon { width: 40px; height: 40px; flex: none; }
.sw-logo { display: inline-grid; place-items: center; }
.sw-logo picture, .sw-logo img { width: 100%; height: 100%; }
.sw-logo img { object-fit: contain; }
.sw-icon-lg { width: 48px; height: 48px; }
.sw-icon-xl { width: 64px; height: 64px; }
.cmp-card-title { font-size: 1.02rem; margin-bottom: .3em; }
.cmp-card-text { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.cmp-card-btn { margin-top: auto; width: 100%; }
.cmp-card-btn .icon { width: 1em; height: 1em; }

.sw-rows { list-style: none; display: flex; flex-direction: column; }
.sw-row { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.sw-row:first-child { border-top: 0; }
.sw-row > .btn { grid-column: 2; justify-self: start; }
.sw-row-title { font-size: 1rem; margin: 0; }
.sw-row-title a { color: var(--ink); text-decoration: none; }
.sw-row-title a:hover { color: var(--green); text-decoration: underline; }
.sw-row-text { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.45; }
.sw-row-license { font-size: .78rem; color: var(--muted); margin: 2px 0 0; }
.sw-rows-boxed { border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 16px; }

/* Secondary categories */
.mini-cat-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.mini-cat {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: inherit; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s;
}
.mini-cat:hover { border-color: var(--green); box-shadow: var(--shadow); color: inherit; }
.mini-cat .cat-icon { width: 40px; height: 40px; }
.mini-cat-body { display: flex; flex-direction: column; gap: 2px; }
.mini-cat-title { font-weight: 700; color: var(--ink); }
.mini-cat-text { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.mini-cat-chev { color: var(--green); }
.mini-cat-all { background: var(--green-50); border-color: var(--green-100); }

/* Inner pages */
.page-head { padding-top: 18px; padding-bottom: 8px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumbs a:hover { color: var(--green); text-decoration: underline; }
.crumb-sep { width: .9em; height: .9em; }
.eyebrow { font-size: .85rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.eyebrow a { text-decoration: none; }

.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.jump-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--ink);
}
.jump-links a:hover { border-color: var(--green); color: var(--green); }

.content-section { margin-block: clamp(24px, 3vw, 36px); }
.content-section > h2 { margin-bottom: .6em; }

.catalog-filter { margin-top: 16px; max-width: 560px; }
.catalog-filter label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.filter-row { position: relative; }
.filter-row .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-row input {
  width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid var(--border-strong); border-radius: 999px; font: inherit; font-size: 1rem;
}
.filter-status { font-size: .88rem; color: var(--muted); margin: 6px 0 0; min-height: 1.4em; }
.catalog-section { padding-block: 20px; border-top: 1px solid var(--border); }
.catalog-section:first-child { border-top: 0; }
.empty-state, .empty-box { padding: 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.empty-box h2 { font-size: 1.2rem; }
.empty-box .chip-list { margin-bottom: 14px; }

.sw-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.sw-card {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm);
}
.sw-card-head { display: flex; gap: 12px; align-items: center; }
.sw-card-title { margin: 0; font-size: 1.05rem; }
.sw-card-title a { color: var(--ink); text-decoration: none; }
.sw-card-title a:hover { color: var(--green); text-decoration: underline; }
.sw-card-dev { margin: 0; font-size: .8rem; color: var(--muted); }
.sw-card-text { font-size: .9rem; color: var(--muted); line-height: 1.5; margin: 0; }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.sw-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }

.cat-hero { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.cat-hero .cat-icon { width: 56px; height: 56px; flex: none; }
.cat-hero h1 { margin-bottom: .3em; }
.task-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.guide-list { display: grid; gap: 12px; grid-template-columns: 1fr; }
.guide-item { position: relative; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.guide-item:hover { border-color: var(--green); box-shadow: var(--shadow); }
.guide-item-type { font-size: .78rem; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.guide-item-title { font-size: 1.02rem; margin-bottom: .3em; }
.guide-item-title a { color: var(--ink); text-decoration: none; }
.guide-item-title a:hover { color: var(--green); }
.guide-item-text { font-size: .9rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* Software page */
.sw-layout { display: grid; gap: 24px; padding-bottom: 56px; }
.sw-main { min-width: 0; }
.sw-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 6px; }
.sw-header h1 { margin-bottom: .25em; }
.badge-draft { display: inline-block; background: #FFF4CC; color: #6B4E00; border-radius: 6px; padding: 2px 10px; font-size: .85rem; font-weight: 600; }
.prose { max-width: 75ch; }
.prose p, .prose li { line-height: 1.7; }
.prose ul { padding-left: 1.3em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.check-list, .check-list li, .check-list .icon, 
.sw-aside { min-width: 0; }
.spec-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.spec-download { margin-bottom: 16px; }
.download-note { font-size: .82rem; color: var(--muted); text-align: center; margin: 8px 0 0; overflow-wrap: anywhere; }
.spec-title { font-size: 1.1rem; }
.spec-list { margin: 0; display: grid; }
.spec-list div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: .9rem; }
.spec-list div:first-child { border-top: 0; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.spec-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.plain-list { list-style: none; display: grid; gap: 10px; font-size: .92rem; color: var(--muted); }

/* Callouts */
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: #F2F7FD; border: 1px solid #D6E4F5; margin-block: 22px; }
.callout > .icon { color: #1A63C7; width: 1.4em; height: 1.4em; margin-top: .1em; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout ul { padding-left: 1.2em; display: grid; gap: 4px; }
.callout-title { font-size: 1.05rem; margin-bottom: .4em; }
.callout-warn { background: #FFF8EB; border-color: #F5DDB0; }
.callout-warn > .icon { color: #A85300; }
.callout-ok { background: #F1F9F3; border-color: #CFE7D5; }
.callout-ok > .icon { color: var(--green); }

/* Articles */
.article { max-width: 860px; padding-bottom: 56px; }
.article-wide { max-width: 1040px; }
.article-head { margin-bottom: 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--muted); }
.article-figure { margin: 0 0 22px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.article-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; max-height: 460px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.step { counter-increment: step; position: relative; padding: 16px 16px 6px 60px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.step::before {
  content: counter(step); position: absolute; left: 16px; top: 15px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem;
}
.step-title { font-size: 1.05rem; margin-bottom: .4em; }
.step-body p { line-height: 1.65; }

.faq { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; cursor: pointer;
  padding: 14px 16px; font-weight: 600; color: var(--ink); min-height: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { transition: transform .15s; color: var(--muted); }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-answer { padding: 0 16px 6px; color: var(--text); }

/* Comparison page */
.cmp-hero-icons { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.choose-grid { display: grid; gap: 14px; }
.choose-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.choose-box h3 { display: flex; align-items: center; gap: 10px; margin: 0; }
.choose-box h3 .sw-icon { width: 32px; height: 32px; }
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--border); }
.cmp-table thead th { background: var(--surface); color: var(--ink); border-top: 0; }
.cmp-table tbody th { color: var(--ink); font-weight: 600; }

/* Mobile comparison table: each row becomes a card, every value keeps its label */
@media (max-width: 699px) {
  .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .cmp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td { display: block; }
  .cmp-table tr { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
  .cmp-table tbody th { background: var(--surface); border-top: 0; }
  .cmp-table td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
}

/* Forms */
.contact-layout { display: grid; gap: 24px; padding-bottom: 56px; }
.form { display: grid; gap: 16px; max-width: 640px; }
.form-field { display: grid; gap: 6px; }
.form-field label { font-weight: 600; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #B42318; }
.field-error { color: #B42318; font-size: .88rem; margin: 0; }
.form-hint { font-size: .88rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Search results */
.results { list-style: none; display: grid; gap: 12px; padding-bottom: 56px; }
.result { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); }
.result-type { font-size: .78rem; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.result-title { font-size: 1.1rem; margin-bottom: .3em; }
.result-title a { color: var(--ink); }
.result-text { color: var(--muted); margin: 0; font-size: .92rem; }
.error-page { padding-bottom: 64px; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: 8px; }
.footer-inner { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 36px 20px; }
.footer-brand { grid-column: 1 / -1; }
.footer-note { font-size: .88rem; color: var(--muted); margin-top: 12px; max-width: 46ch; }
.footer-heading { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 8px; }
.footer-col ul { list-style: none; display: grid; }
.footer-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text); text-decoration: none; font-size: .92rem; }
.footer-col a:hover { color: var(--green); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border); padding-block: 16px 24px; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; }
.footer-bottom p { margin: 0; }

/* ≥ 600px */
@media (min-width: 600px) {
  .cat-grid, .guide-grid, .mini-cat-grid, .sw-grid, .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sw-row { grid-template-columns: auto 1fr auto; }
  .sw-row > .btn { grid-column: auto; justify-self: end; }
}

/* ≥ 768px */
@media (min-width: 768px) {
  .cmp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
  .footer-brand { grid-column: auto; }
  .hero-media img { aspect-ratio: 16 / 9; object-position: 70% 50%; }
  .contact-layout { grid-template-columns: minmax(0, 1fr) 300px; }
}

/* ≥ 1024px: desktop header + hero composition */
@media (min-width: 1024px) {
  .header-inner { flex-wrap: nowrap; min-height: 76px; gap: 24px; }
  .site-header .logo { flex: 0 0 auto; }
  .header-actions { display: none; }
  .site-nav { display: block; flex-basis: auto; order: 0; margin-inline: auto; }
  .nav-list { flex-direction: row; align-items: center; gap: 4px; padding: 0; }
  .nav-item { position: relative; flex-wrap: nowrap; }
  .nav-link { min-height: 40px; padding: 0 12px; font-size: .95rem; border-radius: var(--radius-sm); }
  .has-sub .nav-link { padding-right: 4px; }
  .sub-toggle { width: 28px; height: 40px; }
  .sub-toggle .icon { width: 1em; height: 1em; }
  .sub-menu {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; padding: 8px; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 60;
  }
  .has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.is-open > .sub-menu { display: block; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
  .header-search { display: block; flex: 0 1 300px; order: 0; padding: 0; }
  .header-search input { height: 42px; font-size: .9rem; }
  .header-search-btn { top: 2px; }

  .hero-inner {
    grid-template-columns: minmax(0, 41fr) minmax(0, 35fr) minmax(0, 24fr);
    align-items: center; gap: 0 32px; padding-block: 44px 40px; min-height: 340px;
  }
  .hero-text { grid-column: 1; grid-row: 1; position: relative; z-index: 2; }
  .hero-search { grid-column: 2; grid-row: 1; position: relative; z-index: 2; }
  .hero-media {
    order: 0; position: absolute; top: 0; bottom: 0; right: var(--gutter); width: 54%; z-index: 1;
    border-radius: 0; background: transparent;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  }
  .hero-media picture, .hero-media img { width: 100%; height: 100%; }
  .hero-media img { aspect-ratio: auto; object-fit: cover; object-position: 78% 60%; }
  .hero-title { font-size: clamp(2rem, 1.1rem + 1.45vw, 2.5rem); }
  .hero-title .accent { display: inline; }

  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 57fr) minmax(0, 43fr); align-items: start; }
  .mini-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sw-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-grid-wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sw-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .sw-aside { position: sticky; top: 96px; }

  /* Guide cards become horizontal: thumbnail left, text right */
  .guide-card { flex-direction: row; }
  .guide-card-media { flex: 0 0 42%; }
  .guide-card-media picture, .guide-card-media img { height: 100%; }
  .guide-card-media img { aspect-ratio: auto; min-height: 150px; }
  .guide-card-body { padding: 14px; }
}

/* ≥ 1280px: four guide cards in one row */
@media (min-width: 1280px) {
  .guide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .guide-card-media { flex-basis: 44%; }
  .guide-card-title { font-size: 1rem; }
  .guide-card-text { font-size: .85rem; }
  .sw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sw-main .sw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sw-main .sw-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-name { font-size: 1.35rem; }
  .logo-mark { width: 46px; }
}

@media (min-width: 1440px) {
  .hero-inner { min-height: 370px; }
  .hero-media { width: 52%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .hero-search, }
