/* Systeminformation Solutions – main stylesheet
   Fonts: Bricolage Grotesque (display/UI), Newsreader (text). Both SIL OFL 1.1, self-hosted. */

@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("/assets/fonts/bricolage-grotesque-latin-standard-normal.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;
}
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  src: url("/assets/fonts/bricolage-grotesque-latin-ext-standard-normal.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: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/newsreader-latin-standard-normal.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;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/newsreader-latin-ext-standard-normal.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: "Newsreader";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/newsreader-latin-standard-italic.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;
}
@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/newsreader-latin-ext-standard-italic.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;
}

:root {
  /* Paletta: "Grafit és menta" – meleg grafit alap, menta fő szín, borostyán AI-kiemelés.
     Minden szín itt van; másik palettához csak ezt a blokkot kell cserélni. */
  color-scheme: dark;
  --bg: #151514;           /* oldal alap */
  --bg-alt: #1B1B19;       /* sávos szekciók (szolgáltatások, folyamat) */
  --surface: #22221F;      /* kártyák: űrlap, consent */
  --field: #10100F;        /* űrlapmezők */
  --text: #ECEAE4;
  --text-strong: #FBFAF6;
  --muted: #A3A098;
  --line: #2E2D2A;
  --line-strong: #4A4843;
  --accent: #35D2A2;       /* fő gombok, linkek, "Felhő" réteg */
  --accent-hover: #5BE0B7;
  --on-accent: #062018;
  --ai: #F0B65A;           /* helyi AI kiemelés */
  --ai-text: #F0B65A;      /* AI-szín szövegként az alapon */
  --on-ai: #1F1405;
  --night: #0E0E0D;        /* helyi AI szekció + lábléc */
  --night-text: #ECEAE4;
  --night-muted: #A3A098;
  --night-line: rgba(236, 234, 228, 0.12);
  --layer-net: #282826;
  --layer-server: #3C3B36;
  --edge-net: #080807;
  --edge-server: #1E1E1B;
  --edge-cloud: #1E8A6A;
  --edge-ai: #A3762F;
  --danger: #F08A78;
  --shadow: rgba(0, 0, 0, 0.55);

  --font-display: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-text: "Newsreader", "Iowan Old Style", Georgia, serif;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 10vw, 8rem);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 1.1875rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-stretch: 88%; }
h3 { font-size: 1.375rem; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 0.6rem 1rem; border-radius: var(--radius-s);
  font-family: var(--font-display); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--line); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.18em;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-mark { width: 28px; height: 28px; }
.brand-mark rect:nth-child(1) { fill: var(--muted); }
.brand-mark rect:nth-child(2) { fill: var(--accent); }
.brand-mark rect:nth-child(3) { fill: var(--ai); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em; font-stretch: 90%; }
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  display: inline-block; padding: 0.55rem 0.9rem; border-radius: 999px;
  font-family: var(--font-display); font-size: 0.98rem; font-weight: 500;
  color: var(--text); text-decoration: none;
}
.site-nav a:hover { background: var(--line); color: var(--text); }
.site-nav .nav-cta { background: var(--accent); color: var(--on-accent); margin-left: 0.5rem; padding-inline: 1.2rem; }
.site-nav .nav-cta:hover { background: var(--accent-hover); color: var(--on-accent); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; border-radius: 999px;
    border: 1.5px solid var(--text); background: transparent; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .site-nav a { display: block; padding: 0.8rem 1rem; font-size: 1.1rem; }
  .site-nav .nav-cta { margin: 0.5rem 0 0; text-align: center; }
}

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.08fr 1fr; } }
.hero h1 {
  font-size: clamp(2.75rem, 7.2vw, 5.6rem);
  font-weight: 760;
  font-stretch: 82%;
  letter-spacing: -0.022em;
  line-height: 0.98;
  max-width: 11ch;
}
.lead { margin-top: 1.75rem; font-size: clamp(1.2rem, 1.9vw, 1.4rem); line-height: 1.55; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* The stack: the signature element */
.stack { margin: 0; position: relative; display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; }
.stack-guard {
  border-radius: var(--radius-m);
  background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 9px);
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.stack-guard span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em;
  background: var(--bg); color: var(--accent); padding: 0.9rem 0.25rem; border-radius: 999px;
}
.stack-layers { list-style: none; display: grid; gap: 0.85rem; }
.layer {
  --shift: 0px;
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.25rem 1rem;
  min-height: 5.25rem; padding: 1rem 1.25rem 1.15rem;
  border-radius: var(--radius-m);
  color: var(--text-strong);
  margin-left: var(--shift);
  box-shadow: 0 8px 0 -1px var(--edge, rgba(0,0,0,.25));
}
.layer-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); letter-spacing: -0.015em; font-stretch: 90%; }
.layer-tech { grid-column: 1 / -1; font-family: var(--font-display); font-size: 0.92rem; opacity: 0.86; }
.layer-badge {
  grid-row: 1; grid-column: 2;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 700;
  background: var(--bg); color: var(--ai); padding: 0.2rem 0.65rem; border-radius: 999px;
}
.layer-net    { background: var(--layer-net); --edge: var(--edge-net); --shift: 0px; box-shadow: 0 8px 0 -1px var(--edge), inset 0 0 0 1px var(--line); }
.layer-server { background: var(--layer-server); --edge: var(--edge-server); --shift: 4%; }
.layer-cloud  { background: var(--accent); color: var(--on-accent); --edge: var(--edge-cloud); --shift: 8%; }
.layer-ai     { background: var(--ai); color: var(--on-ai); --edge: var(--edge-ai); --shift: 12%; }
.layer-ai .layer-tech { opacity: 0.8; }

