/* ==========================================================================
   raczcsaba.hu — "mérnöki jegyzetfüzet" design rendszer
   Papírfehér háttér, tintakék accent, sárga kiemelő, mono feliratok.
   ========================================================================== */
@font-face{font-family:"Inter";font-style:normal;font-weight:400 600;font-display:swap;src:url(./assets/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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:400 600;font-display:swap;src:url(./assets/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}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400 500;font-display:swap;src:url(./assets/fonts/jetbrains-mono-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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400 500;font-display:swap;src:url(./assets/fonts/jetbrains-mono-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}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:500 700;font-display:swap;src:url(./assets/fonts/space-grotesk-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-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Space Grotesk";font-style:normal;font-weight:500 700;font-display:swap;src:url(./assets/fonts/space-grotesk-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-scheme: light;
  --paper: #f8f6f1;
  --paper-2: #f0ede5;
  --white: #fffdf9;
  --ink: #15181d;
  --ink-2: #4b5159;
  --ink-3: #666c75;
  --rule: #d9d4c9;
  --rule-2: #c4beb0;
  --blue: #2457f5;
  --blue-deep: #1a41bd;
  --blue-tint: #e6ecff;
  --blue-tint-2: #cfdaff;
  --marker: #ffe66d;
  --green: #1f8f5c;

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1160px;
  --narrow: 760px;
  --r: 10px;
  --r-lg: 18px;
  --shadow: 0 1px 0 rgba(21, 24, 29, 0.04), 0 18px 40px -18px rgba(21, 24, 29, 0.18);
  --grid: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "cv11", "ss01";
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
::selection { background: var(--marker); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.2rem + 4.2vw, 4.35rem); }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.7rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.012em; line-height: 1.22; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.lead strong { color: var(--ink); font-weight: 600; }

/* --- kiemelő filc --------------------------------------------------------- */
.mark {
  background-image: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%);
  background-size: 100% 100%;
  padding: 0 0.08em;
  margin: 0 -0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* --- mono feliratok -------------------------------------------------------- */
.label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--blue);
}
.label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}
.label[data-n]::before { content: attr(data-n); width: auto; height: auto; background: none; }

/* --- layout ---------------------------------------------------------------- */
.wrap { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, var(--narrow)); margin-inline: auto; }
.section { padding: clamp(64px, 6vw + 24px, 112px) 0; position: relative; }
.section-tight { padding-top: clamp(40px, 4vw, 64px); padding-bottom: clamp(40px, 4vw, 64px); }
.section-paper { background: var(--paper-2); }
.section-rule { border-top: 1px solid var(--rule); }
/* Kék tervrajz-szekció: fentről lefelé világosodó kék (a logó kékjéből), fehér négyzetrács */
.section-blue {
  background-color: var(--blue-deep);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, #14358f 0%, var(--blue-deep) 45%, #2150e0 100%);
  background-size: var(--grid) var(--grid), var(--grid) var(--grid), 100% 100%;
  background-position: center top;
  color: #fff;
}
.section-blue .label { color: var(--marker); }
.section-blue .section-head p { color: rgba(255, 255, 255, 0.86); }
.section-blue .process li { border-top-color: rgba(255, 255, 255, 0.22); }
.section-blue .process li::before { background: var(--marker); }
.section-blue .process .num { -webkit-text-stroke-color: #fff; }
.section-blue .process p { color: rgba(255, 255, 255, 0.86); }
.section-blue .process .time { color: rgba(255, 255, 255, 0.8); }
.section-blue .muted { color: rgba(255, 255, 255, 0.86); }
.section-blue .promise li { border-color: rgba(255, 255, 255, 0.22); }
.section-blue .promise .ico { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.28); color: var(--marker); }
.section-blue .promise p { color: rgba(255, 255, 255, 0.86); }
.section-blue .promise p a, .section-blue p.muted a { color: var(--marker); }
.section-head { max-width: 52rem; margin-bottom: clamp(32px, 4vw, 56px); display: grid; gap: 16px; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; max-width: 58ch; }

/* --- rácspapír háttér ------------------------------------------------------- */
.grid-bg {
  position: relative;
  isolation: isolate;
}
.grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(36, 87, 245, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 87, 245, 0.075) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 100%);
}

