/* ============================================================
   WDA — SITE.CSS
   Styles for pages added on top of the approved UI Kit:
   utility page hero, consent + cookie banner, legal documents,
   contacts, cases index, FAQ app, system pages.
   Reuses tokens.css + kit.css; introduces no new colours.
   ============================================================ */

/* Skip link CSS now lives in kit.css (loaded by every page). */

/* ---------------- Compact page hero (utility pages) ---------------- */
.phero { position: relative; overflow: hidden; padding: clamp(96px,12vw,150px) var(--page-margin-tablet) clamp(40px,5vw,64px); background: var(--color-bg-surface); border-bottom: 1px solid var(--color-border-default); }
.phero--ink { background: var(--color-ink); border-bottom: 0; }
.phero__bg { position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background:
    radial-gradient(540px 300px at 88% -10%, rgba(var(--color-brand-primary-rgb),.16), transparent 70%),
    radial-gradient(420px 280px at 8% 120%, rgba(var(--color-brand-secondary-rgb),.10), transparent 70%);
}
.phero--ink .phero__bg { background: radial-gradient(640px 340px at 82% -10%, rgba(var(--color-brand-primary-rgb),.22), transparent 70%); opacity: 1; }
.phero__inner { position: relative; max-width: 1160px; margin: 0 auto; }
.phero__eyebrow { display:inline-flex; align-items:center; gap:9px; font-size: var(--fs-eyebrow); font-weight: var(--fw-bold); letter-spacing:.12em; text-transform:uppercase; color: var(--color-text-brand); }
.phero--ink .phero__eyebrow { color: var(--color-brand-primary); }
.phero__eyebrow .dot { width:8px; height:8px; border-radius:50%; background: var(--color-brand-primary); box-shadow: 0 0 0 4px rgba(var(--color-brand-primary-rgb),.18); }
.phero h1 { font-family: var(--font-display); font-size: clamp(32px,5vw,var(--fs-h1)); line-height: var(--lh-h1); margin: 18px 0 0; letter-spacing:-.02em; max-width: 18ch; }
.phero--ink h1 { color: #fff; }
.phero h1 .accent { background: var(--gradient-accent-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.phero__lead { margin: 18px 0 0; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--color-text-secondary); max-width: 60ch; }
.phero--ink .phero__lead { color: var(--color-text-on-dark-muted); }
.phero__cta { display:flex; flex-wrap:wrap; gap:14px; margin-top: 30px; }

/* ---------------- Consent control + form error ---------------- */
.consent { margin: 4px 0 18px; }
.consent .check { font-size: var(--fs-caption); color: var(--color-text-secondary); }
.consent a { color: var(--color-text-brand); font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 2px; }
.consent.is-error .box { border-color: var(--color-state-error); box-shadow: 0 0 0 3px var(--color-state-error-tint); }
.consent.is-error { color: var(--color-state-error); }
.form-error { display:flex; gap:8px; align-items:center; background: var(--color-state-error-tint); color: var(--color-state-error);
  border-radius: var(--radius-md); padding: 11px 14px; font-size: var(--fs-body-sm); font-weight: var(--fw-medium); margin-bottom: 14px; }
.form-error svg { width:18px; height:18px; flex:none; }

/* ---------------- Cookie banner ----------------
   Moved to the shared assets/cookie-consent.css so every page (not just
   the ones that load site.css) styles the JS-injected banner. Do not
   re-add .cookie-banner rules here — keep one source of truth. */

/* ============================================================
   LEGAL DOCUMENTS
   ============================================================ */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px,5vw,72px); align-items: start; }
.legal-toc { position: sticky; top: 96px; }
.legal-toc__title { font-size: var(--fs-caption); text-transform: uppercase; letter-spacing:.1em; color: var(--color-text-muted); font-weight: var(--fw-bold); margin: 0 0 12px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display:flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.legal-toc a { display:flex; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); font-size: var(--fs-body-sm);
  color: var(--color-text-secondary); border-left: 2px solid transparent; transition: background var(--dur), color var(--dur); }
.legal-toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--color-text-muted); font-variant-numeric: tabular-nums; font-weight: var(--fw-semibold); }
.legal-toc a:hover { background: var(--color-bg-surface); color: var(--color-text-primary); }
.legal-toc a.is-active { background: var(--color-brand-tint); color: var(--color-text-brand); font-weight: var(--fw-semibold); }
.legal-toc a.is-active::before { color: var(--color-text-brand); }

/* mobile contents dropdown */
.legal-toc__mobile { display: none; margin-bottom: 28px; }
.legal-toc__mobile summary { cursor: pointer; list-style: none; padding: 14px 18px; border: 1px solid var(--color-border-default);
  border-radius: var(--radius-md); font-weight: var(--fw-semibold); display:flex; justify-content: space-between; align-items:center; }
