/* =========================================================
   Milestone – style strony
   Kolory i font z KV: materiały/KV Milestone - wersja lekka.md
   ========================================================= */

:root {
  /* Kolory KV */
  --blue: #4da5cb;          /* niebieski główny */
  --blue-dark: #377898;     /* niebieski ciemny */
  --blue-light: #dceaf3;    /* niebieski jasny */
  --brown: #765b40;         /* brąz – etykiety, pierścienie */
  --beige: #e0d7d0;         /* beż / taupe – duże koła */
  --beige-light: #d7cbbe;
  --beige-dark: #a18c77;
  --white: #ffffff;

  /* Kolory pomocnicze */
  --text: #24323a;
  --text-muted: #5a6a73;
  --bg: var(--white);
  --bg-tinted: #f5f8fa;

  /* Typografia */
  --font: "Afacad Flux", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Układ */
  --container: 1160px;
  --radius: 16px;
  --gap: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; color: var(--blue-dark); }
h3 { font-size: 1.3rem; font-weight: 600; }
p  { margin: 0 0 1em; }

a { color: var(--blue-dark); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Układ ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
.container-narrow { max-width: 820px; }

.section { padding: 88px 0; }
.section-tinted { background: var(--bg-tinted); }
.section-lead { max-width: 720px; color: var(--text-muted); font-size: 1.15rem; margin-bottom: 40px; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-small { padding: 8px 20px; font-size: 1rem; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { border-color: var(--blue-dark); color: var(--blue-dark); background: transparent; }
.btn-secondary:hover { background: var(--blue-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--blue-dark); }
.btn-light:hover { background: var(--blue-light); }

/* ---------- Logo (tymczasowe) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--blue);
}
.logo-ring {
  width: 22px; height: 22px;
  border: 4px solid var(--brown);
  border-radius: 50%;
}
.logo-text { font-size: 1.6rem; font-weight: 700; letter-spacing: .01em; }
.logo-light { color: var(--white); }
.logo-light .logo-ring { border-color: var(--beige); }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--blue-light);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; }
.main-nav a:not(.btn):hover { color: var(--blue); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 10px;
  width: 24px; height: 2px;
  background: var(--blue-dark);
  content: "";
  transition: transform .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -7px; }
.nav-toggle-bar::after  { left: 0; top: 7px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 600;
  color: var(--brown);
}
.lead { font-size: 1.25rem; color: var(--text-muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* Koła i kropki – motyw z KV */
.hero-visual { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: end; }
.circle { position: absolute; border-radius: 50%; }
.circle-beige { width: 78%; height: 78%; top: 0; right: 0; background: var(--beige); }
.circle-blue  { width: 52%; height: 52%; bottom: 4%; left: 6%; background: var(--blue); }
.circle-light { width: 30%; height: 30%; top: 12%; left: 4%; background: var(--blue-light); }
.dots {
  position: absolute; right: 2%; bottom: 0;
  width: 46%; height: 40%;
  background-image: radial-gradient(var(--brown) 2.5px, transparent 3px);
  background-size: 16px 16px;
  opacity: .55;
}

/* ---------- Karty ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 40px;
}
.card {
  background: var(--white);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 32px;
}
.card p { color: var(--text-muted); margin: 0; }
.card-accent { border-top: 6px solid var(--blue); }

/* ---------- Kroki ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step-number {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-weight: 700; font-size: 1.3rem;
  margin-bottom: 20px;
}
.step-meta { color: var(--brown); font-weight: 600; margin-bottom: .6em; }
.step p:last-child { color: var(--text-muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 28px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 32px 22px 0;
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem; color: var(--blue);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--text-muted); padding-bottom: 22px; margin: 0; }

/* ---------- CTA ---------- */
.cta { background: var(--blue); color: var(--white); text-align: center; }
.cta h2 { color: var(--white); }
.cta-inner { max-width: 760px; }
.cta p { font-size: 1.15rem; margin-bottom: 32px; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--blue-dark); color: var(--white); padding: 48px 0; }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px;
}
.tagline { margin: 0; font-size: 1.2rem; }
.copyright { margin: 0; opacity: .75; font-size: .95rem; }

/* ---------- Responsywność ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--blue-light);
    padding: 8px 16px 20px;
    display: none;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 0; }
  .main-nav .btn { margin-top: 8px; text-align: center; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 300px; justify-self: center; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
