/* Podstrony 1flowstack.com (/realizacje/…). Tokeny, nagłówek, stopka i przycisk
   motywu są takie same jak w <style> strony głównej (index.html) — zmiana tam
   = zmiana tu. Strona główna trzyma style w <head>, bo to pierwszy ekran;
   podstrony dzielą jeden plik w cache. */

/* ── fonts (variable: Inter 400–600, Inter Tight 500–700) ── */
@font-face { font-family: 'Inter'; 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: 'Inter'; 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 Tight'; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/inter-tight-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: 'Inter Tight'; font-weight: 500 700; font-display: swap; src: url(/assets/fonts/inter-tight-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; }

/* ── tokens: dark (default) and light ── */
:root {
  --bg: #090c1a;
  --bg2: #0e1327;
  --card: #111733;
  --fg: #eef0f8;
  --muted: #a6acc4;
  --line: rgba(255, 255, 255, .10);
  --accent: #9a8cff;
  --accent2: #5b9bff;
  --btn-bg: #eef0f8;
  --btn-fg: #090c1a;
  --chip: rgba(255, 255, 255, .06);
  --gutter: 48px;
  --display: 'Inter Tight', system-ui, sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f6f6fa;
  --bg2: #ffffff;
  --card: #ffffff;
  --fg: #0b0f1f;
  --muted: #4b5169;
  --line: rgba(11, 15, 31, .12);
  --accent: #5640ee;
  --accent2: #1f5fd6;
  --btn-bg: #0b0f1f;
  --btn-fg: #ffffff;
  --chip: rgba(11, 15, 31, .05);
  color-scheme: light;
}

/* ── base ── */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); box-sizing: border-box; }
#main:focus { outline: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--btn-fg); }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; font-weight: 600; box-sizing: border-box; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); padding: 12px 20px; font-size: 15px; min-height: 44px; transition: transform .2s ease; }
.btn-primary:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn-lg { gap: 10px; padding: 18px 28px; font-size: 17px; min-height: 56px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); transition: background-color .35s ease; }
.header-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { justify-self: start; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand img { display: block; }
.logo-light { display: none !important; }
:root[data-theme="light"] .logo-dark { display: none !important; }
:root[data-theme="light"] .logo-light { display: block !important; }
.nav-links { display: flex; gap: 4px; justify-content: center; }
.navlink { padding: 10px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); }
.navlink:hover, .navlink[aria-current] { background: var(--chip); color: var(--fg); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

/* ── page head ── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 32px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.page-hero { display: flex; flex-direction: column; gap: 24px; padding-top: 56px; padding-bottom: 72px; }
.page-hero > * { max-width: 1040px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.page-hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5.6vw, 88px); line-height: 1.0; letter-spacing: -0.035em; }
.page-hero .lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin-top: 16px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px 0 0; }
.facts dt { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 600; }

/* ── sections ── */
.section { display: flex; flex-direction: column; gap: 40px; padding-top: 88px; padding-bottom: 88px; }
.section-border { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg2); }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 900px; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 3.8vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.section-lead { font-size: 20px; line-height: 1.55; color: var(--muted); }

/* tekst ciągły */
.prose { display: flex; flex-direction: column; gap: 20px; max-width: 760px; font-size: 18px; line-height: 1.7; color: var(--muted); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose ul { display: flex; flex-direction: column; gap: 10px; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* karty usług (realizacja → podstrony) */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.service { display: flex; flex-direction: column; gap: 14px; padding: 28px; transition: border-color .2s ease, transform .2s ease; }
a.service:hover { color: var(--fg); border-color: var(--accent); transform: translateY(-2px); }
.service .idx { font-size: 13px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.service h3 { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.015em; line-height: 1.2; }
.service p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.service .more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--accent); }

/* kroki „jak to działa” */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: step; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 28px; counter-increment: step; }
.step::before { content: "0" counter(step); font-size: 13px; font-weight: 500; letter-spacing: 0.12em; color: var(--muted); }
.step h3 { font-family: var(--display); font-weight: 600; font-size: 21px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* efekty */
.gains { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.gain { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.gain h3 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.gain p { font-size: 16px; line-height: 1.6; color: var(--muted); }


/* lista realizacji */
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.case { display: flex; flex-direction: column; gap: 16px; padding: 32px; transition: border-color .2s ease, transform .2s ease; }
a.case:hover { color: var(--fg); border-color: var(--accent); transform: translateY(-2px); }
.case h2 { font-family: var(--display); font-weight: 600; font-size: 32px; letter-spacing: -0.02em; }
.case p { font-size: 17px; line-height: 1.6; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.chips li { padding: 7px 13px; border-radius: 999px; background: var(--chip); color: var(--muted); }
.case .more { margin-top: auto; font-weight: 600; color: var(--accent); }
.case-soon { justify-content: center; align-items: flex-start; border-style: dashed; background: transparent; }

/* wezwanie do rozmowy */
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: clamp(32px, 5vw, 64px); background: linear-gradient(135deg, rgba(154, 140, 255, .16), rgba(91, 155, 255, .08)), var(--card); }
.cta h2 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -0.03em; max-width: 900px; }
.cta p { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 760px; }
.cta-note { font-size: 15px !important; }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 56px; font-size: 15px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }

/* ── theme toggle ── */
.theme-toggle { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--fg); cursor: pointer; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.theme-toggle:hover { transform: scale(1.06); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* 6 linków + przycisk w jednym wierszu także przy ~1000 px (zmiana tu = zmiana w <style> index.html) */
@media (max-width: 1100px) {
  .nav-links { gap: 0; }
  .navlink { padding: 10px 10px; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav-links { display: none !important; }
  .header-row { grid-template-columns: minmax(0, 1fr) auto; padding-top: 14px; padding-bottom: 14px; }
  .page-hero { padding-top: 32px; padding-bottom: 48px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .prose { font-size: 17px; }
  .theme-toggle { right: 16px; bottom: 16px; width: 48px; height: 48px; }
}
@media (max-width: 420px) {
  .brand { font-size: 18px; }
  .header-actions .btn-primary { padding: 10px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.service:hover, a.case:hover { transform: none; }
}