@media (prefers-reduced-motion: no-preference) {
  /* One orchestrated load moment: the stack builds itself bottom-up. */
  .layer { animation: drop-in 0.6s cubic-bezier(.2,.9,.3,1.12) backwards; }
  .layer-net    { animation-delay: 0.1s; }
  .layer-server { animation-delay: 0.25s; }
  .layer-cloud  { animation-delay: 0.4s; }
  .layer-ai     { animation-delay: 0.65s; }
  .stack-guard  { animation: guard-in 0.7s ease 0.9s backwards; }
  @keyframes drop-in { from { opacity: 0; transform: translateY(-32px); } }
  @keyframes guard-in { from { opacity: 0; } }
}

/* Sections */
.section { padding: var(--section-y) 0; }
.section-lead { margin-top: 1.25rem; color: var(--muted); font-size: 1.2rem; max-width: 36rem; }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; }
  .split-head { position: sticky; top: 7rem; align-self: start; }
}

/* Services */
.services { background: var(--bg-alt); border-block: 1px solid var(--line); }
.service-list { display: grid; }
.service {
  display: grid; gap: 0.75rem 2rem;
  padding: 2rem 0; border-top: 1px solid var(--line);
}
.service:first-child { border-top: 0; padding-top: 0; }
.service h3 { display: flex; align-items: center; gap: 0.75rem; }
.service h3::before {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem; border-radius: 5px;
  background: var(--swatch, var(--muted));
}
.service[data-layer="consult"]  { --swatch: var(--text); }
.service[data-layer="cloud"]    { --swatch: var(--accent); }
.service[data-layer="server"]   { --swatch: linear-gradient(var(--muted) 50%, var(--line-strong) 50%); }
.service[data-layer="ai"]       { --swatch: var(--ai); }
.service[data-layer="security"] h3::before {
  background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 5px);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.service p { color: var(--muted); }
.service ul { list-style: none; display: grid; gap: 0.4rem; font-size: 1.05rem; }
.service li { position: relative; padding-left: 1.2rem; }
.service li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 0.5rem; height: 1.5px; background: currentColor; opacity: 0.5; }
@media (min-width: 700px) {
  .service { grid-template-columns: 1fr 1fr; }
  .service h3, .service p { grid-column: 1; }
  .service ul { grid-column: 2; grid-row: 1 / span 3; }
}
.service-ai { position: relative; }
.service-ai .text-link { grid-column: 1; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ai-text); }

/* Local AI (night section) */
.ai { background: var(--night); color: var(--night-text); }
.ai .section-lead, .ai .ai-list dd, .ai .why-ai li { color: var(--night-muted); }
.ai a { color: var(--ai); }
.ai :focus-visible { box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--ai); }
.ai-head { max-width: 46rem; }
.ai-head h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); font-stretch: 82%; letter-spacing: -0.03em; }