.legal-toc__mobile summary::-webkit-details-marker { display:none; }
.legal-toc__mobile summary::after { content:''; width:9px; height:9px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform: rotate(45deg); transition: transform var(--dur); }
.legal-toc__mobile[open] summary::after { transform: rotate(-135deg); }
.legal-toc__mobile ol { list-style: none; margin: 8px 0 0; padding: 8px; border: 1px solid var(--color-border-default); border-radius: var(--radius-md); counter-reset: tocm; }
.legal-toc__mobile a { display:block; padding: 9px 12px; font-size: var(--fs-body-sm); color: var(--color-text-secondary); border-radius: var(--radius-sm); }
.legal-toc__mobile a:hover { background: var(--color-bg-surface); }

.legal-doc { max-width: 760px; }
.legal-doc__meta { display:flex; flex-wrap:wrap; gap: 10px 28px; padding: 18px 22px; background: var(--color-bg-surface); border: 1px solid var(--color-border-default); border-radius: var(--radius-md); margin-bottom: 40px; }
.legal-doc__meta div { display:flex; flex-direction: column; gap: 2px; }
.legal-doc__meta dt { font-size: var(--fs-caption); color: var(--color-text-muted); text-transform: uppercase; letter-spacing:.06em; }
.legal-doc__meta dd { margin: 0; font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--color-text-primary); }
.legal-doc__meta dd.is-pending { color: var(--color-text-muted); font-weight: var(--fw-medium); font-style: italic; }
.legal-sec { scroll-margin-top: 96px; padding-top: 8px; margin-bottom: 38px; }
.legal-sec h2 { font-size: var(--fs-h3); font-family: var(--font-display); letter-spacing:-.01em; margin: 0 0 16px; display:flex; gap: 14px; align-items: baseline; }
.legal-sec h2 .legal-num { font-size: var(--fs-h5); color: var(--color-brand-primary); font-variant-numeric: tabular-nums; font-weight: var(--fw-bold); }
.legal-sec h3 { font-size: var(--fs-h5); margin: 24px 0 10px; font-weight: var(--fw-bold); }
.legal-sec p { color: var(--color-text-secondary); font-size: var(--fs-body-lg); line-height: 1.7; margin: 0 0 14px; }
.legal-sec ul { margin: 0 0 16px; padding-left: 0; list-style: none; display:flex; flex-direction: column; gap: 10px; }
.legal-sec ul li { position: relative; padding-left: 26px; color: var(--color-text-secondary); font-size: var(--fs-body-lg); line-height: 1.65; }
.legal-sec ul li::before { content:''; position:absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 2px; background: var(--color-brand-primary); }
.legal-sec a { color: var(--color-text-brand); text-decoration: underline; text-underline-offset: 2px; }
.legal-callout { display:flex; gap: 14px; padding: 18px 20px; background: var(--color-brand-tint); border-radius: var(--radius-md); margin: 22px 0; }
.legal-callout svg { width: 22px; height: 22px; flex:none; color: var(--color-text-brand); }
.legal-callout p { margin: 0; font-size: var(--fs-body); color: var(--color-text-primary); }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .legal-toc__mobile { display: block; }
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px,4vw,56px); align-items: start; }
.channels { display: grid; gap: 14px; }
.channel { display:flex; gap: 16px; align-items:center; padding: 20px 22px; border: 1px solid var(--color-border-default);
  border-radius: var(--radius-lg); background: var(--color-bg-page); transition: box-shadow var(--dur), transform var(--dur), border-color var(--dur); }
