/* Le Grand Marché du Sol — design language inspired by spott.io */

:root {
  --bg: #fcfcfa;
  --bg-soft: #f5f4f1;
  --surface: #ffffff;
  --ink: #191919;
  --ink-2: #0c1c2d;
  --muted: #747474;
  --line: #e7e7e2;
  --line-strong: #d9d9d3;
  --accent: #f0610f;
  --accent-2: #fe6e14;
  --accent-soft: #ffe5d4;
  --ok: #29704b;
  --err: #b31942;
  --on-ink: #ffffff;
  --ink-hover: #000000;
  --text-2: #4a4a4a;
  --text-3: #3d3d3d;
  --placeholder: #a9a9a5;
  --fill: #ececE8;
  --fill-2: #dcdcd6;
  --header-bg: rgba(252, 252, 250, .82);
  --focus-ring: rgba(25, 25, 25, .07);
  --ok-bg: #eaf4ee;
  --ok-line: #cfe4d7;
  --err-bg: #fbe9ee;
  --cta-bg: #191919;
  color-scheme: light;

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(25, 25, 25, .04), 0 8px 24px rgba(25, 25, 25, .06);
  --shadow-lg: 0 2px 4px rgba(25, 25, 25, .04), 0 24px 60px rgba(25, 25, 25, .10);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── Announcement bar ─────────────────────────────── */
.announce {
  background: linear-gradient(90deg, #c2410c 0%, var(--accent) 45%, #f59e5b 100%);
  color: #fff;
  font-size: 13.5px;
  text-align: center;
  padding: 9px 16px;
}
.announce a { font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.announce a:hover { text-decoration-thickness: 2px; }

/* ── Header ───────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--ink);
  transition: background .15s ease;
}
.nav-links a:hover { background: var(--bg-soft); }
.nav-links a[aria-current="page"] { background: var(--bg-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface);
}
.lang a {
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; text-decoration: none;
  padding: 4px 10px; border-radius: 999px; color: var(--muted);
}
.lang a[aria-current="true"] { background: var(--ink); color: var(--on-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: var(--on-ink); box-shadow: 0 1px 2px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-dark:hover { background: var(--ink-hover); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--line-strong); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

.menu-toggle {
  display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; content: "";
}
.menu-toggle span::before { position: absolute; top: -5px; }
.menu-toggle span::after { position: absolute; top: 5px; }

.mobile-menu { display: none; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 12px 24px 20px; }
.mobile-menu li a {
  display: block; padding: 12px 0; text-decoration: none; font-size: 17px; font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 16px; width: 100%; }

/* ── Type ─────────────────────────────────────────── */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(42px, 6.4vw, 76px); line-height: 1.04; margin: 0; }
h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.08; margin: 0; }
h3 { font-size: 26px; line-height: 1.15; margin: 0; }
.eyebrow {
  font-family: var(--font-text); font-size: 12.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.lead { font-size: 18.5px; color: var(--text-2); line-height: 1.6; }
.muted { color: var(--muted); }

/* ── Hero ─────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 84px 0 0; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: auto -10% -10% -10%; height: 70%;
  background:
    radial-gradient(60% 60% at 50% 100%, rgba(240, 97, 15, .20) 0%, rgba(240, 97, 15, 0) 70%),
    radial-gradient(40% 50% at 20% 90%, rgba(255, 211, 168, .45) 0%, rgba(255, 211, 168, 0) 70%),
    radial-gradient(40% 50% at 80% 90%, rgba(255, 217, 190, .45) 0%, rgba(255, 217, 190, 0) 70%);
  pointer-events: none; z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; color: var(--muted); box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.pill a { color: var(--ink); font-weight: 600; text-underline-offset: 2px; }
.pill a:hover { color: var(--accent); }
.pill b {
  font-weight: 600; color: var(--on-ink); background: var(--ink); border-radius: 999px; padding: 2px 8px; font-size: 11.5px; letter-spacing: .02em;
}
.hero h1 { margin: 22px auto 0; max-width: 13ch; text-wrap: balance; }
.hero .lead { max-width: 560px; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-media {
  margin: 64px auto 0; max-width: 1100px; padding: 0 24px;
}
.hero-frame {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden;
  border: 1px solid var(--line); border-bottom: 0; background: var(--surface);
  padding: 10px 10px 0; box-shadow: var(--shadow-lg);
}
.hero-frame img { border-radius: 14px 14px 0 0; aspect-ratio: 16 / 7.5; object-fit: cover; width: 100%; }

/* Page hero (sub pages) */
.page-hero { position: relative; overflow: hidden; padding: 80px 0 56px; text-align: center; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: ""; position: absolute; left: 50%; bottom: -60%; width: 900px; height: 500px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(240, 97, 15, .14) 0%, rgba(240, 97, 15, 0) 70%);
  pointer-events: none;
}
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin-top: 14px; }
.page-hero .lead { max-width: 680px; margin: 18px auto 0; }

