/* =========================================================
   Contimar Consulting — design system (2026 redesign)
   Plain CSS, no build step. Loaded once, shared by every page.
   ========================================================= */

/* Inter (SIL Open Font License), self-hosted so visitors' browsers don't contact Google (GDPR).
   Variable font: one file per character subset covers weights 400–800. latin-ext carries ă ș ț. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* ---- color: ink & surfaces ---- */
  --ink: #16212b;
  --ink-soft: #4c5b68;
  --ink-faint: #7d8b98;
  --bg: #ffffff;
  --surface: #f6f8fa;
  --surface-2: #eef2f6;
  --border: #dfe6ec;
  --border-soft: #eaeff3;

  /* ---- color: brand (Contimar blue + gold, aligned with WinMENTOR brand marks) ---- */
  --primary-800: #0e2f52;
  --primary-700: #123a66;
  --primary-600: #1b4f8c;
  --primary-500: #2568ac;
  --primary-400: #4f8bc9;
  --primary-100: #e7f0fa;
  --accent-700: #a86600;
  --accent-600: #c97f00;
  --accent-500: #e6a100;
  --accent-400: #f4b91f;
  --accent-100: #fdf1dc;
  --green-600: #5b8c2a;
  --green-100: #edf5e2;
  --red-600: #b3361c;
  --red-100: #fbe9e5;

  /* ---- radii / shadow / motion ---- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(16, 30, 45, 0.06), 0 1px 1px rgba(16, 30, 45, 0.04);
  --shadow-md: 0 8px 24px rgba(16, 30, 45, 0.09), 0 2px 6px rgba(16, 30, 45, 0.06);
  --shadow-lg: 0 20px 48px rgba(16, 30, 45, 0.14), 0 6px 16px rgba(16, 30, 45, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  /* ---- layout ---- */
  --container: 1180px;
  --header-h: 108px;

  /* ---- type ---- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef3f8;
    --ink-soft: #b9c6d2;
    --ink-faint: #8695a3;
    --bg: #0e161e;
    --surface: #131e29;
    --surface-2: #182430;
    --border: #253444;
    --border-soft: #1d2b38;
    --primary-100: #16263a;
    --accent-100: #2c2210;
    --green-100: #1a2717;
    --red-100: #2c1a16;
  }
}
:root[data-theme="dark"] {
  --ink: #eef3f8;
  --ink-soft: #b9c6d2;
  --ink-faint: #8695a3;
  --bg: #0e161e;
  --surface: #131e29;
  --surface-2: #182430;
  --border: #253444;
  --border-soft: #1d2b38;
  --primary-100: #16263a;
  --accent-100: #2c2210;
  --green-100: #1a2717;
  --red-100: #2c1a16;
}

/* ---------------------------------------------------------
   Reset & base
   --------------------------------------------------------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2.35rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-soft); }
li { margin-bottom: 0.4em; }
strong { color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary-500); outline-offset: 2px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px) { .container { padding-inline: 32px; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--primary-700); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------
   Eyebrow / section scaffolding
   --------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent-500); border-radius: 2px; }
.eyebrow.on-dark { color: var(--accent-400); }

section { padding-block: clamp(48px, 6vw, 96px); }
.section-tight { padding-block: clamp(32px, 4vw, 56px); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; }

.bg-surface { background: var(--surface); }
.bg-primary { background: linear-gradient(155deg, var(--primary-700), var(--primary-600) 55%, var(--primary-500)); color: #fff; }
.bg-primary p, .bg-primary li { color: rgba(255,255,255,0.86); }
.bg-primary h2, .bg-primary h3 { color: #fff; }
.bg-ink { background: var(--ink); color: #fff; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 0.97rem; line-height: 1;
  padding: 14px 24px; border-radius: var(--radius-pill); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background 0.15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent-500); color: #21160a; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-400); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-dark { background: var(--primary-600); color: #fff; }
.btn-dark:hover { background: var(--primary-500); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--primary-500); color: var(--primary-600); }
.btn-ghost-light { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; white-space: normal; text-align: center; line-height: 1.3; }

/* ---------------------------------------------------------
   Header / nav
   --------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .2s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,0.88); backdrop-filter: saturate(160%) blur(10px);
}
:root[data-theme="dark"] .site-header, @media (prefers-color-scheme: dark) { }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-logo { height: 84px; width: auto; border-radius: 6px; flex: none; transition: height .2s var(--ease); }
.site-header.is-scrolled .brand-logo { height: 54px; }
@media (max-width: 460px) { .brand-logo { height: 58px; } }
.brand-word { font-weight: 800; font-size: 1.28rem; letter-spacing: -0.01em; color: var(--ink); }
.brand-word span { color: var(--accent-600); }
.brand-sub { display: none; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.05em; color: var(--ink-faint); }
@media (min-width: 460px) { .brand-sub { display: block; max-width: 92px; line-height: 1.25; } }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; font-size: 0.94rem;
  color: var(--ink-soft); transition: background .15s var(--ease), color .15s var(--ease);
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.is-active { background: var(--primary-100); color: var(--primary-700); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* 1100px (not 1024px): below this the full menu ("WMEnterprise" included) no longer fits next to the logo */
@media (max-width: 1100px) {
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); flex-direction: column;
    align-items: stretch; gap: 2px; padding: 18px 20px 28px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }
  .nav a { height: 50px; padding: 0 16px; font-size: 1.02rem; }
  body.nav-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-dark.header-cta-desktop { display: none; }
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 620px at 82% -10%, rgba(37,104,172,0.55), transparent 60%),
              linear-gradient(160deg, var(--primary-800), var(--primary-700) 48%, var(--primary-600));
  color: #fff; padding-block: clamp(56px, 8vw, 108px);
}
.hero-grid { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { color: #fff; }
.hero-highlight-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 22px; }
.hero-highlight-pill {
  display: inline-flex; align-items: center; gap: 7px; background: rgba(244,185,31,0.14);
  border: 1px solid rgba(244,185,31,0.4); color: var(--accent-400); font-weight: 700; font-size: 0.82rem;
  padding: 8px 14px; border-radius: var(--radius-pill);
}
.hero-highlight-pill svg { width: 15px; height: 15px; flex: none; }
.hero-lede { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-products { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-product-chip {
  display: inline-flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--radius-md);
  padding: 10px 16px; text-decoration: none; box-shadow: var(--shadow-md); transition: transform .15s var(--ease);
}
.hero-product-chip:hover { transform: translateY(-2px); }
.hero-product-chip img { height: 22px; width: auto; flex: none; }
.hero-product-chip span { display: flex; flex-direction: column; line-height: 1.25; }
.hero-product-chip strong { font-size: 0.82rem; color: var(--ink); }
.hero-product-chip small { font-size: 0.72rem; font-weight: 600; color: var(--ink-faint); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.hero-stats div { min-width: 108px; }
.hero-stat-num { font-size: 1.55rem; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.7); }

/* abstract product-mockup visual (no stock photo in hero, per brief) */
.hero-visual { position: relative; }
.hv-card {
  position: relative; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg); padding: 22px; backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.hv-dash-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.hv-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.hv-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 92px; margin-bottom: 18px; }
.hv-bars span { display: block; background: linear-gradient(180deg, var(--accent-400), var(--accent-600)); border-radius: 6px 6px 2px 2px; }
.hv-rows { display: grid; gap: 8px; }
.hv-row { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 9px 12px; }
.hv-row .hv-chip { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-400); flex: none; display: flex; align-items: center; justify-content: center; }
.hv-row .hv-chip svg { width: 15px; height: 15px; color: #fff; }
.hv-row small { color: rgba(255,255,255,0.6); font-size: 0.72rem; }
.hv-row strong { color: #fff; font-size: 0.86rem; display: block; }
.hv-float {
  position: absolute; background: #fff; color: var(--ink); border-radius: var(--radius-md);
  padding: 12px 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
}
.hv-float.a { top: -22px; right: -14px; }
.hv-float.b { bottom: -20px; left: -22px; }
.hv-float svg { width: 20px; height: 20px; color: var(--green-600); flex: none; }
.hv-float strong { display: block; font-size: 0.86rem; }
.hv-float small { color: var(--ink-faint); font-size: 0.72rem; }
.hv-techrow { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.hv-tech { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); color: #fff; font-size: 0.76rem; font-weight: 600; padding: 6px 11px; border-radius: var(--radius-pill); }
@media (max-width: 640px) { .hv-float { display: none; } }

/* page header (non-home hero, smaller) */
.page-hero {
  background: linear-gradient(160deg, var(--primary-800), var(--primary-600));
  color: #fff; padding-block: clamp(44px, 6vw, 76px);
}
.page-hero h1 { color: #fff; }
.page-hero .hero-lede { color: rgba(255,255,255,0.82); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.85); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: rgba(255,255,255,0.4); }

/* ---------------------------------------------------------
   Cards / grids
   --------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
a.card { text-decoration: none; display: block; color: inherit; }
a.card:hover, .card.is-hoverable:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--primary-100); }
.card-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--primary-100); color: var(--primary-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; flex: none;
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon.accent { background: var(--accent-100); color: var(--accent-700); }
.card h3 { margin-bottom: 8px; font-size: 1.12rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary-600); font-size: 0.9rem; margin-top: 12px; }
.card-link svg { width: 15px; height: 15px; transition: transform .15s var(--ease); }
a.card:hover .card-link svg { transform: translateX(3px); }

.module-card { display: flex; flex-direction: column; height: 100%; }
.module-card .badge { align-self: flex-start; margin-bottom: 12px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--ink-soft);
}
.badge.blue { background: var(--primary-100); color: var(--primary-700); }
.badge.gold { background: var(--accent-100); color: var(--accent-700); }
.badge.green { background: var(--green-100); color: var(--green-600); }

/* feature checklist */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; margin: 0; color: var(--ink-soft); }
.check-list li svg { width: 19px; height: 19px; color: var(--green-600); flex: none; margin-top: 2px; }
.check-list.on-dark li { color: rgba(255,255,255,0.85); }
.check-list.on-dark li svg { color: var(--accent-400); }

/* stat strip */
.stat-strip { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); text-align: left; }
.stat-strip .num { font-size: clamp(1.7rem, 1.4rem + .8vw, 2.3rem); font-weight: 800; color: var(--primary-700); line-height: 1; }
.stat-strip .label { color: var(--ink-faint); font-size: 0.88rem; margin-top: 6px; }

/* ---------------------------------------------------------
   Photo blocks
   --------------------------------------------------------- */
.photo-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); position: relative; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.split { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split.reverse { direction: rtl; } .split.reverse > * { direction: ltr; } }