.flow { margin: clamp(3rem, 6vw, 4.5rem) 0 0; }
.flow-caption { font-family: var(--font-display); font-size: 0.95rem; color: var(--night-muted); margin-bottom: 0.9rem; }
.flow-boundary {
  position: relative;
  border: 1.5px dashed color-mix(in srgb, var(--ai) 60%, transparent);
  border-radius: var(--radius-l);
  padding: 2.75rem clamp(1rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem);
}
.flow-boundary-label {
  position: absolute; top: -0.85rem; left: 1.5rem;
  background: var(--night); padding: 0 0.6rem;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--ai);
}
.flow-steps { list-style: none; display: grid; gap: 2.25rem; }
.flow-node {
  position: relative;
  display: grid; gap: 0.25rem;
  padding: 1.1rem 1.25rem; border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--night-text) 5%, transparent); border: 1px solid var(--night-line);
}
.flow-node strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--text-strong); }
.flow-node span { font-family: var(--font-display); font-size: 0.92rem; color: var(--night-muted); }
.flow-node-model { background: var(--ai); border-color: var(--ai); }
.flow-node-model strong { color: var(--on-ai); }
.flow-node-model span { color: color-mix(in srgb, var(--on-ai) 78%, transparent); }
.flow-node:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -1.75rem;
  width: 1.5px; height: 1.25rem; background: var(--ai);
}
.flow-node:not(:last-child)::before {
  content: ""; position: absolute; left: calc(50% - 4.5px); bottom: -1.95rem;
  border: 5px solid transparent; border-top-color: var(--ai); border-bottom: 0;
}
@media (min-width: 860px) {
  .flow-steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .flow-node:not(:last-child)::after { left: auto; right: -2rem; top: 50%; bottom: auto; width: 1.5rem; height: 1.5px; }
  .flow-node:not(:last-child)::before { left: auto; right: -2.2rem; top: calc(50% - 4.25px); bottom: auto; border: 5px solid transparent; border-left-color: var(--ai); border-right: 0; }
}
.flow-outside {
  display: flex; align-items: center; gap: 0.75rem; margin-top: 1.25rem;
  font-family: var(--font-display); font-size: 0.95rem; color: var(--night-muted);
}
.flow-cut {
  position: relative; width: 3rem; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--night-muted) 0 6px, transparent 6px 10px);
}
.flow-cut::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%);
  background: linear-gradient(45deg, transparent 45%, var(--danger) 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, var(--danger) 45% 55%, transparent 55%);
}

.ai-grid { display: grid; gap: 3rem; margin-top: clamp(3.5rem, 7vw, 5rem); }
@media (min-width: 960px) { .ai-grid { grid-template-columns: 1.25fr 1fr; gap: 5rem; } }
.ai-col h3 { font-size: 1.6rem; margin-bottom: 1.5rem; color: var(--text-strong); }
.ai-list { margin: 0; display: grid; grid-template-columns: 1fr; }
.ai-list dt { font-family: var(--font-display); font-weight: 700; color: var(--text-strong); padding-top: 1rem; border-top: 1px solid var(--night-line); }
.ai-list dd { margin: 0.3rem 0 1rem; }
@media (min-width: 640px) {
  .ai-list { grid-template-columns: 11rem 1fr; }
  .ai-list dt, .ai-list dd { padding-top: 1rem; border-top: 1px solid var(--night-line); margin: 0; padding-bottom: 1rem; }
}
.why-ai { list-style: none; display: grid; gap: 1.25rem; }
.why-ai li { padding-left: 1.5rem; position: relative; }
.why-ai li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.6rem; height: 0.6rem; border-radius: 3px; background: var(--ai); }
.why-ai strong { display: block; font-family: var(--font-display); color: var(--text-strong); font-size: 1.1rem; }

/* Principles */
.principles { list-style: none; display: grid; gap: 0; margin-top: 3rem; }
@media (min-width: 760px) { .principles { grid-template-columns: 1fr 1fr; column-gap: 4rem; } }
.principles li { padding: 1.75rem 0; border-top: 1.5px solid var(--line-strong); }
.principles h3 { margin-bottom: 0.6rem; }
.principles p { color: var(--muted); max-width: 30rem; }

/* Process */
.process { background: var(--bg-alt); border-block: 1px solid var(--line); }
.steps { list-style: none; counter-reset: step; display: grid; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.steps li { counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 3.25rem; height: 3.25rem; margin-bottom: 1.25rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem;
  background: var(--bg-alt); border: 1.5px solid var(--line-strong); color: var(--text);
  position: relative; z-index: 1;
}
.steps li:last-child::before { background: var(--ai); border-color: var(--ai); color: var(--on-ai); }
@media (min-width: 860px) {
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 1.625rem; left: 3.25rem; right: -2rem; height: 1.5px; background: var(--line);
  }
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--muted); font-size: 1.08rem; }