/* --- skip + topbar ----------------------------------------------------------- */
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 0 0 8px 8px; font-weight: 600;
}
.skip-link:focus { top: 0; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 241, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  width: min(100% - 40px, var(--container)); margin-inline: auto;
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; color: var(--ink-2); font-size: 0.97rem; position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.nav a:hover, .nav a.active { color: var(--ink); }
/* Külön oldalra vivő menüpont: sárga kiemelővel jelölve */
.nav a.nav-ai { color: var(--ink); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a.btn { margin-left: 6px; padding: 0 20px; color: #fff; }
.nav a.btn:hover { color: #fff; }
.nav .btn::after { display: none; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--rule); background: var(--white);
  border-radius: var(--r); cursor: pointer; flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- gombok ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: var(--r);
  font-weight: 600; font-size: 1rem; line-height: 1;
  border: 1.5px solid var(--ink); background: var(--ink); color: #fff;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(21, 24, 29, 0.5); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); box-shadow: 0 10px 24px -10px rgba(36, 87, 245, 0.7); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 0.94rem; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* --- hero --------------------------------------------------------------------- */
.hero { padding: clamp(48px, 6vw, 96px) 0 clamp(48px, 5vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 18px 0 22px; max-width: 14ch; }
.hero .lead { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 30px; }
.hero-note { font-size: 0.92rem; color: var(--ink-3); display: flex; align-items: center; gap: 10px; }
.hero-note .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(31, 143, 92, 0.15); flex: none; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; }

.hero-grid:has(.hero-portrait) { align-items: start; }
.hero-portrait { max-width: 420px; margin-inline: auto; width: 100%; }
.hero-portrait .portrait-frame { aspect-ratio: 4 / 4.6; box-shadow: var(--shadow); }
.hero-portrait .note { right: -10px; bottom: 64px; }
.portrait-frame.portrait-wide { aspect-ratio: 4 / 3.4; }
.portrait-frame.portrait-wide img { object-position: center 30%; }

/* --- bizalmi sáv ------------------------------------------------------------ */
.trust-row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.trust-row li { padding: 22px 20px 22px 0; display: grid; gap: 4px; border-right: 1px dashed var(--rule-2); }
.trust-row li + li { padding-left: 20px; }
.trust-row li:last-child { border-right: 0; }
.trust-row strong { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.1; }
.trust-row span { color: var(--ink-2); font-size: 0.92rem; }

/* --- kártyák ----------------------------------------------------------------- */
.card {
  position: relative;
  padding: 26px 26px 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  display: grid; gap: 12px; align-content: start;
}
.card h3 { margin-top: 2px; }
.card p { color: var(--ink-2); font-size: 1rem; }
.card .ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-tint); color: var(--blue); }
.card .ico svg { width: 24px; height: 24px; }
.card-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.card-ink p, .audience .card-ink ul, .audience .card-ink .who { color: rgba(255, 255, 255, 0.78); }
.card-ink .ico { background: rgba(255, 255, 255, 0.1); color: var(--marker); }
.card-link { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card-link:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: 0 24px 48px -22px rgba(36, 87, 245, 0.4); }
.card-link .arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); }
.card-link .arrow svg { width: 18px; height: 18px; transition: transform 0.2s; }
.card-link:hover .arrow svg { transform: translateX(4px); }

/* --- post-it jegyzet ------------------------------------------------------- */
.note {
  position: relative;
  display: inline-block;
  padding: 14px 18px;
  background: var(--marker);
  color: var(--ink);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.5;
  transform: rotate(-1.2deg);
  box-shadow: 0 10px 20px -12px rgba(21, 24, 29, 0.45);
  max-width: 34ch;
}
.note::before {
  content: ""; position: absolute; top: -8px; left: 50%; width: 46px; height: 14px; transform: translateX(-50%) rotate(2deg);
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- "Ismerős?" fájdalompontok --------------------------------------------- */
.pain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pain article { display: grid; gap: 14px; padding: 26px; border: 1px dashed var(--rule-2); border-radius: var(--r-lg); background: rgba(255, 253, 249, 0.6); }
.pain article svg { width: 100%; height: auto; max-height: 120px; }
.pain h3 { font-size: 1.15rem; }
.pain p { color: var(--ink-2); font-size: 0.98rem; }
.pain .so { font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue); text-transform: none; letter-spacing: 0; padding-top: 8px; border-top: 1px solid var(--rule); }

