/* ==========================================================================
   hene.pl — arkusz stylów
   Zero zależności zewnętrznych: brak CDN, czcionki hostowane lokalnie, brak skryptów.
   Każde żądanie z tej strony trafia wyłącznie do www.hene.pl.
   ========================================================================== */

/* --- czcionki: hostowane lokalnie, licencja SIL OFL 1.1 (zob. assets/fonts/OFL-*.txt) --- */
@font-face { font-family: "Comfortaa"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/comfortaa-latin-ext-300-700.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: "Comfortaa"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/assets/fonts/comfortaa-latin-300-700.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: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-ext-400-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; }
@font-face { font-family: "Poppins"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-400-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: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-ext-400.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: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/poppins-latin-400.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: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-latin-ext-600.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: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/poppins-latin-600.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: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-latin-ext-700.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: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/poppins-latin-700.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 {
  /* marka (kolor logotypu: #2e97ce) */
  --brand: #2e97ce;
  --brand-700: #1f78a8;   /* tekst/przyciski na bieli: kontrast 4.9:1 (AA) */
  --brand-800: #175d84;
  --brand-100: #d9ecf6;
  --brand-50:  #eef6fb;

  /* neutralne */
  --ink:   #0b1f2e;
  --text:  #1f2d3a;
  --muted: #4b5b69;       /* kontrast na bieli 7:1 */
  --line:  #dbe4eb;
  --bg:    #ffffff;
  --bg-alt:#f5f9fc;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(11,31,46,.06), 0 10px 28px -14px rgba(11,31,46,.22);

  --font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Comfortaa", "Poppins", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;

  --container: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 9vw, 112px);

  color-scheme: light;
}

