/* Amber AI Consultancy — styl B+ „Sieć” (spec: lobe amber-ai-consultancy, STYL.md).
   Bez JS i bez stylów inline (CSP); animacje tylko CSS/SVG. */

:root {
  --bg: #0B0D12;
  --surface: #12161D;
  --line: #262D36;
  --field: #333B45;
  --text: #E8E6E1;
  --text-2: #B7BEC7;
  --label: #9AA3AE;
  --amber: #F2A93B;
  --violet: #C084FC;
  --pink: #E7A2F5;
  --radius: 16px;
  --wrap: 1200px;
  --font: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --glass-border: linear-gradient(140deg, rgba(242,169,59,.55), rgba(38,45,54,.6) 45%, rgba(192,132,252,.5));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id], #form { scroll-margin-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
a { color: var(--text); }
a:hover { color: var(--amber); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
.accent { color: var(--amber); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--amber); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

/* Typografia */
.h1 { font-size: clamp(42px, 6vw, 84px); line-height: 1.0; letter-spacing: -.04em; font-weight: 600; }
.h1-page { font-size: clamp(38px, 5vw, 68px); margin-top: 14px; }
.h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; }
.h3 { font-size: 22px; line-height: 1.25; font-weight: 600; }
.h4 { font-size: 20px; line-height: 1.3; font-weight: 600; margin: 10px 0 6px; }
.lead { margin-top: 26px; max-width: 34em; font-size: 20px; color: #C3C9D1; }
.sub { margin: 12px 0 40px; max-width: 36em; color: var(--text-2); }
.sub.center { margin-left: auto; margin-right: auto; }
.mb-m { margin-bottom: 24px; }
.mb-l { margin-bottom: 48px; }
.glow-text {
  background: linear-gradient(90deg, var(--amber), var(--violet), var(--amber));
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; }
.btn-glow { background: linear-gradient(90deg, var(--amber), var(--pink)); color: var(--bg); box-shadow: 0 10px 40px -10px rgba(242,169,59,.6); transition: transform .2s ease, box-shadow .2s ease; }
.btn-glow:hover { color: var(--bg); transform: translateY(-1px); box-shadow: 0 14px 48px -10px rgba(242,169,59,.8); }
.btn-ghost { min-height: 44px; padding: 0 18px; border: 1px solid var(--amber); color: var(--amber); font-weight: 500; font-size: 15px; }
.btn-ghost:hover { background: rgba(242,169,59,.1); }
.btn-text { padding: 0 8px; font-weight: 500; }
.actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; }
.link-accent { color: var(--amber); text-decoration: none; font-weight: 500; }

/* Nagłówek */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11,13,18,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(38,45,54,.6); }
.top-row { display: flex; align-items: center; gap: 16px 36px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; white-space: nowrap; }
.brand-sub { color: var(--label); font-weight: 500; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.nav { display: flex; gap: 28px; font-size: 15px; flex: 1 1 auto; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang { display: flex; align-items: center; gap: 2px; font-family: var(--mono); font-size: 13px; color: #4A525C; }
.lang a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--label); text-decoration: none; }
.lang a[aria-current] { color: var(--amber); }

/* Menu mobilne: <details>, bez JS */
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.mnav[open] .burger { background: transparent; }
.mnav[open] .burger::before { top: 0; transform: rotate(45deg); }
.mnav[open] .burger::after { top: 0; transform: rotate(-45deg); }
.mnav-panel { position: absolute; right: 0; top: 56px; width: min(320px, calc(100vw - 32px)); display: grid; gap: 4px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); }
.mnav-panel a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 0 10px; text-decoration: none; border-radius: 10px; }
.mnav-panel a:not(.btn):hover { background: rgba(232,230,225,.05); }
.mnav-panel .btn { margin-top: 8px; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-mist { position: absolute; inset: 0; z-index: -2; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); background: radial-gradient(60% 70% at 78% 40%, rgba(192,132,252,.20), transparent 70%), radial-gradient(50% 60% at 62% 70%, rgba(242,169,59,.18), transparent 70%); }
.hero-mist-soft { background: radial-gradient(50% 90% at 85% 0%, rgba(192,132,252,.16), transparent 70%), radial-gradient(40% 80% at 60% 10%, rgba(242,169,59,.12), transparent 70%); }
.hero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(232,230,225,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(232,230,225,.04) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(70% 80% at 60% 50%, #000, transparent); mask-image: radial-gradient(70% 80% at 60% 50%, #000, transparent); }
.hero-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 48px; align-items: center; padding-top: 100px; padding-bottom: 110px; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(232,230,225,.14); font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); }