/* --- célcsoport választó --------------------------------------------------- */
.audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.audience .card { padding: 32px; gap: 14px; }
.audience ul { margin: 6px 0 10px; padding-left: 0; list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: 0.98rem; }
.audience li { display: flex; gap: 10px; align-items: flex-start; }
.audience li::before { content: ""; width: 16px; height: 16px; flex: none; margin-top: 4px; border-radius: 50%; background: var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.6 2.5L12 5.5' fill='none' stroke='%232457f5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.audience .who { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* --- szolgáltatások ---------------------------------------------------------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.services .card { padding-top: 24px; }
.services .n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.06em; }

.services-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- esettanulmányok ----------------------------------------------------- */
.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.case { display: grid; gap: 0; overflow: hidden; padding: 0; }
.case .shot { background: var(--paper-2); border-bottom: 1px solid var(--rule); padding: 18px 18px 0; }
.case .shot svg { width: 100%; height: auto; }
.case .body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.case .meta { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.case h3 { font-size: 1.15rem; }
.case p { color: var(--ink-2); font-size: 0.97rem; }
.case .result { display: block; padding: 12px 14px; border-left: 3px solid var(--blue); background: var(--blue-tint); border-radius: 0 8px 8px 0; font-size: 0.94rem; }
.case .result b { font-weight: 600; }
.case a.ext { font-size: 0.9rem; color: var(--blue); font-weight: 600; }
.case a.ext::after { content: " ↗"; }

.cases-more { margin-top: 22px; font-size: 0.95rem; line-height: 1.6; width: 100%; max-width: none; }
.cases-more a, .card p a, .faq p a, .section-head p a, .promise p a, p.muted a { color: var(--blue); font-weight: 600; }

/* --- folyamat ---------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: step; }
.process li { list-style: none; padding: 28px 24px 28px 0; border-top: 2px solid var(--rule); position: relative; display: grid; gap: 10px; align-content: start; }
.process li + li { padding-left: 24px; }
.process li::before {
  content: ""; position: absolute; top: -2px; left: 0; width: calc(100% - 24px); height: 2px; background: var(--blue);
  transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.process li + li::before { left: 24px; }
.js .process:not(.is-visible) li::before { width: 0; }
.process .num { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--blue); letter-spacing: -0.03em; }
.process h3 { font-size: 1.12rem; }
.process p { color: var(--ink-2); font-size: 0.96rem; }
.process .time { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-3); letter-spacing: 0.05em; }
.process { padding: 0; margin: 0; }

/* --- "Miért egy ember?" + ígéretek --------------------------------------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split .sticky { position: sticky; top: 96px; }
.promise { list-style: none; margin: 0; padding: 0; display: grid; }
.promise li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--rule); }
.promise li:last-child { border-bottom: 1px solid var(--rule); }
.promise .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--white); border: 1px solid var(--rule); display: grid; place-items: center; color: var(--blue); }
.promise .ico svg { width: 22px; height: 22px; }
.promise h3 { font-size: 1.1rem; margin-bottom: 6px; }
.promise p { color: var(--ink-2); font-size: 0.97rem; }

/* --- portré --------------------------------------------------------------- */
.portrait-block { position: relative; }
.portrait-frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--blue-tint) 0%, var(--paper-2) 100%);
  border: 1px solid var(--rule);
  aspect-ratio: 4 / 4.4;
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-frame::after {
  content: ""; position: absolute; inset: 10px; border: 1px dashed rgba(36, 87, 245, 0.45); border-radius: 12px; pointer-events: none;
}
.portrait-caption { margin-top: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; white-space: nowrap; font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-3); letter-spacing: 0.05em; text-transform: uppercase; }
.portrait-block .note { position: absolute; right: -14px; bottom: 56px; }