/* ---------------------------------------------------------
   Pricing / comparison tables
   --------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
table.price-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.92rem; }
table.price-table th, table.price-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border-soft); white-space: nowrap; }
table.price-table thead th { background: var(--surface); color: var(--ink-soft); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.price-table tbody tr:last-child td { border-bottom: none; }
table.price-table tbody tr:hover { background: var(--surface); }
table.price-table td.num, table.price-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.price-table td.variant { font-weight: 700; color: var(--ink); }

.compare-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-col { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; background: var(--bg); }
.compare-col.is-featured { border-color: var(--accent-500); box-shadow: var(--shadow-md); position: relative; }
.compare-col .price { font-size: 1.9rem; font-weight: 800; color: var(--ink); margin: 6px 0 4px; }
.compare-col .price small { font-size: 0.9rem; font-weight: 600; color: var(--ink-faint); }

/* ---------------------------------------------------------
   Sidebar / offer callouts
   --------------------------------------------------------- */
.layout-with-aside { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
/* grid items default to min-width:auto, so wide content (tables, images) would push the column past the phone screen */
.layout-with-aside > * { min-width: 0; }
@media (min-width: 960px) { .layout-with-aside { grid-template-columns: 1fr 320px; } }
.aside-stack { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 20px); }

.offer-box {
  background: linear-gradient(160deg, var(--primary-700), var(--primary-600));
  color: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md);
}
.offer-box .badge { background: rgba(255,255,255,0.14); color: #fff; margin-bottom: 12px; }
.offer-box .price { font-size: 2.1rem; font-weight: 800; margin: 6px 0 2px; }
.offer-box .price small { font-size: 0.95rem; font-weight: 600; opacity: 0.75; }
.offer-box p { color: rgba(255,255,255,0.82); font-size: 0.92rem; }
.offer-box .btn { margin-top: 14px; }

.info-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; background: var(--surface); }
.info-box h4 { margin-bottom: 8px; }
.info-box p:last-child { margin-bottom: 0; }