.channel:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--color-border-strong); }
.channel__ic { flex:none; width: 50px; height: 50px; border-radius: var(--radius-md); display:grid; place-items:center; background: var(--color-brand-tint); color: var(--color-text-brand); }
.channel__ic svg { width: 24px; height: 24px; }
.channel__ic--wa { background: #E7F8EC; color: #1FA94B; }
.channel__b { display:flex; flex-direction: column; gap: 2px; min-width: 0; }
.channel__b .lbl { font-size: var(--fs-caption); color: var(--color-text-muted); text-transform: uppercase; letter-spacing:.06em; }
.channel__b .val { font-size: var(--fs-h5); font-weight: var(--fw-bold); color: var(--color-text-primary); }
.channel__arrow { margin-left:auto; color: var(--color-text-muted); transition: transform var(--dur), color var(--dur); }
.channel:hover .channel__arrow { transform: translateX(4px); color: var(--color-text-brand); }
.contact-meta { display:flex; flex-wrap:wrap; gap: 22px 40px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--color-border-default); }
.contact-meta div { display:flex; flex-direction: column; gap: 4px; }
.contact-meta .k { font-size: var(--fs-caption); color: var(--color-text-muted); text-transform: uppercase; letter-spacing:.06em; }
.contact-meta .v { font-size: var(--fs-body-lg); font-weight: var(--fw-semibold); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================
   CASES INDEX
   ============================================================ */
.case-filters { display:flex; flex-wrap: wrap; gap: 22px 40px; align-items: flex-end; margin-bottom: 40px; }
.case-filter__lbl { display:block; font-size: var(--fs-caption); color: var(--color-text-muted); text-transform: uppercase; letter-spacing:.08em; margin-bottom: 10px; font-weight: var(--fw-bold); }
.chips { display:flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { font-family: var(--font-sans); font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--color-text-secondary);
  background: var(--color-bg-page); border: 1px solid var(--color-border-default); border-radius: var(--radius-pill);
  padding: 8px 16px; cursor: pointer; transition: all var(--dur); }
.chip-btn:hover { border-color: var(--color-text-muted); color: var(--color-text-primary); }
.chip-btn.is-active { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.chip-btn:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

.case-featured { position: relative; overflow:hidden; display:grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  border-radius: var(--radius-xl); background: var(--color-ink); color:#fff; margin-bottom: 32px; }
.case-featured__copy { padding: clamp(28px,4vw,52px); display:flex; flex-direction: column; gap: 16px; justify-content: center; }
.case-featured__tag { display:inline-flex; align-items:center; gap:8px; align-self:flex-start; font-size: var(--fs-caption); font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing:.1em; color: var(--color-brand-primary); }
.case-featured h2 { font-family: var(--font-display); font-size: clamp(26px,3.2vw,var(--fs-h2)); line-height: 1.1; margin: 0; }
.case-featured p { color: var(--color-text-on-dark-muted); font-size: var(--fs-body-lg); line-height: 1.6; margin: 0; max-width: 46ch; }
.case-featured__stats { display:flex; flex-wrap: wrap; gap: 28px; margin-top: 6px; }
.case-featured__stats .s { display:flex; flex-direction: column; gap: 2px; }
.case-featured__stats .s b { font-family: var(--font-display); font-size: var(--fs-h4); color: var(--color-brand-primary); }
.case-featured__stats .s span { font-size: var(--fs-caption); color: var(--color-text-on-dark-muted); }
.case-featured__viz { position: relative; background: linear-gradient(150deg, var(--color-ink-surface), var(--color-ink-elevated)); border-left: 1px solid var(--color-ink-border); min-height: 320px; overflow:hidden; }

.case-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.case-card { grid-column: span 2; display:flex; flex-direction: column; background: var(--color-bg-page);
  border: 1px solid var(--color-border-default); border-radius: var(--radius-lg); overflow:hidden;
  transition: box-shadow var(--dur), transform var(--dur), border-color var(--dur); }
.case-card.span-3 { grid-column: span 3; }
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.case-card__viz { position: relative; height: 180px; overflow:hidden; background: var(--color-bg-surface); border-bottom: 1px solid var(--color-border-default); }
.case-card__img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; transition: transform .6s var(--motion-easing-standard, ease); }
.case-card:hover .case-card__img { transform: scale(1.05); }
.case-card__overlay { position:absolute; inset:0; pointer-events:none; background: linear-gradient(180deg, rgba(8,22,31,.08) 28%, rgba(8,22,31,.60) 100%); }
.case-card.span-3 .case-card__viz { height: 210px; }
.case-card__cat { position:absolute; top: 14px; left: 14px; z-index: 2; display:inline-flex; align-items:center; gap:7px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-radius: var(--radius-pill); padding: 6px 13px;
  font-size: var(--fs-caption); font-weight: var(--fw-bold); color: var(--color-text-primary); box-shadow: var(--shadow-sm); }
.case-card__cat svg { width: 14px; height: 14px; color: var(--color-text-brand); }
.case-card__body { padding: 22px 24px 26px; display:flex; flex-direction: column; gap: 12px; flex: 1; }
.case-card__body h3 { font-size: var(--fs-h5); font-weight: var(--fw-bold); margin: 0; line-height: 1.25; }
.case-card.span-3 .case-card__body h3 { font-size: var(--fs-h4); }
.case-card__body p { margin: 0; color: var(--color-text-secondary); font-size: var(--fs-body-sm); line-height: 1.6; }
.case-card__tags { margin-top: auto; display:flex; flex-wrap:wrap; gap: 7px; padding-top: 6px; }
.case-tag { font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--color-text-secondary);
  background: var(--color-bg-surface); border-radius: var(--radius-sm); padding: 4px 10px; }
.case-result { display:inline-flex; align-items:center; gap: 7px; font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--color-text-brand); }
.case-result svg { width: 16px; height: 16px; }
.case-card.is-soon { opacity: .72; }
.case-card.is-soon .case-card__viz { filter: grayscale(.4); }
.case-soon-badge { display:inline-flex; align-items:center; gap:6px; font-size: var(--fs-caption); font-weight: var(--fw-bold);
  color: var(--color-text-muted); background: var(--color-bg-surface-2); border-radius: var(--radius-pill); padding: 4px 12px; align-self:flex-start; }
.cases-empty { display:none; text-align:center; padding: 60px 0; color: var(--color-text-muted); }
@media (max-width: 980px) { .case-grid { grid-template-columns: repeat(4,1fr); } .case-card, .case-card.span-3 { grid-column: span 2; } }
@media (max-width: 760px) { .case-featured { grid-template-columns: 1fr; } .case-featured__viz { min-height: 200px; } }
@media (max-width: 560px) { .case-grid { grid-template-columns: 1fr; } .case-card, .case-card.span-3 { grid-column: span 1; } }