/* ── Sections ─────────────────────────────────────── */
.section { padding: 104px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 52px; }
.section-head p { margin: 0; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.section-head.center p { max-width: 620px; }

/* Trust strip */
.trust { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 24px 64px; flex-wrap: wrap; }
.trust-row span {
  font-size: 13.5px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 8px;
}
.trust-row span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Product cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
a.card { text-decoration: none; display: block; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.card-media { aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 22px 22px 24px; }
.card-body h3 { font-size: 23px; }
.card-body p { margin: 10px 0 0; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.card-tag {
  display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}

/* Feature tiles */
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
  display: flex; flex-direction: column; min-height: 100%;
}
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 22px;
}
.feature h3 { font-size: 26px; }
.feature p { color: var(--muted); font-size: 15px; margin: 12px 0 22px; }
.feature .link { margin-top: auto; }
.link {
  font-size: 14.5px; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink);
}
.link:hover { color: var(--accent); }

/* Split block */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.split-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); padding: 8px; }
.split-media img { border-radius: 16px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 { margin-top: 12px; }
.split .lead { margin: 18px 0 28px; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.checks li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23f0610f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* Dark CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--cta-bg); color: #fff;
  padding: 72px 48px; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; left: 50%; bottom: -70%; width: 1000px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(240, 97, 15, .55) 0%, rgba(240, 97, 15, 0) 70%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 18ch; margin: 0 auto; }
.cta-band p { color: rgba(255,255,255,.72); max-width: 540px; margin: 18px auto 30px; font-size: 17px; }
.cta-band .btn-light { border-color: transparent; }

/* ── Document finder ──────────────────────────────── */
.finder { scroll-margin-top: 104px; }
.finder {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg);
  padding: 10px; max-width: 760px; margin: 0 auto;
}
.finder-inner { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--surface); }
.finder label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.finder-row { display: flex; gap: 10px; }
.finder-input {
  flex: 1; min-width: 0; height: 54px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  padding: 0 18px; font-size: 18px; letter-spacing: .06em; font-variant-numeric: tabular-nums;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.finder-input::placeholder { letter-spacing: 0; color: var(--placeholder); font-size: 16px; }
.finder-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus-ring); }
.finder .btn { height: 54px; padding: 0 24px; border-radius: 12px; font-size: 15.5px; }
.finder-hint { font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.finder-hint button {
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
  color: var(--ink); font-size: 13.5px;
}

.result { margin-top: 18px; display: none; }
.result.show { display: block; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 22px 4px 18px; border-top: 1px solid var(--line); }
.result-head h3 { font-size: 24px; line-height: 1.25; }
.result-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-2);
}
.chip.ok { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.docs { display: grid; gap: 10px; }
.doc {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
a.doc:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-1px); }
.doc-icon {
  flex-shrink: 0; width: 44px; height: 52px; border-radius: 8px; position: relative;
  background: var(--accent-soft); color: var(--accent); display: grid; place-items: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
}
.doc-text { flex: 1; min-width: 0; }
.doc-text strong { display: block; font-size: 15.5px; font-weight: 600; }
.doc-text span { display: block; font-size: 13.5px; color: var(--muted); }
.doc-action { font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.doc.unavailable { background: var(--bg-soft); }
.doc.unavailable .doc-icon { background: var(--fill); color: var(--muted); }
.doc.unavailable .doc-action { color: var(--muted); }

.notfound {
  border-top: 1px solid var(--line); padding: 22px 4px 4px; display: flex; gap: 14px; align-items: flex-start;
}
.notfound .badge {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--err-bg); color: var(--err);
  display: grid; place-items: center; font-weight: 700;
}
.notfound p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.notfound strong { font-size: 16px; }