.notice {
  display: flex; gap: 12px; border-radius: var(--radius-md); padding: 16px 18px; border: 1px solid;
  font-size: 0.92rem;
}
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice p { margin: 0; color: inherit; }
.notice.info { background: var(--primary-100); border-color: rgba(27,79,140,0.18); color: var(--primary-800); }
.notice.warn { background: var(--accent-100); border-color: rgba(201,127,0,0.25); color: var(--accent-700); }

/* ---------------------------------------------------------
   Module submenu (replaces old sidebar list of 11 module links)
   --------------------------------------------------------- */
.module-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.module-nav a {
  font-size: 0.86rem; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); text-decoration: none; color: var(--ink-soft); background: var(--bg);
}
.module-nav a:hover { border-color: var(--primary-400); color: var(--primary-600); }
.module-nav a.is-active { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.module-nav .tag {
  font-size: 0.86rem; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); color: var(--ink-soft); background: var(--bg);
}

/* ---------------------------------------------------------
   CTA banner
   --------------------------------------------------------- */
.cta-banner {
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600) 60%, var(--primary-500));
  color: #fff; display: grid; gap: 26px; align-items: center; grid-template-columns: 1fr; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.82); margin: 0 auto; max-width: 56ch; }
.cta-banner .hero-actions { justify-content: center; margin-top: 22px; }