/* cases catalog — lower SEO block + service links */
.cases-seo__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: 36px; }
.cases-seo__col p { margin: 0 0 16px; color: var(--color-text-secondary); font-size: var(--fs-body-lg); line-height: 1.7; }
.cases-seo__col p:last-child { margin-bottom: 0; }
.cases-seo__col p a { color: var(--color-text-brand); font-weight: var(--fw-semibold); border-bottom: 1px solid transparent; transition: border-color var(--dur), color var(--dur); }
.cases-seo__col p a:hover { border-bottom-color: currentColor; }
.cases-seo__label { display: block; font-size: var(--fs-eyebrow); font-weight: var(--fw-bold); letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 14px; }
.cases-seo__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cases-seo__links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px;
  background: var(--color-bg-page); border: 1px solid var(--color-border-default); border-radius: var(--radius-md);
  color: var(--color-text-primary); font-weight: var(--fw-semibold); font-size: var(--fs-body-sm); }
.cases-seo__links a:hover { border-color: var(--color-brand-primary); color: var(--color-text-brand); }
.cases-seo__links svg { width: 16px; height: 16px; flex: none; color: var(--color-text-brand); }
.cases-seo .btn--outline svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .cases-seo__grid { grid-template-columns: 1fr; } }

/* generic decorative viz primitives (cases / system pages) */
.viz-grid { position:absolute; inset:0; background-image: linear-gradient(var(--color-border-default) 1px, transparent 1px), linear-gradient(90deg, var(--color-border-default) 1px, transparent 1px); background-size: 28px 28px; opacity:.5; }
.viz-glow { position:absolute; width: 200px; height: 200px; border-radius:50%; background: radial-gradient(circle, rgba(var(--color-brand-primary-rgb),.32), transparent 70%); filter: blur(8px); }
.case-viz-ic { position:absolute; right: -18px; bottom: -22px; width: 150px; height: 150px; color: var(--color-brand-primary); opacity: .14; }
.case-viz-ic svg { width: 100%; height: 100%; }
.case-card__viz .viz-glow { right: 24px; top: -60px; width: 150px; height: 150px; opacity: .6; }

/* ============================================================
   FAQ APP (search + tabs)
   ============================================================ */
.faqx-bar { position: relative; margin-bottom: 22px; }
.faqx-bar svg { position:absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--color-text-muted); }
.faqx-bar input { width: 100%; height: 56px; padding: 0 18px 0 50px; font-family: var(--font-sans); font-size: var(--fs-body-lg);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); background: var(--color-bg-page); color: var(--color-text-primary); transition: border-color var(--dur), box-shadow var(--dur); }
.faqx-bar input:focus { outline:none; border-color: var(--color-brand-primary); box-shadow: var(--shadow-focus); }
.faqx-tabs { display:flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.faqx-tab { font-family: var(--font-sans); font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); color: var(--color-text-secondary);
  background: var(--color-bg-page); border: 1px solid var(--color-border-default); border-radius: var(--radius-pill); padding: 9px 17px; cursor: pointer; transition: all var(--dur); }
.faqx-tab:hover { border-color: var(--color-text-muted); color: var(--color-text-primary); }
.faqx-tab.is-active { background: var(--color-brand-primary); color: var(--color-text-on-brand); border-color: var(--color-brand-primary); }
.faqx-tab:focus-visible { outline:none; box-shadow: var(--shadow-focus); }
.faqx-group { margin-bottom: 34px; }
.faqx-group__title { font-size: var(--fs-h5); font-weight: var(--fw-bold); margin: 0 0 14px; display:flex; align-items:center; gap: 10px; }
.faqx-group__title .dot { width:9px; height:9px; border-radius:50%; background: var(--color-brand-primary); }
.faqx-empty { display:none; text-align:center; padding: 50px 20px; color: var(--color-text-muted); }
.faqx-empty svg { width: 40px; height: 40px; margin-bottom: 14px; color: var(--color-border-strong); }
.faq__item.is-open .faq__a { max-height: 600px; }

/* ============================================================
   SYSTEM PAGES (success / 404 / 500)
   ============================================================ */
.sysp { min-height: calc(100vh - 80px); display:flex; align-items:center; justify-content:center; position: relative; overflow:hidden;
  padding: clamp(80px,12vh,140px) var(--page-margin-mobile); text-align:center; background: var(--color-bg-surface); }
.sysp__bg { position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(600px 360px at 50% -5%, rgba(var(--color-brand-primary-rgb),.16), transparent 70%); }
.sysp__inner { position: relative; max-width: 640px; }
.sysp__viz { margin: 0 auto 32px; width: 132px; height: 132px; position: relative; }
.sysp__eyebrow { font-size: var(--fs-eyebrow); font-weight: var(--fw-bold); letter-spacing:.12em; text-transform:uppercase; color: var(--color-text-brand); }
.sysp h1 { font-family: var(--font-display); font-size: clamp(28px,4.4vw,var(--fs-h1)); line-height: 1.1; margin: 14px 0 16px; letter-spacing:-.02em; }
.sysp__lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--color-text-secondary); margin: 0 auto 30px; max-width: 48ch; }
.sysp__cta { display:flex; flex-wrap:wrap; gap: 14px; justify-content:center; }
.sysp__steps { display:flex; flex-wrap:wrap; justify-content:center; gap: 14px; margin: 34px 0; }
.sysp__step { display:flex; align-items:center; gap: 12px; background: var(--color-bg-page); border: 1px solid var(--color-border-default);
  border-radius: var(--radius-pill); padding: 10px 20px 10px 12px; font-size: var(--fs-body-sm); font-weight: var(--fw-semibold); }