/* Sieć neuronowa */
.net { width: 100%; height: auto; overflow: visible; }
.net-lines line { stroke: rgba(232,230,225,.14); stroke-width: 1; }
.pulse { stroke-width: 2; stroke-linecap: round; stroke-dasharray: 14 226; animation: pulse 3.6s linear infinite; }
.pulse-a { stroke: var(--amber); filter: drop-shadow(0 0 4px var(--amber)); }
.pulse-v { stroke: var(--violet); filter: drop-shadow(0 0 4px var(--violet)); }
.d1 { animation-duration: 4.4s; animation-delay: -1.2s; }
.d2 { animation-duration: 2.9s; animation-delay: -2.1s; }
.d3 { animation-duration: 4.9s; animation-delay: -.6s; }
.d4 { animation-duration: 3.2s; animation-delay: -3.3s; }
.d5 { animation-duration: 4.1s; animation-delay: -1.7s; }
.halo-a { fill: var(--amber); opacity: .12; }
.halo-v { fill: var(--violet); opacity: .12; }
.node { animation: twinkle 3s ease-in-out infinite; }
.node-a { fill: var(--amber); }
.node-v { fill: var(--violet); }
.t1 { animation-duration: 2.4s; animation-delay: -.8s; }
.t2 { animation-duration: 3.6s; animation-delay: -1.9s; }
.t3 { animation-duration: 2.8s; animation-delay: -2.6s; }
.t4 { animation-duration: 3.9s; animation-delay: -.3s; }

/* Sekcje */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-tight { padding-top: 48px; padding-bottom: 88px; }
.section-line { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-line + .section-line { border-top: 0; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.grid-cases { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px 56px; }
.section-tight.two-col { gap: 16px; }
.steps { list-style: none; padding: 0; gap: 40px; }

/* Karty: szkło z gradientową obwódką */
.card { position: relative; padding: 28px 24px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; }
.glass { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--glass-border) border-box; border: 1px solid transparent; }
article.card { transition: transform .25s ease, box-shadow .25s ease; }
article.card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px -20px rgba(242,169,59,.35); }
.stretch { text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.ico { width: 28px; height: 28px; fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-check { width: 20px; height: 20px; stroke-width: 2; flex: 0 0 auto; margin-top: 3px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); }
.metrics dt { font-size: 13px; color: var(--label); order: 2; }
.metrics div { display: flex; flex-direction: column; }
.metrics dd { font-size: 30px; font-weight: 600; line-height: 1.1; }
.metrics-big { margin-top: 40px; max-width: 820px; }
.metrics-big dd { font-size: clamp(36px, 5vw, 54px); }

/* Filtr kategorii i "Pokaż więcej" (lista wiedzy; bez JS wszystko widoczne) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chips[hidden], .list-foot[hidden], .card[hidden] { display: none; }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font: inherit; font-size: 15px; cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.chip:hover { border-color: var(--amber); color: var(--text); }
.chip[aria-pressed="true"] { border-color: var(--amber); background: rgba(242,169,59,.14); color: var(--amber); font-weight: 600; }
.list-foot { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 40px; }
.list-foot p { margin: 0; }

/* Podstrony */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 72px; }
.crumbs { color: var(--label); margin-bottom: 28px; }
.crumbs a { color: var(--label); }
.page-hero-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 40px 56px; align-items: end; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; padding: 24px; border-radius: var(--radius); }
.meta dt { font-size: 13px; color: var(--label); }
.meta dd { margin-top: 4px; font-size: 20px; font-weight: 600; }
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 1px solid var(--line); }
.timeline { list-style: none; padding: 0; display: grid; gap: 26px; }
.timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 16px; }
.timeline .mono { padding-top: 14px; }
.timeline .h4 { margin-top: 8px; }
.bullets { padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); }
.faq { border-top: 1px solid var(--line); padding: 8px 0; }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 19px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--amber); font-size: 22px; }
.faq[open] summary::after { content: "−"; }
.faq p { padding-bottom: 14px; }
.prose h2 { margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 14px; }
.band { background: var(--surface); border-top: 1px solid var(--line); }
.band-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 72px; padding-bottom: 72px; }
.band .h2 { max-width: 18em; }
.empty { text-align: center; color: var(--text-2); padding: 48px 24px; }