/* FAQ */
.faq-list { border-top: 1.5px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 1.6rem; height: 1.6rem; margin-top: -0.05rem; border-radius: 999px;
  border: 1.5px solid var(--text);
  background:
    linear-gradient(var(--text), var(--text)) center / 10px 1.5px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 1.5px 10px no-repeat;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after {
  transform: rotate(45deg); background-color: var(--ai); border-color: var(--ai);
  background-image: linear-gradient(var(--on-ai), var(--on-ai)), linear-gradient(var(--on-ai), var(--on-ai));
}
.faq-list details p { padding: 0 2.5rem 1.5rem 0; color: var(--muted); max-width: 40rem; }

/* Contact */
.contact { padding-bottom: calc(var(--section-y) + 2rem); }
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 5rem; } }
.contact-mail { margin-top: 2rem; font-family: var(--font-display); font-size: 1.05rem; }
.contact-form {
  display: grid; gap: 1.25rem 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}
@media (min-width: 640px) { .contact-form { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-family: var(--font-display); font-size: 1rem; color: var(--text);
  background: var(--field); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 0.75rem 0.9rem; min-height: 3rem;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 1.25rem) 55%, calc(100% - 0.9rem) 55%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--accent); background: var(--field); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 12px; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; }
.field-check input { width: 1.25rem; height: 1.25rem; min-height: 0; margin-top: 0.2rem; accent-color: var(--accent); }
.field-check label { font-family: var(--font-text); font-weight: 400; font-size: 1rem; line-height: 1.5; }
.field-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-box:empty { display: none; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { font-family: var(--font-display); font-size: 1rem; }
.form-status.is-ok { color: var(--ai-text); font-weight: 600; }
.form-status.is-error { color: var(--danger); }
.contact-form { position: relative; }

/* Footer */
.site-footer { background: var(--night); border-top: 1px solid var(--night-line); color: var(--night-muted); padding: 3.5rem 0 2.5rem; font-size: 1rem; }
.site-footer a, .site-footer .link-button { color: var(--night-text); }
.site-footer a:hover, .site-footer .link-button:hover { color: var(--ai); }
.site-footer :focus-visible { box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--ai); }
.footer-inner { display: grid; gap: 2rem; }
@media (min-width: 860px) { .footer-inner { grid-template-columns: 1.4fr 1fr; } .footer-copy { grid-column: 1 / -1; } }
.footer-brand .brand-name { color: var(--text-strong); margin-bottom: 0.5rem; display: block; }
.footer-brand p:last-child { max-width: 30rem; }
.footer-nav ul { list-style: none; display: grid; gap: 0.5rem; font-family: var(--font-display); }
.footer-copy { border-top: 1px solid var(--night-line); padding-top: 1.5rem; font-family: var(--font-display); font-size: 0.9rem; }

/* Consent */
.consent {
  position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 34rem;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: 0 24px 60px -20px var(--shadow);
  padding: 1.5rem;
}
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.35rem; font-stretch: 92%; margin-bottom: 0.5rem; }
.consent p { font-size: 1rem; line-height: 1.5; color: var(--muted); }
.consent-options { display: grid; gap: 0.75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.consent-options[hidden] { display: none; }
.consent-row { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 0.98rem; line-height: 1.45; }
.consent-row input { width: 1.2rem; height: 1.2rem; margin-top: 0.15rem; accent-color: var(--accent); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.consent-actions .btn { min-height: 2.75rem; padding: 0.55rem 1.2rem; font-size: 0.95rem; flex: 1 1 auto; }
.consent-actions [hidden] { display: none; }

/* Legal pages */
.legal { padding: clamp(3rem, 7vw, 5rem) 0 var(--section-y); }
.legal-body { max-width: 46rem; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-stretch: 82%; letter-spacing: -0.03em; }
.legal .updated { margin-top: 1rem; color: var(--muted); font-family: var(--font-display); font-size: 0.95rem; }
.legal h2 { font-size: 1.6rem; margin: 3rem 0 1rem; font-stretch: 92%; }
.legal h3 { font-size: 1.2rem; margin: 2rem 0 0.5rem; }
.legal p, .legal ul, .legal ol { margin-bottom: 1rem; }
.legal ul, .legal ol { padding-left: 1.4rem; }
.legal li { margin-bottom: 0.35rem; }
.legal .placeholder { background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--text); padding: 0 0.25rem; border-radius: 4px; }
.table-scroll { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.98rem; font-family: var(--font-display); min-width: 36rem; }
.legal th, .legal td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 700; background: var(--bg); }
.legal tr:last-child td { border-bottom: 0; }

/* Error pages */
.error-page { min-height: 70vh; display: grid; align-content: center; padding: 4rem 0; }
.error-page h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); font-stretch: 80%; letter-spacing: -0.03em; max-width: 14ch; }
.error-page p { margin: 1.25rem 0 2rem; color: var(--muted); max-width: 32rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .site-header, .consent, .contact-form, .hero-actions { display: none !important; }
  body, .ai, .site-footer, .services, .process { background: #fff; color: #000; }
}