.sysp__step .n { width: 28px; height: 28px; border-radius:50%; background: var(--color-brand-tint); color: var(--color-text-brand);
  display:grid; place-items:center; font-family: var(--font-display); font-size: 13px; }
.sysp__links { display:flex; flex-wrap:wrap; justify-content:center; gap: 6px 22px; margin-top: 30px; font-size: var(--fs-body-sm); }
.sysp__links a { color: var(--color-text-secondary); display:inline-flex; align-items:center; gap:7px; padding: 6px 4px; transition: color var(--dur); }
.sysp__links a:hover { color: var(--color-text-brand); }
.sysp__links a svg { width: 15px; height: 15px; }

/* success tick */
.sysp-tick { width: 100%; height: 100%; }
.sysp-tick circle { fill: none; stroke: var(--color-brand-primary); stroke-width: 4; stroke-dasharray: 360; stroke-dashoffset: 360; transform-origin:center; }
.sysp-tick path { fill: none; stroke: var(--color-brand-primary); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
@media (prefers-reduced-motion: no-preference) {
  .sysp-tick circle { animation: tickRing 700ms var(--motion-easing-enter) forwards; }
  .sysp-tick path { animation: tickMark 460ms var(--motion-easing-enter) 520ms forwards; }
}
@media (prefers-reduced-motion: reduce) { .sysp-tick circle, .sysp-tick path { stroke-dashoffset: 0; } }
@keyframes tickRing { to { stroke-dashoffset: 0; } }
@keyframes tickMark { to { stroke-dashoffset: 0; } }

/* broken / recovery node visual */
.sysp-node { width:100%; height:100%; }
.sysp-node .ln { stroke: var(--color-border-strong); stroke-width: 2.5; stroke-linecap: round; }
.sysp-node .ln--broken { stroke-dasharray: 7 9; stroke: var(--color-state-warning); }
.sysp-node .nd { fill: var(--color-bg-page); stroke: var(--color-border-strong); stroke-width: 2.5; }
.sysp-node .nd--live { fill: var(--color-brand-tint); stroke: var(--color-brand-primary); }
.sysp-node .nd--lost { fill: var(--color-state-error-tint); stroke: var(--color-state-error); }
@media (prefers-reduced-motion: no-preference) {
  .sysp-node .pulse { transform-origin:center; animation: ndPulse 2.4s var(--motion-easing-soft) infinite; }
  .sysp-node .dash { stroke-dasharray: 6 10; animation: dashFlow 1.4s linear infinite; }
}
@keyframes ndPulse { 0%,100%{ opacity:.5; r: 7px;} 50%{ opacity:1; r: 9px; } }
@keyframes dashFlow { to { stroke-dashoffset: -32; } }

@media (max-width: 720px) { .phero__inner, .legal-layout { } }

/* 5-column footer variant (adds Документы column on new pages) */
.site-footer__grid--docs { grid-template-columns: 1.6fr 1fr 1fr 1.1fr 1.2fr; }
@media (max-width: 980px) { .site-footer__grid--docs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid--docs { grid-template-columns: 1fr; } }

/* ============================================================
   UNIQUE HERO SYSTEM  (v1.0)
   Shared foundation (.xhero) + per-page unique variants. Replaces
   the repeated text-only .phero on Cases / FAQ / Contacts / legal
   pages so no two heroes share a composition. Reuses tokens,
   .btn, .eyebrow, the motion reveal engine and reduced-motion guard.
   ============================================================ */

/* ---- Layer 1 · shared foundation ---- */
.xhero { position: relative; overflow: hidden; padding: clamp(104px,12vw,150px) var(--page-margin-tablet) clamp(48px,6vw,84px); background: var(--color-bg-page); border-bottom: 1px solid var(--color-border-default); }
.xhero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.xhero__bg::before { content: ""; position: absolute; width: 640px; height: 640px; top: -260px; right: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--color-brand-primary-rgb),.16), transparent 68%); filter: blur(60px); }
.xhero__bg::after { content: ""; position: absolute; width: 480px; height: 480px; bottom: -260px; left: -150px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--color-brand-secondary-rgb),.09), transparent 70%); filter: blur(60px); }
.xhero__grid { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(var(--color-border-default) 1px, transparent 1px), linear-gradient(90deg, var(--color-border-default) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 78% 70% at 64% 32%, #000, transparent 74%); mask-image: radial-gradient(ellipse 78% 70% at 64% 32%, #000, transparent 74%); opacity: .42; }
.xhero__inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; }
.xhero__copy { max-width: 560px; }
.xhero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-eyebrow); font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--color-text-brand); }
.xhero__eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--color-brand-primary); }
.xhero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(31px,4.5vw,53px); line-height: 1.05; letter-spacing: -.025em; margin: 20px 0 0; color: var(--color-text-primary); }
.xhero h1 .accent { background: var(--gradient-accent-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.xhero__lead { font-size: clamp(16px,1.55vw,19px); line-height: 1.6; color: var(--color-text-secondary); margin: 20px 0 0; max-width: 54ch; }
.xhero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.xhero__note { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--color-text-muted); max-width: 440px; }
.xhero__note svg { width: 18px; height: 18px; color: var(--color-text-brand); flex: none; margin-top: 1px; }
.xhero__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

/* split shell shared by contacts / legal / cases */
.xhero--split .xhero__inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: clamp(36px,5vw,64px); align-items: center; }
@media (max-width: 1080px) { .xhero--split .xhero__inner { grid-template-columns: 1fr; gap: 44px; } }