/* --- stack ------------------------------------------------------------------ */
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stack .group { display: grid; gap: 8px; align-content: start; }
.stack h3 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--font-mono); font-size: 0.76rem; padding: 5px 9px; border: 1px solid var(--rule-2); border-radius: 6px; background: var(--white); color: var(--ink); white-space: nowrap; }
.chip-blue { border-color: var(--blue-tint-2); background: var(--blue-tint); color: var(--blue-deep); }

/* --- GYIK -------------------------------------------------------------------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 4v14M4 11h14' stroke='%232457f5' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 66ch; }

/* --- kapcsolat + űrlap ------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-side { display: grid; gap: 22px; }
.contact-side h2 { max-width: 16ch; }
.contact-side .lead { font-size: 1.1rem; }
.contact-direct { display: grid; gap: 10px; }
.contact-direct a {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--white); font-weight: 600; transition: border-color 0.2s;
}
.contact-direct a:hover { border-color: var(--blue); }
.contact-direct svg { width: 20px; height: 20px; color: var(--blue); flex: none; }
.contact-direct small { font-weight: 400; color: var(--ink-3); margin-left: auto; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.05em; }
.next-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.96rem; color: var(--ink-2); }
.next-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.next-steps .n { font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue); }

.form {
  display: grid; gap: 16px; padding: 30px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 0.94rem; }
.field label small { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--rule-2); border-radius: var(--r); background: var(--paper);
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color 0.18s, background 0.18s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(36, 87, 245, 0.35); }
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 8l4 4 4-4' fill='none' stroke='%2315181d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choices label {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1.5px solid var(--rule-2); border-radius: var(--r);
  background: var(--paper); font-size: 0.94rem; font-weight: 500; cursor: pointer; transition: border-color 0.18s, background 0.18s;
}
.choices input { accent-color: var(--blue); width: 16px; height: 16px; margin: 0; flex: none; }
.choices label:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); }
.form .fine { font-size: 0.86rem; color: var(--ink-3); line-height: 1.5; }
.form .fine a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .status { display: none; padding: 12px 14px; border-radius: var(--r); font-size: 0.95rem; }
.form .status.is-ok { display: block; background: #e4f5ec; color: #145a3a; border: 1px solid #b9e3cb; }
.form .status.is-err { display: block; background: #fdebe9; color: #8a2a22; border: 1px solid #f3c2bc; }
.form details.more summary { cursor: pointer; font-size: 0.92rem; color: var(--ink-2); font-weight: 500; list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.form details.more summary::-webkit-details-marker { display: none; }
.form details.more summary::before { content: "+"; font-family: var(--font-mono); color: var(--blue); }
.form details.more[open] summary::before { content: "–"; }
.form details.more > div { display: grid; gap: 16px; margin-top: 14px; }

.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.linklike:hover { color: var(--ink); }

/* --- lábléc ---------------------------------------------------------------- */
.footer { border-top: 1px solid var(--rule); padding: 36px 0 28px; }
.footer-inner { width: min(100% - 40px, var(--container)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; color: var(--ink-3); font-size: 0.9rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer nav a:hover { color: var(--ink); }
.footer .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer .brand img { height: 24px; }

/* --- reveal --------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* --- vázlat SVG rajz-animáció ------------------------------------------------ */
.js .sketch .draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.sketch.is-visible .draw { animation: draw 1.6s cubic-bezier(0.3, 0.6, 0.2, 1) forwards; }
.sketch .draw:nth-of-type(2) { animation-delay: 0.15s; }
.sketch .draw:nth-of-type(3) { animation-delay: 0.3s; }
.sketch .draw:nth-of-type(4) { animation-delay: 0.45s; }
.js .sketch .pop { opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease 0.9s, transform 0.5s ease 0.9s; }
.sketch.is-visible .pop { opacity: 1; transform: none; }
.sketch .pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.floaty { animation: floaty 5s ease-in-out infinite; }

/* --- süti sáv ------------------------------------------------------------------ */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; margin-inline: auto; max-width: 720px;
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: 0 24px 60px -20px rgba(21,24,29,0.35);
  padding: 18px 20px; display: none; gap: 14px; align-items: center; grid-template-columns: minmax(0, 1fr) auto;
}
.consent.is-open { display: grid; }
.consent p { font-size: 0.9rem; color: var(--ink-2); }
.consent p a { text-decoration: underline; text-underline-offset: 2px; }
.consent .actions { display: flex; gap: 8px; }
.consent .actions .btn { border-color: var(--ink); }

/* --- egyszerű tartalmi oldal (adatkezelés, köszönjük) ------------------- */
.prose { display: grid; gap: 18px; }
.prose h2 { font-size: 1.5rem; margin-top: 18px; }
.prose h3 { font-size: 1.15rem; margin-top: 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.prose .placeholder { background: var(--marker); padding: 0 4px; border-radius: 3px; color: var(--ink); font-family: var(--font-mono); font-size: 0.9em; }

/* --- landing specifikus ---------------------------------------------------- */
.hero-compact { padding-top: clamp(28px, 3.5vw, 52px); }
.hero-compact .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
.hero-compact h1 { max-width: 22ch; font-size: clamp(2.1rem, 1.1rem + 2.9vw, 3.3rem); margin: 14px 0 16px; }
.hero-compact .lead { font-size: 1.1rem; margin-bottom: 22px; }
.hero-compact .hero-actions { margin-bottom: 22px; }
.hero-compact .hero-art { width: 100%; max-width: 620px; margin-inline: auto; }
.proof-strip { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
.proof-strip span { display: inline-flex; align-items: center; gap: 8px; font-size: 0.93rem; color: var(--ink-2); font-weight: 500; }
.proof-strip svg { width: 18px; height: 18px; color: var(--green); flex: none; }

/* --- reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .sketch .pop { opacity: 1; transform: none; transition: none; }
  .sketch .draw { stroke-dasharray: none; stroke-dashoffset: 0; animation: none !important; }
  .floaty, .pulse { animation: none; }
  .process li::before { transition: none; width: calc(100% - 24px); }
}

/* --- reszponzív -------------------------------------------------------------- */
@media (max-width: 1080px) {
  .services, .services-4, .cases, .pain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process li:nth-child(odd) { padding-left: 0; }
  .process li:nth-child(odd)::before { left: 0; }
  .process li:nth-child(even) { padding-left: 24px; }
  .process li:nth-child(even)::before { left: 24px; }
  .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-row li:nth-child(2) { border-right: 0; }
  .trust-row li:nth-child(3) { padding-left: 0; border-top: 1px dashed var(--rule-2); }
  .trust-row li:nth-child(4) { border-top: 1px dashed var(--rule-2); }
}
@media (max-width: 900px) {
  .hero-grid, .hero-compact .hero-grid { grid-template-columns: 1fr; }
  .hero h1, .hero-compact h1 { max-width: none; }
  .hero-art { max-width: 640px; }
  .split, .contact, .audience { grid-template-columns: 1fr; }
  .split .sticky { position: static; }
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 20px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 1.02rem; }
  .nav a::after { display: none; }
  .nav a.btn { margin: 14px 0 0; padding: 0 20px; border-bottom: 0; }
    .portrait-block .note { right: 8px; bottom: 40px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap, .wrap-narrow, .topbar-inner, .footer-inner { width: min(100% - 32px, var(--container)); }
  .services, .services-4, .cases, .pain, .process, .stack, .trust-row, .form .row, .choices { grid-template-columns: 1fr; }
  .process li, .process li + li, .process li:nth-child(even) { padding-left: 0; }
  .process li::before, .process li + li::before, .process li:nth-child(even)::before { left: 0; }
  .process.is-visible li::before { width: 100%; }
  .trust-row li { border-right: 0; padding-left: 0 !important; border-top: 1px dashed var(--rule-2); padding: 16px 0; }
  .trust-row li:first-child { border-top: 0; }
  .form { padding: 22px 18px; }
  .footer-inner { grid-template-columns: 1fr; }
  .consent { grid-template-columns: 1fr; left: 12px; right: 12px; bottom: 12px; }
  .btn { white-space: normal; text-align: center; }
  .hero-actions .btn { width: 100%; }
  .note { max-width: none; }
}