/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field .hint { font-size: 0.78rem; color: var(--ink-faint); }
.field input, .field select, .field textarea {
  font: inherit; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary-500); }
.field-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row.two { grid-template-columns: 1fr 1fr; } }
.form-status { display: none; margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.form-status.is-ok { display: block; background: var(--green-100); color: var(--green-600); }
.form-status.is-err { display: block; background: var(--red-100); color: var(--red-600); }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding-block: 56px 26px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.3fr repeat(3, 1fr); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-word, .footer-brand .brand-sub { color: #fff; }
.footer-brand .brand-logo { height: 54px; }
.footer-brand .brand-sub { color: rgba(255,255,255,0.55); }
.site-footer p { color: rgba(255,255,255,0.6); font-size: 0.92rem; }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.68); text-decoration: none; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-legal {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 0.8rem; color: rgba(255,255,255,0.45);
}
.footer-legal a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-legal a:hover { color: #fff; }

/* ---------------------------------------------------------
   Cookie consent banner (created by main.js) & legal page
   --------------------------------------------------------- */
.cookie-banner {
  position: fixed; z-index: 150; left: 16px; right: 16px; bottom: 16px;
  max-width: 560px; margin-inline: auto; display: grid; gap: 14px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 18px 20px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.9rem; }
.cookie-banner a { color: var(--primary-500); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn { min-width: 110px; }
.form-note { margin: 12px 0 0; font-size: 0.8rem; color: var(--ink-faint); }
.form-note a { color: var(--primary-500); }
.legal-prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose a { color: var(--primary-500); }
.legal-prose .table-wrap { margin: 0 0 1.2em; }
.legal-prose table.price-table { min-width: 0; }
.legal-prose table.price-table th, .legal-prose table.price-table td { white-space: normal; overflow-wrap: anywhere; padding: 11px 12px; }

/* ---------------------------------------------------------
   Misc utilities
   --------------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.max-prose { max-width: 68ch; }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.lazy-fade { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.lazy-fade.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lazy-fade { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