/* generic step-reveal for visual stages (gated on motion.js .is-in) */
.xviz [data-step] { opacity: 1; }
.xviz.is-in [data-step] { animation: xvizStep .55s var(--motion-easing-enter) both; }
@keyframes xvizStep { from { transform: translateY(14px); } to { transform: none; } }

/* ============================================================
   CASES — editorial layered stack  (hero-cases-editorial-stack)
   ============================================================ */
.cstack { position: relative; width: 100%; }
.cstack__stage { position: relative; height: 392px; perspective: 1400px; }
.cstack__card { position: absolute; top: 0; left: 50%; width: min(420px, 90%); margin-left: calc(min(420px,90%) / -2);
  background: var(--color-bg-page); border: 1px solid var(--color-border-default); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 26px 26px 22px; transition: transform var(--motion-duration-emphasis) var(--motion-easing-soft), opacity var(--motion-duration-emphasis) var(--motion-easing-standard); will-change: transform, opacity; }
.cstack__cat { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-caption); font-weight: var(--fw-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-brand); }
.cstack__cat .ci { width: 22px; height: 22px; border-radius: 6px; background: var(--color-brand-tint); display: grid; place-items: center; }
.cstack__cat .ci svg { width: 13px; height: 13px; }
.cstack__card h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.2; letter-spacing: -.01em; margin: 14px 0 10px; color: var(--color-text-primary); }
.cstack__card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--color-text-secondary); }
.cstack__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.cstack__tags span { font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--color-text-secondary); background: var(--color-bg-surface); border-radius: var(--radius-sm); padding: 4px 10px; }
.cstack__bars { display: flex; align-items: flex-end; gap: 5px; height: 38px; margin-top: 18px; }
.cstack__bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--color-brand-tint-strong); }
.cstack__bars i:last-child { background: var(--color-brand-primary); }
.cstack__nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }
.cstack__dot { font-family: var(--font-sans); font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--color-text-secondary);
  background: var(--color-bg-page); border: 1px solid var(--color-border-default); border-radius: var(--radius-pill); padding: 7px 14px; cursor: pointer; transition: all var(--motion-duration-fast) var(--motion-easing-standard); }
.cstack__dot:hover { border-color: var(--color-text-muted); color: var(--color-text-primary); }
.cstack__dot.is-on { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.cstack__dot:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
@media (max-width: 1080px) { .cstack__stage { height: 360px; } }
@media (max-width: 560px) { .cstack__stage { height: 340px; } .cstack__card { padding: 22px; } }

/* ============================================================
   FAQ — knowledge map  (hero-faq-knowledge-map)
   ============================================================ */
.xhero--faq .xhero__inner { max-width: 940px; text-align: center; }
.xhero--faq .xhero__eyebrow { justify-content: center; }
.xhero--faq .xhero__eyebrow::before { display: none; }
.xhero--faq h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.xhero--faq .xhero__lead { margin-left: auto; margin-right: auto; text-align: center; }
.kmap { margin: 34px auto 0; max-width: 720px; }
.kmap__search { position: relative; max-width: 540px; margin: 0 auto; }
.kmap__search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--color-text-muted); pointer-events: none; }
.kmap__search input { width: 100%; height: 56px; padding: 0 18px 0 50px; font-family: var(--font-sans); font-size: var(--fs-body-lg);
  border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-pill); background: var(--color-bg-page); color: var(--color-text-primary);
  box-shadow: var(--shadow-sm); transition: border-color var(--dur), box-shadow var(--dur); }