/* Formularz */
.form { display: grid; gap: 16px; text-align: left; margin-top: 8px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.form input[type="text"], .form input[type="email"], .form textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--field); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.form textarea { resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(242,169,59,.2); }
.form .consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.form .consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--amber); flex: 0 0 auto; }
.form .btn { justify-self: start; }
.center .form .btn { justify-self: center; }
.form-error { padding: 12px 16px; border: 1px solid #F87171; border-radius: 12px; color: #FCA5A5; background: rgba(248,113,113,.08); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: center; padding: 40px 24px; }

/* Stopka */
.foot { border-top: 1px solid var(--line); margin-top: 0; }
.foot-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot-row .muted { margin-top: 10px; font-size: 15px; }
.foot-links { display: grid; gap: 4px; align-content: start; font-size: 15px; }
.foot-links a { color: var(--text-2); text-decoration: none; min-height: 32px; display: flex; align-items: center; }
.foot-links a:hover { color: var(--amber); }
.foot-bottom { padding-bottom: 32px; font-size: 14px; }

/* Animacje */
@keyframes shimmer { to { background-position: 200% 50%; } }
@keyframes pulse { to { stroke-dashoffset: -240; } }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

@media (max-width: 900px) {
  .nav, .hide-sm { display: none; }
  .mnav { display: block; }
  .hero-row { padding-top: 56px; padding-bottom: 64px; gap: 24px; }
  .net { max-width: 460px; margin: 0 auto; }
  .section { padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 480px) {
  .badge { font-size: 11px; padding: 6px 12px; }
  .brand-sub { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .timeline .mono { padding-top: 0; }
  .band-row .btn, .actions .btn-glow { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Artykuły */
.h1-article { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.06; max-width: 22em; }
.article-meta { margin-top: 18px; color: var(--label); }
.toc { padding: 22px 24px; border-radius: var(--radius); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding-top: 56px; padding-bottom: 88px; align-items: start; }
.article-main { min-width: 0; max-width: 760px; }
.article-aside { align-self: stretch; }
.aside-sticky { position: sticky; top: 96px; display: grid; gap: 16px; }
.aside-sticky .toc ol { font-size: 15px; }
.aside-cta { padding: 24px; }
.aside-cta .h3 { font-size: 20px; }
.aside-cta .muted { font-size: 15px; }
.aside-cta .btn { margin-top: 6px; white-space: normal; text-align: center; }
.toc-mobile { display: none; margin-bottom: 32px; }
.toc-mobile summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; list-style: none; }
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; margin-left: auto; font-size: 18px; }
.toc-mobile[open] summary::after { content: "−"; }
@media (max-width: 1023px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 40px; }
  .article-main { max-width: none; }
  .toc-mobile { display: block; }
  .article-aside .toc { display: none; }
  .aside-sticky { position: static; }
}
.toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--amber); }
.article-body { font-size: 18px; line-height: 1.75; color: #D5D9DF; }
.article-body h2 { font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: -.02em; color: var(--text); scroll-margin-top: 96px; }
.article-body h3 { margin: 28px 0 10px; font-size: 21px; line-height: 1.3; color: var(--text); }
.article-body p { margin-top: 16px; }
.article-body ul, .article-body ol { margin: 16px 0 0; padding-left: 24px; display: grid; gap: 8px; }
.article-body a { color: var(--amber); text-underline-offset: 3px; }
.article-body strong { color: var(--text); }
.fig { margin: 0 0 32px; }
.fig img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); }
.article-body .fig { margin: 32px 0; }
.article-body .fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--text-2); text-align: center; }
.article-body blockquote { margin: 24px 0 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--violet); color: var(--text-2); font-style: italic; }
.article-body table { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.article-body th, .article-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { color: var(--text); font-weight: 600; background: var(--surface); }