/* Where-to-find guide */
.guide { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; counter-increment: s; }
.steps li::before {
  content: counter(s); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center; font-weight: 600; font-size: 14px; background: var(--surface);
}
.steps strong { display: block; font-size: 16px; margin-top: 6px; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

/* Mock product page */
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--fill-2); display: block; }
.mock-url {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px;
  font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-url mark { background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.mock-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; padding: 22px; }
.mock-img { border-radius: 12px; aspect-ratio: 1; background: #e9e2d6 center / cover no-repeat; }
.mock-line { height: 10px; border-radius: 6px; background: var(--fill); margin-bottom: 9px; }
.mock-title { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0 0 10px; font-family: var(--font-text); letter-spacing: 0; }
.mock-ref {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); position: relative;
  padding: 4px 8px; border-radius: 6px; outline: 2px solid var(--accent); outline-offset: 2px; background: var(--accent-soft);
}
.mock-ref b { font-weight: 700; color: var(--ink); letter-spacing: .03em; }
.mock-price { font-size: 22px; font-weight: 700; margin: 16px 0 12px; }
.mock-btn { height: 34px; border-radius: 8px; background: var(--fill-2); }
.mock-callout {
  display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--accent);
}

/* Download lists (installation / maintenance pages) */
.dl-list { display: grid; gap: 10px; }
.dl-group + .dl-group { margin-top: 48px; }
.dl-group h3 { font-size: 28px; margin-bottom: 18px; }

.sticky-aside { position: sticky; top: 96px; }

/* Legal pages */
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 auto 48px; max-width: 760px; }
.legal-nav a { text-decoration: none; }
.legal-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.legal { max-width: 760px; margin: 0 auto; }
.legal-updated { font-size: 13.5px; color: var(--muted); margin: 0 0 8px; }
.legal h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 24px; }
.legal p, .legal li { color: var(--text-3); font-size: 16.5px; line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--ink); text-underline-offset: 2px; }
.legal a:hover { color: var(--accent); }
.legal strong { color: var(--ink); font-weight: 600; }

/* Prose blocks */
.prose { max-width: 720px; }
.prose p { color: var(--text-3); font-size: 17px; margin: 0 0 18px; }
.value {
  padding: 32px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 240px 1fr; gap: 32px;
}
.value h3 { font-size: 30px; }
.values { max-width: 880px; margin: 0 auto; }
.value-head { display: flex; flex-direction: column; gap: 14px; }
.value-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.value p { margin: 0; color: var(--text-3); font-size: 16.5px; }