.kmap__search input:focus { outline: none; border-color: var(--color-brand-primary); box-shadow: var(--shadow-focus); }
.kmap__cluster { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.kchip { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px; border-radius: var(--radius-pill);
  background: var(--color-bg-page); border: 1.5px solid var(--color-border-default); font-family: var(--font-sans); font-size: 14.5px; font-weight: var(--fw-semibold);
  color: var(--color-text-primary); cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color var(--motion-duration-standard) var(--motion-easing-standard), background var(--motion-duration-standard), box-shadow var(--motion-duration-standard), transform var(--motion-duration-standard) var(--motion-easing-standard); }
.kchip .kd { width: 8px; height: 8px; border-radius: 50%; background: var(--color-brand-primary); flex: none; transition: transform var(--motion-duration-standard); }
.kchip:hover { border-color: var(--color-brand-tint-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kchip:hover .kd { transform: scale(1.5); }
.kchip.is-active { background: var(--color-brand-primary); border-color: var(--color-brand-primary); color: var(--color-text-on-brand); }
.kchip.is-active .kd { background: var(--color-ink); }
.kchip:focus-visible { outline: none; box-shadow: var(--shadow-focus); }

/* ============================================================
   CONTACTS — request route flow  (hero-contacts-request-flow)
   ============================================================ */
.rflow { position: relative; background: linear-gradient(145deg, var(--color-ink) 0%, var(--color-ink-surface) 100%); border: 1px solid var(--color-ink-border); border-radius: var(--radius-xl); box-shadow: 0 18px 46px rgba(23, 36, 58, .20); padding: 24px; overflow: hidden; }
.rflow::before { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--color-brand-primary-rgb),.16), transparent 70%); pointer-events: none; }
.rflow__h { position: relative; display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-on-dark-muted); margin: 0 0 16px; padding: 0 4px; }
.rflow__h .live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--color-brand-secondary); }
.rflow__h .live .d { width: 7px; height: 7px; border-radius: 50%; background: var(--color-brand-secondary); box-shadow: 0 0 0 4px var(--color-brand-secondary-soft); animation: pulseDot 2s var(--motion-easing-soft) infinite; }
.rflow__track { position: relative; display: flex; flex-direction: column; gap: 12px; }
.rflow__track::before { content: ""; position: absolute; left: 30px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(180deg, rgba(41, 185, 242, .65), rgba(105, 74, 217, .72)); }
.rflow__track::after { content: ""; position: absolute; left: 30px; top: 22px; width: 2px; height: 0; background: var(--color-brand-primary); transition: height 1.5s var(--motion-easing-soft) .3s; }
.xviz.is-in .rflow__track::after { height: calc(100% - 44px); }
.rstep { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 13px 15px; border-radius: var(--radius-md); background: rgba(255, 255, 255, .045); border: 1px solid rgba(148, 171, 210, .16); transition: background var(--motion-base) var(--ease-standard); }
.rstep:hover { background: rgba(255, 255, 255, .075); }
.rstep__ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 4px var(--color-ink); }
.rstep__ic svg { width: 16px; height: 16px; }
.rstep__ic--wa { background: #25D366; } .rstep__ic--crm { background: var(--color-brand-primary); color: var(--color-text-on-brand); } .rstep__ic--user { background: var(--color-state-info); } .rstep__ic--ok { background: var(--color-brand-primary); color: var(--color-text-on-brand); }
.rstep__b { min-width: 0; flex: 1; }
.rstep__b .n { display: block; font-size: 13px; font-weight: var(--fw-bold); color: #fff; }
.rstep__b .t { display: block; font-size: 11.5px; color: var(--color-text-on-dark-muted); margin-top: 1px; }
.rstep__tag { font-size: 10.5px; font-weight: var(--fw-bold); color: var(--color-brand-primary); background: rgba(var(--color-brand-primary-rgb),.14); border-radius: var(--radius-pill); padding: 4px 10px; flex: none; }
.rstep--ok { border-color: rgba(var(--color-brand-primary-rgb),.4); background: rgba(255, 255, 255, .075); }

/* ============================================================
   LEGAL — shared split shell + 4 distinct visuals
   (hero-legal-privacy / consent / terms / cookie)
   ============================================================ */
.xhero--legal { background: var(--color-bg-surface); }
.lviz { position: relative; display: grid; place-items: center; min-height: 340px; border-radius: var(--radius-xl); background: var(--color-bg-page); border: 1px solid var(--color-border-default); box-shadow: var(--shadow-md); padding: 30px; overflow: hidden; }
.lviz__glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--color-brand-primary-rgb),.20), transparent 70%); top: -60px; right: -60px; pointer-events: none; }

