/* =========================================================================
   umkm.css — Solusia UMKM design system + per-template themes
   Mobile-first, system fonts only, no external resources.
   Theme is selected via <html data-template="...">.
   ========================================================================= */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ---- Base tokens ---- */
:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-sans);
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f3efe8;
  --ink: #1c1917;
  --muted: #57534e;
  --brand: #b4451f;
  --brand-2: #d97706;
  --on-brand: #ffffff;
  --line: #e7e0d8;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow: 0 12px 34px -16px rgba(28, 25, 23, .35);
  --wrap: 1120px;
  --section-pad: clamp(3rem, 7vw, 5.5rem);
  --h1: clamp(2.1rem, 4.2vw + 1rem, 3.6rem);
  --h2: clamp(1.55rem, 2.4vw + .8rem, 2.4rem);
  --h3: clamp(1.1rem, 1.2vw + .8rem, 1.3rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --footer-bg: #0b1f33;
  --footer-ink: #dfe9f2;
}

/* ---- Template themes ---- */
html[data-template="fnb"] {
  --bg: #fdf6ee;
  --surface: #fffaf3;
  --surface-2: #f8e9d8;
  --ink: #2b1a12;
  --muted: #7a5c4a;
  --brand: #b4451f;
  --brand-2: #d97706;
  --line: #f0dcc8;
  --radius: 22px;
  --radius-sm: 12px;
  --radius-lg: 32px;
  --font-display: Georgia, "Times New Roman", serif;
  --hero-bg: radial-gradient(120% 100% at 85% 0%, #f6c88e 0%, #f3a869 32%, #e07a3f 68%, #c95a28 100%);
  --hero-ink: #2b1408;
  --hero-muted: rgba(43, 20, 8, .78);
  --hero-pattern: radial-gradient(rgba(255, 248, 238, .5) 1.5px, transparent 1.6px);
  --hero-pattern-size: 22px 22px;
}
html[data-template="retail"] {
  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-2: #efece7;
  --ink: #17191c;
  --muted: #5b6068;
  --brand: #e2543e;
  --brand-2: #1f2328;
  --line: #e4e0da;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --hero-bg: linear-gradient(150deg, #1f2328 0%, #2b3138 60%, #3a3f45 100%);
  --hero-ink: #ffffff;
  --hero-muted: rgba(255, 255, 255, .72);
  --hero-pattern: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 18px);
  --hero-pattern-size: auto;
}
html[data-template="service"] {
  --bg: #f4f7f8;
  --surface: #ffffff;
  --surface-2: #e9f1f3;
  --ink: #10222b;
  --muted: #4e6470;
  --brand: #0f8b8d;
  --brand-2: #0e2a3a;
  --line: #dbe7ea;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --font-display: var(--font-sans);
  --hero-bg: linear-gradient(155deg, #0e2a3a 0%, #123a4a 55%, #0f4a4c 100%);
  --hero-ink: #f2fbfa;
  --hero-muted: rgba(242, 251, 250, .75);
  --hero-pattern: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  --hero-pattern-size: 44px 44px, 44px 44px;
}
html[data-template="agri"] {
  --bg: #f6f3ea;
  --surface: #fffdf7;
  --surface-2: #ece5d3;
  --ink: #1d2a1f;
  --muted: #5b6b58;
  --brand: #2f5d3a;
  --brand-2: #a9812f;
  --line: #e3dccb;
  --radius: 26px;
  --radius-sm: 14px;
  --radius-lg: 40px;
  --font-display: Georgia, "Times New Roman", serif;
  --hero-bg: radial-gradient(120% 120% at 10% 0%, #fdfaf1 0%, #ece0c4 45%, #d9c79f 100%);
  --hero-ink: #1d2a1f;
  --hero-muted: rgba(29, 42, 31, .72);
  --hero-pattern: radial-gradient(circle at 25% 25%, rgba(47, 93, 58, .12) 0 40%, transparent 41%), radial-gradient(circle at 75% 75%, rgba(169, 129, 47, .14) 0 40%, transparent 41%);
  --hero-pattern-size: 90px 90px, 130px 130px;
}
html[data-template="edu"] {
  --bg: #fffbea;
  --surface: #ffffff;
  --surface-2: #fff2c4;
  --ink: #1f2937;
  --muted: #4b5563;
  --brand: #d9a514;
  --brand-2: #334155;
  --line: #f0e4b0;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --font-display: "Trebuchet MS", Verdana, sans-serif;
  --hero-bg: linear-gradient(150deg, #ffe9a3 0%, #fff4cf 45%, #ffffff 100%);
  --hero-ink: #1f2937;
  --hero-muted: rgba(31, 41, 55, .75);
  --hero-pattern: linear-gradient(45deg, rgba(217, 165, 20, .16) 25%, transparent 25%, transparent 75%, rgba(217, 165, 20, .16) 75%);
  --hero-pattern-size: 32px 32px;
}
html[data-template="health"] {
  --bg: #f2fbfa;
  --surface: #ffffff;
  --surface-2: #e2f4f1;
  --ink: #0f2e2b;
  --muted: #4b6b67;
  --brand: #0d9488;
  --brand-2: #0f766e;
  --line: #d7efec;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-lg: 30px;
  --font-display: var(--font-sans);
  --hero-bg: linear-gradient(165deg, #ffffff 0%, #eafaf7 60%, #d5f2ec 100%);
  --hero-ink: #0f2e2b;
  --hero-muted: rgba(15, 46, 43, .7);
  --hero-pattern: linear-gradient(rgba(13, 148, 136, .1) 2px, transparent 2px), linear-gradient(90deg, rgba(13, 148, 136, .1) 2px, transparent 2px);
  --hero-pattern-size: 46px 46px, 46px 46px;
}
html[data-template="seller"] {
  --bg: #faf7fc;
  --surface: #ffffff;
  --surface-2: #f4e9f7;
  --ink: #17111f;
  --muted: #5d5066;
  --brand: #c026d3;
  --brand-2: #701a75;
  --line: #ecdff0;
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --font-display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --hero-bg: linear-gradient(145deg, #17111f 0%, #2a1233 55%, #4a1257 100%);
  --hero-ink: #ffffff;
  --hero-muted: rgba(255, 255, 255, .72);
  --hero-pattern: linear-gradient(115deg, transparent 0 55%, rgba(192, 38, 211, .28) 55% 72%, transparent 72% 100%);
  --hero-pattern-size: auto;
}
html[data-template="external"] {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #10222b;
  --muted: #4e6470;
  --brand: #0b1f33;
  --brand-2: #0f8b8d;
  --line: #dfe7ee;
}

/* ---- Base elements ---- */
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { max-width: 68ch; }
a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.sr-only { position: absolute; 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: 1rem; top: -4rem; z-index: 100; background: var(--brand); color: var(--on-brand); padding: .7rem 1rem; border-radius: var(--radius-sm); transition: top .2s var(--ease); }
.skip-link:focus { top: 1rem; color: var(--on-brand); }
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }

.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .75rem; }
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: var(--brand); border-radius: 2px; }
.section { padding-block: var(--section-pad); }
.section-alt { background: var(--surface-2); }
.section-lead { color: var(--muted); font-size: clamp(1rem, 1.1vw + .75rem, 1.15rem); max-width: 62ch; margin-top: .75rem; }
.section h2 { max-width: 22ch; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .8rem 1.35rem; border-radius: var(--radius-sm); font-weight: 700; font-size: .98rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease), color .15s var(--ease); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:hover { transform: translateY(-2px); color: inherit; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -12px var(--brand); }
.btn-primary:hover { background: var(--brand-2); color: var(--on-brand); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
html[data-template="retail"] .hero .btn-ghost, html[data-template="service"] .hero .btn-ghost, html[data-template="seller"] .hero .btn-ghost { color: #fff; }
.btn-invert { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn-sm { min-height: 44px; padding: .55rem 1rem; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
@supports not (background: color-mix(in srgb, red 50%, blue)) { .site-header { background: var(--surface); } }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 2.2rem; height: 2.2rem; color: var(--brand); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1rem; letter-spacing: -.01em; }
.brand-text small { font-size: .7rem; color: var(--muted); font-weight: 600; }
.site-nav { display: none; align-items: center; gap: 1.4rem; margin-left: auto; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; padding: .5rem 0; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--brand); transition: right .2s var(--ease); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.site-nav + .header-actions { margin-left: 0; }
.header-cta { display: none; }
.lang-switch { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .85rem; text-decoration: none; background: var(--surface); }
.lang-switch:hover { border-color: var(--brand); color: var(--brand); }
.lang-switch .icon { width: 1rem; height: 1rem; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.nav-toggle .icon { width: 1.35rem; height: 1.35rem; }
.nav-toggle .nav-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-close { display: block; }

@media (min-width: 860px) {
  .site-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .header-actions { margin-left: 0; }
}
@media (max-width: 859px) {
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: .75rem 1.25rem 1.25rem; flex-direction: column; align-items: stretch; gap: .15rem; display: none; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .85rem .5rem; border-radius: var(--radius-sm); }
  .site-nav a:hover { background: var(--surface-2); }
  .site-nav a::after { display: none; }
}

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink, var(--ink)); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-pattern); background-size: var(--hero-pattern-size); pointer-events: none; opacity: .9; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%); top: -120px; right: -100px; pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 6vw, 5rem); z-index: 1; }
.hero .eyebrow { color: var(--hero-ink, var(--brand)); }
.hero .eyebrow::before { background: currentColor; opacity: .6; }
.hero h1 { max-width: 18ch; text-wrap: balance; }
.hero .lead { color: var(--hero-muted, var(--muted)); font-size: clamp(1.02rem, 1.2vw + .8rem, 1.2rem); margin-top: 1rem; max-width: 52ch; }
.hero-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .55rem; }
.hero-points li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 600; font-size: .97rem; }
.hero-points .icon { color: var(--hero-ink, var(--brand)); margin-top: .2rem; width: 1.1em; height: 1.1em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.hero-note { display: flex; align-items: center; gap: .45rem; margin-top: 1.1rem; font-size: .85rem; color: var(--hero-muted, var(--muted)); }
.hero-note .icon { width: 1em; height: 1em; }
.hero-visual { display: flex; flex-direction: column; gap: .6rem; align-items: center; }
.visual-caption { font-size: .8rem; color: var(--hero-muted, var(--muted)); }

.app-window { width: 100%; max-width: 460px; background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.aw-head { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.aw-head span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--line); }
.aw-head span:nth-child(1) { background: #e2543e; }
.aw-head span:nth-child(2) { background: #d9a514; }
.aw-head span:nth-child(3) { background: #2f5d3a; }
.aw-head b { margin-left: auto; font-size: .75rem; color: var(--muted); font-weight: 700; }
.aw-row { display: flex; align-items: center; gap: .6rem; padding: .8rem .9rem; border-bottom: 1px solid var(--line); font-size: .88rem; font-weight: 600; }
.aw-row:last-of-type { border-bottom: 0; }
.aw-ic { display: inline-flex; width: 1.9rem; height: 1.9rem; align-items: center; justify-content: center; background: var(--surface-2); color: var(--brand); border-radius: 8px; }
.aw-ic .icon { width: 1.05rem; height: 1.05rem; }
.aw-label { flex: 1; }
.aw-chip { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--brand); color: var(--on-brand); padding: .18rem .5rem; border-radius: 999px; }
.aw-foot { padding: .55rem .9rem; font-size: .72rem; color: var(--muted); background: var(--surface); }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 3rem; }
  .hero-visual { justify-content: flex-end; }
}

/* Template-specific hero accents */
html[data-template="fnb"] .hero h1 { font-style: normal; }
html[data-template="fnb"] .hero h1 em { font-style: italic; }
html[data-template="retail"] .hero h1 { letter-spacing: -.03em; }
html[data-template="service"] .hero h1 { letter-spacing: -.015em; }
html[data-template="agri"] .hero h1 { font-weight: 700; }
html[data-template="edu"] .hero h1 { font-weight: 900; }
html[data-template="health"] .hero h1 { font-weight: 800; letter-spacing: -.03em; }
html[data-template="seller"] .hero h1 { text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(1.9rem, 4vw + 1rem, 3.3rem); }

/* ---- Timeline (story) ---- */
.timeline { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: 1rem; position: relative; }
.tl-item { display: grid; grid-template-columns: 4.4rem minmax(0, 1fr); gap: .9rem; align-items: stretch; }
.tl-clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: .9rem; color: var(--brand); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; min-height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; align-self: start; }
.tl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .4); }
.tl-card h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.tl-card p { font-size: .94rem; color: var(--muted); }
.tl-block { margin-top: .6rem; padding: .55rem .7rem; border-radius: var(--radius-sm); font-size: .92rem; }
.tl-block p { margin: 0; }
.tl-tag { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .25rem; }
.tl-problem { background: color-mix(in srgb, #e2543e 9%, var(--surface)); }
.tl-problem .tl-tag { color: #b4371f; }
.tl-solution { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.tl-solution .tl-tag { color: var(--brand); }
.tl-intro .tl-card { border-left: 4px solid var(--brand); }
.tl-intro .tl-clock { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.tl-result .tl-card { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.tl-result .tl-card p, .tl-result .tl-card h3 { color: var(--on-brand); }
.tl-result .tl-clock { background: var(--brand-2); color: var(--on-brand); border-color: var(--brand-2); }
.story-cta { margin-top: 1.6rem; font-weight: 600; }
.story-cta a { color: var(--brand); }
@media (min-width: 720px) {
  .tl-item { grid-template-columns: 5.2rem minmax(0, 1fr); gap: 1.2rem; }
  .tl-card { padding: 1.15rem 1.3rem; }
}

/* ---- Problems grid ---- */
.problem-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.problem-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; position: relative; overflow: hidden; }
.problem-card .num { position: absolute; top: .6rem; right: .9rem; font-size: 2.4rem; font-weight: 900; color: var(--surface-2); font-family: var(--font-display); line-height: 1; }
.problem-card h3 { font-size: 1.02rem; margin-bottom: .5rem; max-width: 22ch; }
.problem-card p { font-size: .92rem; margin-top: .4rem; }
.problem-card strong { font-weight: 800; }
.p-problem { color: var(--muted); }
.p-problem strong { color: #b4371f; }
.p-solution strong { color: var(--brand); }
@media (min-width: 720px) { .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .problem-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- Modules grid ---- */
.module-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.module-card { display: flex; flex-direction: column; gap: .55rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); color: inherit; }
.mc-icon { display: inline-flex; width: 2.6rem; height: 2.6rem; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand); }
.mc-icon .icon { width: 1.35rem; height: 1.35rem; }
.module-card h3 { font-size: 1.02rem; }
.module-card p { font-size: .9rem; color: var(--muted); }
.mc-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; font-weight: 800; font-size: .88rem; color: var(--brand); }
.mc-link .icon { width: 1em; height: 1em; }
@media (min-width: 640px) { .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- Demo band ---- */
.demo-band { background: var(--brand); color: var(--on-brand); padding-block: clamp(2.2rem, 5vw, 3.4rem); }
.demo-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; }
.demo-band h2 { color: var(--on-brand); font-size: clamp(1.4rem, 2.4vw + .8rem, 2.1rem); }
.demo-band p { color: color-mix(in srgb, var(--on-brand) 82%, transparent); margin-top: .4rem; max-width: 46ch; }
.demo-band .btn-invert { color: var(--ink); }

/* ---- Catalog ---- */
.catalog-tools { display: grid; gap: .8rem; margin-top: 1.6rem; }
.search-box { display: flex; align-items: center; gap: .55rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .55rem .8rem; }
.search-box .icon { width: 1.1rem; height: 1.1rem; color: var(--muted); }
.search-box input { border: 0; background: transparent; width: 100%; min-height: 32px; outline: none; }
.search-box:focus-within { border-color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { min-height: 40px; padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: .85rem; }
.chip:hover { border-color: var(--brand); }
.chip.is-active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.catalog-grid { display: grid; gap: .9rem; margin-top: 1.4rem; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem; display: flex; flex-direction: column; gap: .35rem; }
.cat-card h3 { font-size: .98rem; }
.cat-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; }
.cat-price { font-weight: 900; color: var(--brand); font-size: 1.05rem; }
.cat-price-ask { color: var(--muted); font-weight: 700; font-size: .92rem; }
.cat-unit { font-size: .78rem; color: var(--muted); }
.cat-note { font-size: .82rem; color: var(--muted); }
.empty { margin-top: 1rem; color: var(--muted); font-weight: 600; }
@media (min-width: 560px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: .7rem; margin-top: 1.6rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-btn { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .95rem 1.1rem; font-weight: 700; text-align: left; font-size: .97rem; min-height: 44px; }
.faq-btn:hover { color: var(--brand); }
.faq-icon { width: 1.1rem; height: 1.1rem; color: var(--brand); transition: transform .2s var(--ease); }
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-panel { padding: 0 1.1rem 1rem; }
.faq-panel p { color: var(--muted); font-size: .93rem; }

/* ---- Contact + lead form ---- */
.contact-grid { display: grid; gap: 2rem; }
.contact-points { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.contact-points li { display: flex; gap: .55rem; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.contact-points .icon { color: var(--brand); margin-top: .2rem; width: 1.1em; height: 1.1em; }
.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.1rem, 3vw, 1.8rem); box-shadow: var(--shadow); display: grid; gap: .85rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 700; font-size: .88rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 25%, transparent); outline-offset: 0; }
.form-error { background: color-mix(in srgb, #e2543e 12%, var(--surface)); color: #9a2c17; border: 1px solid color-mix(in srgb, #e2543e 35%, var(--line)); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .9rem; font-weight: 600; }
.form-ok { background: color-mix(in srgb, #2f5d3a 12%, var(--surface)); color: #24512f; border: 1px solid color-mix(in srgb, #2f5d3a 35%, var(--line)); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .9rem; font-weight: 600; }
.form-note { font-size: .78rem; color: var(--muted); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; } }

/* ---- Footer ---- */
.site-footer { margin-top: auto; background: var(--footer-bg); color: var(--footer-ink); padding-block: 2rem; }
.footer-grid { display: grid; gap: 1.1rem; }
.footer-brand { display: flex; align-items: center; gap: .7rem; }
.footer-mark { color: #7fb2d6; }
.footer-brand p { display: flex; flex-direction: column; line-height: 1.25; }
.footer-brand strong { font-size: 1.05rem; color: #fff; }
.footer-brand span { font-size: .8rem; opacity: .8; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .9rem 1.4rem; }
.footer-nav a { text-decoration: none; font-size: .88rem; font-weight: 600; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-note { font-size: .8rem; opacity: .75; }
.footer-note a { color: inherit; }
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; }
  .footer-nav { justify-content: center; }
}
.site-footer-minimal { padding-block: 1.2rem; }
.site-footer-minimal .footer-grid { grid-template-columns: 1fr auto; }

/* ---- 404 ---- */
.notfound { flex: 1 0 auto; display: grid; align-items: center; padding-block: clamp(3rem, 8vw, 6rem); background: linear-gradient(160deg, #f6f8fb, #e9eff5); }
.notfound-inner { display: grid; gap: 1rem; justify-items: start; }
.notfound h1 { font-size: clamp(1.9rem, 4vw + 1rem, 3rem); max-width: 22ch; }
.notfound .lead { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.notfound .btn { margin-top: .4rem; }
.notfound-hint { font-size: .85rem; color: var(--muted); }
.notfound code { background: #fff; border: 1px solid var(--line); padding: .1rem .35rem; border-radius: 4px; }

/* ---- App shell (module UI lives in app.css) ---- */
.app-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.app-main { padding-block: 1.5rem 3rem; }
.app-banner { display: flex; flex-wrap: wrap; gap: .35rem; background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); color: var(--ink); border-radius: var(--radius-sm); padding: .65rem .9rem; font-size: .88rem; }
.app-title { font-size: clamp(1.5rem, 2.6vw + .8rem, 2.2rem); margin-top: 1.1rem; }
.app-sub { color: var(--muted); margin-top: .35rem; max-width: 60ch; }
.module-tabs { display: flex; gap: .5rem; overflow-x: auto; padding: .8rem 0 .4rem; margin-top: 1rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.tab .icon { width: 1.05rem; height: 1.05rem; color: var(--brand); }
.tab:hover { border-color: var(--brand); }
.tab.is-active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.tab.is-active .icon { color: var(--on-brand); }
.module-panels { margin-top: 1rem; }
.module-panel { outline: none; }
.app-noscript { margin-top: 1rem; padding: 1rem; background: #fff4e5; border: 1px solid #f0c48a; border-radius: var(--radius-sm); }

/* ---- Motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