/* --- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-800); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.125rem); }
h3 { font-size: 1.25rem; }
p, ul, ol, dl { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .35em; }
strong { color: var(--ink); }
code { font-family: var(--mono); font-size: .92em; background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; }
small, .small { font-size: .9rem; }

:focus-visible { outline: 3px solid var(--brand-700); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brand-100); color: var(--ink); }

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

/* --- układ --------------------------------------------------------------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.eyebrow {
  display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand-700); margin-bottom: .75rem;
}
.lead { font-size: 1.125rem; color: var(--muted); }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* --- nagłówek ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; min-height: 72px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav li { margin: 0; }
.site-nav a {
  display: inline-block; padding: .5rem .75rem; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9375rem;
}
.site-nav a:hover { background: var(--brand-50); color: var(--brand-800); }
.site-nav a[aria-current="page"] { color: var(--brand-700); }
.site-nav .nav-cta { background: var(--brand-700); color: #fff; }
.site-nav .nav-cta:hover { background: var(--brand-800); color: #fff; }
@media (max-width: 640px) {
  .site-header .inner { justify-content: center; }
  .site-nav { width: 100%; }
  .site-nav ul { justify-content: center; }
  .site-nav a { padding: .4rem .6rem; font-size: .875rem; }
}

/* --- przyciski ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.35rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-700); color: var(--brand-800); background: var(--brand-50); }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- hero ------------------------------------------------------------------ */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(64px, 11vw, 140px) clamp(56px, 9vw, 120px);
  background:
    radial-gradient(60% 70% at 85% 10%, var(--brand-100) 0%, transparent 60%),
    radial-gradient(45% 55% at 10% 90%, var(--brand-50) 0%, transparent 60%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(46,151,206,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46,151,206,.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 80% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(70% 80% at 70% 30%, #000 20%, transparent 75%);
}
.hero .container { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; }
.hero h1 { margin-bottom: .6em; }
.hero h1 em { font-style: normal; color: var(--brand-700); }
.hero .lead { max-width: 56ch; margin-bottom: 1.75rem; }
.hero-art { justify-self: end; width: 100%; max-width: 440px; }
.hero-art svg { width: 100%; height: auto; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; max-width: 340px; }
}

/* --- karty usług --------------------------------------------------------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card h3 { margin-top: 1rem; }
.card p { color: var(--muted); }
.card ul { margin: auto 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 1.4rem; margin-top: .45rem; }
.card li::before {
  content: ""; position: absolute; left: 0; top: .58em; width: .55rem; height: .55rem;
  border-radius: 50%; background: var(--brand);
}
.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-700);
}
.icon svg { width: 26px; height: 26px; }

/* --- atuty --------------------------------------------------------------- */
.features { display: grid; gap: 28px 40px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }
.feature h3 { font-size: 1.125rem; margin: .75rem 0 .35rem; }
.feature p { color: var(--muted); margin: 0; }
.feature .num {
  font-family: var(--mono); font-size: .875rem; font-weight: 700; color: var(--brand-700);
  display: inline-block; padding: .2rem .55rem; border-radius: 6px; background: var(--brand-50);
}

/* --- proces ---------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: step; }
.steps li {
  counter-increment: step; position: relative; padding: 24px 22px 22px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); margin: 0;
}
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono);
  font-weight: 700; color: var(--brand); font-size: .9rem; margin-bottom: .5rem;
}
.steps h3 { font-size: 1.0625rem; margin-bottom: .3rem; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }

/* --- technologie ----------------------------------------------------------- */
.tags-head { display: block; margin-top: clamp(36px, 5vw, 56px); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li { margin: 0; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9375rem; font-weight: 600; color: var(--ink); }

/* --- kontakt ----------------------------------------------------------------- */
.contact { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow); }
.contact-card .email { font-size: clamp(1.25rem, 1rem + 1.4vw, 1.75rem); font-weight: 700; word-break: break-all; }
.contact-card h3 { font-family: var(--font); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 1.4rem 0 .35rem; }
.contact-card h3:first-child { margin-top: 0; }
.contact-card address { font-style: normal; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

/* definicje / dane spółki */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; margin: 0 0 1.5em; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; color: var(--ink); }
@media (max-width: 540px) { .dl { grid-template-columns: 1fr; gap: .1rem; } .dl dd { margin-bottom: .7rem; } }

/* --- stopka ------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: 48px 32px; font-size: .9375rem; color: var(--muted); }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h2 { font-family: var(--font); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .45rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--brand-800); text-decoration: underline; }
.site-footer .brand img { height: 28px; margin-bottom: 14px; }
.site-footer .legal-line { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .875rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* --- podstrony prawne --------------------------------------------------------- */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); margin-bottom: .4em; }
.page-head .meta { color: var(--muted); margin: 0; font-size: .9375rem; }
.legal { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr) 260px; padding-block: clamp(32px, 5vw, 64px); align-items: start; }
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.375rem; margin-top: 2.2em; padding-top: .2em; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; margin-top: 1.6em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; margin: 1em 0 1.5em; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--ink); background: var(--bg-alt); }
.prose .table-wrap { overflow-x: auto; }
@media (max-width: 700px) {
  /* tabela w polityce prywatności: na telefonie każdy wiersz staje się kartą */
  .prose table.stack thead { display: none; }
  .prose table.stack, .prose table.stack tbody, .prose table.stack tr, .prose table.stack th, .prose table.stack td { display: block; width: 100%; }
  .prose table.stack tr { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .4rem .2rem; margin-bottom: 1rem; }
  .prose table.stack th, .prose table.stack td { border: 0; padding: .45rem .6rem; }
  .prose table.stack th[scope="row"] { background: var(--bg-alt); border-radius: 6px; }
  .prose table.stack td::before { content: attr(data-label); display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-700); margin-bottom: .15rem; }
}
.prose .note { background: var(--brand-50); border-left: 4px solid var(--brand); padding: .9rem 1.1rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 1.5em; }
.prose .note p:last-child, .prose .note ul:last-child { margin-bottom: 0; }
.toc { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; font-size: .9rem; }
.toc h2 { font-family: var(--font); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li + li { margin-top: .3rem; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--brand-800); text-decoration: underline; }
.legal .toc { order: 2; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .toc { position: static; } .legal .toc { order: 0; } }

/* --- 404 --------------------------------------------------------------------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.error-page .code { font-family: var(--mono); font-size: 5rem; font-weight: 700; color: var(--brand); line-height: 1; margin-bottom: .2em; }
.error-page .btn-row { justify-content: center; }

/* --- druk --------------------------------------------------------------------- */
@media print {
  .site-header, .site-footer .cols, .toc, .skip-link, .btn { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: none; }
  .legal { grid-template-columns: 1fr; }
}