/* privacy — data-protection shield */
.lviz--shield .shield-svg { width: 220px; height: 240px; }
.lviz--shield .sh-body { fill: var(--color-brand-tint); stroke: var(--color-brand-primary); stroke-width: 2.5; }
.lviz--shield .sh-node { fill: var(--color-bg-page); stroke: var(--color-border-strong); stroke-width: 2; }
.lviz--shield .sh-node.core { fill: var(--color-brand-primary); stroke: var(--color-brand-primary); }
.lviz--shield .sh-link { stroke: var(--color-brand-primary); stroke-width: 2; }
.lviz--shield .sh-check { fill: none; stroke: var(--color-brand-primary); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.lviz--shield .sh-pulse { fill: rgba(var(--color-brand-primary-rgb), .12); transform-origin: center; animation: shieldGlow 3.6s var(--motion-easing-soft) infinite; }
@keyframes shLink { to { stroke-dashoffset: 0; } }
@keyframes shieldGlow { 0%,100% { opacity: .35; } 50% { opacity: .85; } }

/* consent — document confirmation flow */
.lflow { display: flex; align-items: center; gap: 12px; }
.lcard { background: var(--color-bg-page); border: 1px solid var(--color-border-default); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 14px; width: 124px; }
.lcard .lc-h { height: 7px; width: 60%; border-radius: 3px; background: var(--color-border-strong); margin-bottom: 9px; }
.lcard .lc-l { height: 5px; border-radius: 3px; background: var(--color-bg-surface-2); margin-bottom: 6px; }
.lcard .lc-l.short { width: 70%; }
.lcard__chk { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11px; font-weight: var(--fw-bold); color: var(--color-text-brand); }
.lcard__chk .bx { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--color-brand-primary); display: grid; place-items: center; color: #fff; background: var(--color-brand-primary); }
.lcard__chk .bx svg { width: 12px; height: 12px; }
.lflow__arrow { color: var(--color-brand-primary); flex: none; }
.lflow__arrow svg { width: 22px; height: 22px; }
.lstore { width: 92px; height: 104px; border-radius: var(--radius-md); background: var(--color-ink); display: grid; place-items: center; color: #fff; flex: none; }
.lstore svg { width: 34px; height: 34px; color: var(--color-brand-primary); }
.lstore small { display: block; font-size: 10px; color: var(--color-text-on-dark-muted); margin-top: 6px; text-align: center; }
.lstore__in { text-align: center; }

/* terms — structured agreement panel */
.lpanel { width: 100%; max-width: 320px; background: var(--color-bg-page); border: 1px solid var(--color-border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.lpanel__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--color-border-default); background: var(--color-bg-surface); }
.lpanel__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border-strong); }
.lpanel__bar b { margin-left: 6px; font-size: 12px; font-weight: var(--fw-bold); color: var(--color-text-muted); }
.lpanel__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 11px; }
.lrow { display: flex; align-items: center; gap: 11px; }
.lrow .ln { font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--color-brand-primary); width: 18px; flex: none; }
.lrow .lt { flex: 1; height: 8px; border-radius: 3px; background: var(--color-bg-surface-2); }
.lrow.is-active .lt { background: var(--color-brand-tint-strong); }
.lrow.is-active .ln { color: var(--color-ink); }

/* cookie — preference control panel */
.cookie-panel { width: 100%; max-width: 320px; background: var(--color-bg-page); border: 1px solid var(--color-border-default); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 8px; }
.cprow { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border-radius: var(--radius-md); }
.cprow + .cprow { border-top: 1px solid var(--color-border-default); }
.cprow__b { flex: 1; min-width: 0; }
.cprow__b .n { display: block; font-size: 13.5px; font-weight: var(--fw-bold); color: var(--color-text-primary); }
.cprow__b .t { display: block; font-size: 11.5px; color: var(--color-text-muted); }
.cptoggle { flex: none; width: 44px; height: 26px; border-radius: var(--radius-pill); background: var(--color-bg-surface-2); border: 0; position: relative; cursor: pointer; transition: background var(--motion-duration-standard) var(--motion-easing-standard); }
.cptoggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--motion-duration-standard) var(--motion-easing-standard); }
.cptoggle.is-on { background: var(--color-brand-primary); }
.cptoggle.is-on::after { transform: translateX(18px); }
.cptoggle.is-locked { background: var(--color-brand-primary); opacity: .55; cursor: not-allowed; }
.cptoggle.is-locked::after { transform: translateX(18px); }
.cptoggle:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
.cookie-panel__foot { display: flex; align-items: center; gap: 10px; padding: 12px 14px 6px; }
.cookie-panel__save { flex: 1; height: 40px; border-radius: var(--radius-pill); border: 0; background: var(--color-ink); color: #fff; font-family: var(--font-sans); font-size: 13.5px; font-weight: var(--fw-semibold); cursor: pointer; transition: background var(--dur); }
.cookie-panel__save:hover { background: var(--color-ink-elevated); }
.cookie-panel__state { font-size: 12px; font-weight: var(--fw-bold); color: var(--color-text-brand); display: inline-flex; align-items: center; gap: 6px; opacity: 0; transition: opacity var(--motion-duration-standard); }
.cookie-panel__state.is-on { opacity: 1; }
.cookie-panel__state svg { width: 15px; height: 15px; }

@media (max-width: 1080px) {
  .lviz { min-height: 280px; }
  .rflow { max-width: 520px; }
}
@media (max-width: 560px) {
  .lflow { transform: scale(.86); }
  .kmap__search input { height: 52px; }
}

/* reduced-motion: show final states, kill loops */
@media (prefers-reduced-motion: reduce) {
  .xviz [data-step] { opacity: 1 !important; }
  .xviz.is-in [data-step] { animation: none !important; }
  .rflow__h .live .d, .lviz--shield .sh-pulse { animation: none !important; }
  .lviz--shield .sh-link, .lviz--shield .sh-check, .lcard__chk .bx svg { stroke-dashoffset: 0 !important; animation: none !important; }
  .xviz.is-in .rflow__track::after { transition: none; }
}
