/* Varvados — styl minimalistyczny */

/* Inter — zmienny font (wagi 400–700), latin-ext dla polskich znaków */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../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 700; font-display: swap;
  src: url("../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;
}

:root {
  --ink: #0b2d2b;
  --ink-2: #6e6e73;
  --line: #d2d2d7;
  --bg: #ffffff;
  --bg-gray: #f5f5f7;
  --bg-black: #0b2d2b;
  --accent: #12786d;
  --accent-hover: #0b5c53;
  --accent-light: #20b6a5;
  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 64px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }

/* ---------- Nawigacja ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: rgba(0, 0, 0, 0.08); }
.nav-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 22px;
  height: 52px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav-links a { color: var(--ink); opacity: .8; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-links .nav-cta {
  opacity: 1; background: var(--ink); color: #fff;
  padding: 6px 14px; border-radius: 980px; font-weight: 500;
}
.nav-links .nav-cta:hover { background: #0b2d2b; }
.nav-toggle { display: none; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 17px; font-weight: 500; border-radius: 980px;
  padding: 12px 24px; transition: background .2s, color .2s, transform .2s;
}
.btn-lg { padding: 16px 30px; font-size: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-secondary:hover { background: var(--accent); color: #fff; }
.btn-link { color: var(--accent); padding-left: 8px; padding-right: 8px; }
.btn-link:hover { text-decoration: underline; }

/* ---------- Typografia sekcji ---------- */
.eyebrow { font-size: 17px; line-height: 1.4; letter-spacing: normal; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.eyebrow-accent { color: var(--accent-light); }

.display {
  font-size: clamp(44px, 8vw, 88px);
  line-height: 1.04; font-weight: 700; letter-spacing: -0.035em;
}
h2, .h2 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.08; font-weight: 700; letter-spacing: -0.03em;
}
h3 { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }

.section { padding: clamp(80px, 12vw, 140px) 0; }
.section-gray { background: var(--bg-gray); }
.section-black { background: var(--bg-black); color: #f5f5f7; }
.section-black .eyebrow { color: #86868b; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { max-width: 760px; margin-left: auto; margin-right: auto; }
.section-lead { font-size: clamp(19px, 2.2vw, 22px); line-height: 1.45; color: var(--ink-2); margin-top: 20px; }
.section-black .section-lead { color: #a1a1a6; }

/* ---------- Hero ---------- */
.hero { padding: clamp(120px, 16vw, 170px) 0 clamp(60px, 8vw, 100px); text-align: center; overflow: hidden; }
.hero .eyebrow { color: var(--accent); }
.hero-lead {
  max-width: 640px; margin: 24px auto 0;
  font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; color: var(--ink-2);
}
.hero-actions { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-visual { margin: clamp(56px, 8vw, 88px) auto 0; max-width: 760px; }
.panel {
  background: #fff; border-radius: var(--radius); text-align: left;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 24px 60px -12px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.06); overflow: hidden;
}
.panel-bar {
  display: flex; align-items: center; gap: 7px; padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,.06); background: #fbfbfd;
  font-size: 13px; color: var(--ink-2);
}
.panel-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e3e3e8; }
.panel-bar span { margin-left: 10px; }
.panel-body { padding: 26px; }
.status-main { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.status-main strong { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.status-main small { color: var(--ink-2); font-size: 14px; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.dot-ok { background: var(--accent-light); box-shadow: 0 0 0 6px rgba(32, 182, 165, .18); animation: pulse 2.4s ease-in-out infinite; }
.dot-static { animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(32, 182, 165, .06); } }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: var(--bg-gray); border-radius: var(--radius-sm); padding: 16px; }
.tile small { display: block; font-size: 13px; color: var(--ink-2); }
.tile strong { display: block; font-size: 22px; font-weight: 600; margin: 4px 0 12px; letter-spacing: -0.01em; }
.bar { display: block; height: 4px; border-radius: 4px; background: #e3e3e8; overflow: hidden; }
.bar b { display: block; height: 100%; background: var(--accent-light); border-radius: 4px; }
.bar-muted b { background: #c7c7cc; }
.visual-note { margin-top: 14px; font-size: 12px; color: #86868b; text-align: center; }

/* ---------- Usługi (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  min-width: 0;
  background: #fff; border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.18); }
.card-wide { grid-column: 1 / -1; }
.card { position: relative; }
.tag {
  position: absolute; top: clamp(24px, 3.4vw, 36px); right: clamp(24px, 3.4vw, 36px);
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: rgba(18, 120, 109, .1); padding: 4px 10px; border-radius: 980px;
}
.card-dark { background: #0b2d2b; color: #f5f5f7; }
.card-icon { width: 44px; height: 44px; margin-bottom: 22px; }
.card-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card-dark .card-icon svg { stroke: var(--accent-light); }
.card-lead { font-size: 19px; color: var(--ink-2); margin-top: 8px; line-height: 1.4; }
.card-dark .card-lead { color: #a1a1a6; }
.card ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.card li { position: relative; padding-left: 22px; font-size: 16px; }
.card li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.card-dark li::before { background: var(--accent-light); }
.card-dark h3 { font-size: clamp(25px, 3.4vw, 40px); overflow-wrap: anywhere; }
.card-dark .card-lead { font-size: clamp(19px, 2vw, 22px); }
.card-dark ul { grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px 36px; }

/* ---------- Shield ---------- */
.report {
  max-width: 720px; margin: 0 auto;
  background: linear-gradient(180deg, #123b38, #0b2d2b); border: 1px solid #1f5550;
  border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 30px 80px -20px rgba(32, 182, 165, .18);
}
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid #1f5550; }
.report-head > div:first-child { flex: 1 1 180px; min-width: 0; }
.report-head small { display: block; color: #86868b; font-size: 13px; }
.report-head strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.score { display: flex; align-items: baseline; gap: 2px; flex-shrink: 0; white-space: nowrap; }
.score span { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent-light); }
.score small { font-size: 16px; color: #86868b; }
.risks { list-style: none; padding: 0; margin: 10px 0 0; }
.risks li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #184a46; font-size: 16px; color: #e8e8ed; }
.risks li:last-child { border-bottom: 0; }
.badge { flex-shrink: 0; width: 92px; text-align: center; font-size: 12px; font-weight: 600; padding: 4px 0; border-radius: 980px; }
.b-crit { background: rgba(255, 69, 58, .16); color: #ff6961; }
.b-high { background: rgba(255, 159, 10, .16); color: #ffb340; }
.b-med { background: rgba(255, 214, 10, .14); color: #ffd60a; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(48px, 7vw, 80px); }
.features strong { display: block; font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.features p { color: #a1a1a6; font-size: 16px; }

/* ---------- Współpraca ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  counter-reset: none; position: relative;
}
.step {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-gray); border-radius: var(--radius);
  padding: clamp(28px, 3.6vw, 40px);
}
.step:not(:last-child)::after {
  content: ""; position: absolute; z-index: 1; top: 50%; right: -16px;
  width: 12px; height: 12px; margin-top: -6px;
  border-top: 2px solid #c7c7cc; border-right: 2px solid #c7c7cc;
  transform: rotate(45deg);
}
.step-no {
  display: block; font-size: clamp(64px, 7vw, 88px); line-height: 1; font-weight: 700;
  letter-spacing: -0.05em; margin-bottom: 28px;
  background: linear-gradient(160deg, var(--accent-light), var(--accent) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step p { color: var(--ink-2); margin-top: 10px; font-size: 17px; flex-grow: 1; }
.step-out {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin-top: 26px; padding: 8px 14px 8px 12px; border-radius: 980px;
  background: #fff; font-size: 14px; font-weight: 500; color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.step-out svg, .promise svg {
  fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.step-out svg { width: 16px; height: 16px; }

.promises {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: clamp(56px, 8vw, 96px);
  background: #0b2d2b; border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}
.promise {
  background: #123b38; border-radius: var(--radius-sm);
  padding: 26px 24px 28px;
}
.promise svg {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 20px;
  border-radius: 50%; background: rgba(32, 182, 165, .14); stroke: var(--accent-light);
}
.promise strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: #f5f5f7; }
.promise span { display: block; color: #a1a1a6; font-size: 15px; margin-top: 6px; line-height: 1.45; }

/* ---------- O nas ---------- */
.statement { font-size: clamp(32px, 5vw, 56px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.about-text { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; color: var(--ink-2); font-size: 18px; }

/* ---------- Pytania ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 48px 24px 0; font-size: clamp(18px, 2vw, 21px); font-weight: 600; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg); transition: transform .3s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { color: var(--ink-2); font-size: 17px; padding: 0 48px 26px 0; max-width: 720px; }

/* ---------- Kontakt ---------- */
.contact .section-lead { max-width: 620px; margin-left: auto; margin-right: auto; }
.contact-area { margin-top: 14px; font-size: 17px; font-weight: 500; color: var(--accent); }
.contact-actions { margin-top: 40px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stopka ---------- */
.footer { background: var(--bg-gray); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; padding-bottom: 22px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; }
.footer a:hover { color: var(--ink); }

/* ---------- Animacje przy przewijaniu ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .dot-ok { animation: none; }
  .card:hover { transform: none; }
}

/* ---------- Responsywność ---------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .card-dark ul { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step:not(:last-child)::after { top: auto; bottom: -21px; right: 50%; margin: 0 -6px 0 0; transform: rotate(135deg); }
  .promises { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 40px; height: 40px; margin-right: -8px; padding: 0 9px;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .3s; }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .nav-links {
    position: fixed; top: 52px; left: 0; right: 0; height: calc(100vh - 52px); height: calc(100dvh - 52px);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px 22px; background: #fff;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; }
  .nav.open { background: #fff; }
  .nav-links a { font-size: 26px; font-weight: 600; padding: 12px 0; opacity: 1; width: 100%; border-bottom: 1px solid #ececf0; }
  .nav-links .nav-cta { background: none; color: var(--accent); padding: 12px 0; border-radius: 0; }

  .bento { grid-template-columns: 1fr; }
  .about-text { grid-template-columns: 1fr; gap: 16px; }
  .faq-item p { padding-right: 0; }
  .panel-body { padding: 20px; }
  .risks li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero-actions .btn { min-width: 200px; }
  .contact-actions .btn { width: 100%; }
}

@media (max-width: 420px) {
  .tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .tile { padding: 12px; }
  .tile strong { font-size: 18px; }
  .promises { grid-template-columns: 1fr; }
}