.cert {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line);
}
.cert:first-child { border-top: 0; padding-top: 0; }
.cert-media { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); padding: 28px; }
.cert-media img { width: 100%; height: auto; object-fit: contain; aspect-ratio: 16 / 10; }
.cert h2 { font-size: clamp(30px, 3.4vw, 42px); }
.cert h4 { font-family: var(--font-text); font-size: 15px; font-weight: 600; margin: 12px 0 14px; color: var(--accent); }
.cert p { color: var(--text-3); margin: 0 0 14px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.pillars div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
.pillars strong { display: block; font-size: 14px; }
.pillars span { font-size: 13px; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 28px; }
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card dd { margin: 4px 0 0; font-size: 15.5px; }
.form { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); padding: 11px 14px; font-size: 15px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus-ring); }
.form .btn { margin-top: 20px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 14.5px; border-radius: 10px; }
.form-status:empty { display: none; }
.form-status.pending { color: var(--muted); }
.form-status.success { padding: 12px 14px; background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); }
.form-status.error { padding: 12px 14px; background: var(--err-bg); color: var(--err); }
.form-status a { color: inherit; font-weight: 600; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ── Footer ───────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 36px; margin-top: 0; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h5 { font-size: 13px; font-weight: 600; margin: 0 0 14px; color: var(--ink); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { font-size: 14.5px; color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); }
.foot-brand img { height: 50px; width: auto; margin-bottom: 18px; }
.foot-brand p { font-size: 14px; color: var(--muted); margin: 0; max-width: 300px; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.foot-word { margin: 56px 0 0; user-select: none; }
.foot-word img { width: 100%; height: auto; }


/* ── Night mode ───────────────────────────────────── */
:root[data-theme="dark"] {
  --bg: #121211;
  --bg-soft: #1a1a18;
  --surface: #1f1f1d;
  --ink: #f2f0eb;
  --on-ink: #141413;
  --ink-hover: #ffffff;
  --muted: #9d9a92;
  --text-2: #c9c6bf;
  --text-3: #d6d3cc;
  --line: #2e2d2a;
  --line-strong: #3d3c38;
  --placeholder: #6f6d68;
  --fill: #2b2a27;
  --fill-2: #363531;
  --header-bg: rgba(18, 18, 17, .82);
  --focus-ring: rgba(242, 240, 235, .12);
  --accent-soft: #3b2415;
  --ok: #6cc596;
  --ok-bg: #15271d;
  --ok-line: #24412f;
  --err: #ef7a95;
  --err-bg: #2e1a20;
  --cta-bg: #24231f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
:root[data-theme="dark"] .brand img,
:root[data-theme="dark"] .foot-brand img,
:root[data-theme="dark"] .foot-word img { filter: invert(1); }
:root[data-theme="dark"] .cta-band { border: 1px solid var(--line); }
:root[data-theme="dark"] .hero::before { opacity: .55; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--line-strong); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ── 10% tip: banner + pop-up ── */
.tip-banner { background: var(--accent-soft); border-bottom: 1px solid var(--line); color: var(--ink); }
.tip-banner .wrap { display: flex; align-items: center; gap: 12px; padding-top: 11px; padding-bottom: 11px; }
.tip-banner p { margin: 0; flex: 1; font-size: 14px; line-height: 1.45; }
.tip-ico { color: var(--accent); display: inline-flex; flex-shrink: 0; }
.tip-more { flex-shrink: 0; background: none; border: 1px solid currentColor; color: var(--accent); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tip-more:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.tip-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.tip-modal[hidden] { display: none; }
.tip-backdrop { position: absolute; inset: 0; background: rgba(12, 12, 11, .55); backdrop-filter: blur(3px); animation: tipfade .2s ease; }
.tip-dialog { position: relative; width: 100%; max-width: 460px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; padding: 34px 30px 28px; box-shadow: var(--shadow-lg); animation: tiprise .25s ease; text-align: center; }
.tip-dialog h2 { font-size: 30px; margin: 14px 0 12px; }
.tip-dialog p { color: var(--text-2); font-size: 15.5px; margin: 0 0 12px; }
.tip-dialog .tip-example { display: inline-block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14.5px; color: var(--ink); margin-bottom: 22px; }
.tip-dialog .btn { width: 100%; }
.tip-badge { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 18px; }
.tip-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.tip-x:hover { color: var(--ink); border-color: var(--line-strong); }
@keyframes tipfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tiprise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .tip-banner p { font-size: 13px; }
  .tip-dialog { padding: 30px 20px 22px; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1060px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-actions .btn-dark { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .section { padding: 76px 0; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split, .guide, .cert, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .value { grid-template-columns: 1fr; gap: 10px; }
  .sticky-aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 60px; }
  .hero-frame img { aspect-ratio: 4 / 3; }
  .cta-band { padding: 56px 24px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero-media { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .finder-inner { padding: 18px; }
  .finder-row { flex-direction: column; }
  .finder .btn { width: 100%; }
  .form { padding: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-img { aspect-ratio: 16 / 9; }
  .foot-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .doc { padding: 14px; gap: 12px; }
  .doc-action .label { display: none; }
  .doc-icon { width: 36px; height: 44px; font-size: 9.5px; }
  .doc.unavailable .doc-action { display: none; }
  .brand img { height: 36px; }
  .nav { gap: 8px; }
  .nav-actions { gap: 6px; }
  .theme-toggle, .menu-toggle { width: 36px; height: 36px; }
  .lang a { padding: 4px 8px; }
  .pill { max-width: 100%; border-radius: 16px; }
  .pill b { white-space: nowrap; }
  .announce { font-size: 12.5px; }
}
