:root {
  --bg: #ffffff;
  --fg: #0f172a;
  --card: #ffffff;
  --muted: #f5f7fb;
  --muted-fg: #64748b;
  --border: #e6eaf2;
  --accent: #e9eefc;
  --accent-fg: #2a4fbf;
  --primary: #2a4fbf;
  --primary-2: #5b8bf0;
  --primary-fg: #ffffff;
  --gradient-primary: linear-gradient(135deg, #2a4fbf, #5b8bf0);
  --gradient-soft: linear-gradient(180deg, #fbfcff, #eef2fb);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 8px 24px -12px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 4px 24px -8px rgba(42, 79, 191, 0.28);
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230,234,242,0.6);
  padding: 0 24px;
}
.site-header .row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.nav-desktop { display: none; align-items: center; gap: 28px; }
.nav-desktop a { font-size: 14px; font-weight: 500; color: rgba(15,23,42,0.8); transition: color .15s; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--primary); }
.btn-cta-header { display: none; }


.menu-toggle { padding: 8px; border-radius: 6px; }
@media (min-width: 768px) { .btn-cta-header { display: inline-flex; } }
@media (min-width: 1200px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
}
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; max-width: 1200px; margin: 0 auto; }
.mobile-nav a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; font-weight: 500; }
.mobile-nav a:hover { background: var(--accent); }
.mobile-nav .btn { margin-top: 8px; display: block; text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 600; transition: transform .15s, background .15s, color .15s; }
.btn-primary { background: var(--gradient-primary); color: var(--primary-fg); box-shadow: var(--shadow-soft); }
.btn-primary:hover { transform: scale(1.03); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: var(--bg); padding: 10px 22px; }
.btn-outline:hover { background: var(--primary); color: var(--primary-fg); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--gradient-soft); padding: 24px; }
.hero-grid { display: grid; gap: 48px; align-items: center; padding: 64px 0; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; padding: 96px 0; } }
.eyebrow { display: inline-flex; align-items: center; background: var(--accent); color: var(--accent-fg); padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.hero h1 { font-size: clamp(32px, 5vw, 60px); font-weight: 700; letter-spacing: -.02em; margin-top: 24px; }
.hero p.lead { margin-top: 24px; max-width: 560px; font-size: 18px; color: var(--muted-fg); }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.text-gradient { background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================
   ORBIT FIX (PRO VERSION)
========================= */

.orbit {
  position: relative;
  width: min(720px, 100%);
  max-width: 720px;
  aspect-ratio: 1;
  margin: 0 auto;

  overflow: visible;
  padding: 0px;
  box-sizing: border-box;
}

/* rings */
.orbit .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(42,79,191,0.2);
}

.orbit .ring.r1 { inset: 0; }
.orbit .ring.r2 { inset: 12%; }
.orbit .ring.r3 {
  inset: 28%;
  border-style: solid;
  border-color: rgba(42,79,191,0.1);
}

/* center */
.orbit .logo-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(70px, 18vw, 128px);
  height: clamp(70px, 18vw, 128px);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.orbit .logo-mark img {
  width: 100%;
  height: 100%;
  animation: spinSlow 30s linear infinite;
  filter: drop-shadow(0 8px 24px rgba(42,79,191,0.35));
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

/* item wrapper */
.orbit-item{
    position:absolute;
    transform:translate(-50%,-50%);
    width:max-content;
    max-width:170px;
    z-index:5;
}

/* CARD FIX — najważniejsze */
.orbit-card {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px 10px;

  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);

  animation: float 6s ease-in-out infinite;

  /* 🔥 FIX TEXT CUTTING */
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* float animation fix (ważne!) */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* icon */
.orbit-card .ico {
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 10px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

/* text block FIX */
.orbit-card .meta {
  display: flex;
  flex-direction: column;

  min-width: 0;
}

/* 🔥 KLUCZ: ellipsis zamiast ucinania */
.orbit-card .meta .t,
.orbit-card .meta .s {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orbit-card .meta .t {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.1;
}

.orbit-card .meta .s {
  font-size: 10px;
  color: var(--muted-fg);
}

/* MOBILE FIX */
@media (max-width: 768px) {

  .orbit-item {
    max-width: 42vw;
  }

  .orbit-card {
    padding: 6px 8px;
    gap: 8px;
  }

  .orbit-card .meta .t {
    font-size: 11px;
  }

  .orbit-card .meta .s {
    font-size: 9px;
  }
}

/* small phones */
@media (max-width: 480px) {

  .orbit {
    max-width: 92vw;
  }

  .orbit-card .ico {
    width: 26px;
    height: 26px;
  }

  .orbit-card .meta .t {
    font-size: 10px;
  }

  .orbit-card .meta .s {
    font-size: 9px;
  }
}

/* safety */
html, body {
  overflow-x: hidden;
}



/* Stats */
.stats-wrap { padding: 24px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); padding: 40px; } }
.stat { display: flex; align-items: flex-start; gap: 16px; }
.stat .ico { width: 48px; height: 48px; background: var(--accent); color: var(--primary); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat .val { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
@media (min-width: 768px) { .stat .val { font-size: 36px; } }
.stat .lbl { margin-top: 4px; font-size: 14px; color: var(--muted-fg); }

/* Telefony */
@media (max-width: 480px) {

  .stats {
    gap: 16px;
    padding: 8px;
  }

  .stat {
    gap: 5px;
  }

  .stat .ico {
    width: 32px;
    height: 32px;
  }

  .stat .val {
    font-size: 24px;
  }

  .stat .lbl {
    font-size: 10px;
    line-height: 1.3;
  }

}

/* Section heading */
.section { padding: 24px 0; }
.section-soft { background: var(--gradient-soft); }
.section-head { text-align: center; padding:34px; }
.section-head .kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--primary); }
.section-head h2 { margin-top: 12px; font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
.section-head .bar { margin: 16px auto 0; height: 2px; width: 64px; background: var(--gradient-primary); }

/* Service cards */
.cards { margin-top: 48px; display: grid; gap: 20px; grid-template-columns: 1fr; padding: 24px; }
@media (min-width: 640porbitx) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: flex; flex-direction: column; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-card); transition: transform .2s, border-color .2s, box-shadow .2s; height: 100%; }
.card:hover { transform: translateY(-4px); border-color: rgba(42,79,191,0.4); box-shadow: var(--shadow-soft); }
.card .ico { width: 48px; height: 48px; background: var(--accent); color: var(--primary); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.card:hover .ico { background: var(--gradient-primary); color: var(--primary-fg); }
.card h3 { margin-top: 20px; font-size: 18px; font-weight: 600; }
.card p { margin-top: 8px; font-size: 14px; color: var(--muted-fg); line-height: 1.6; }
.card .arrow { margin-top: 24px; align-self: flex-start; width: 36px; height: 36px; background: var(--accent); color: var(--primary); border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.card:hover .arrow { background: var(--gradient-primary); color: var(--primary-fg); }

/* Process */
.process { position: relative; margin-top: 64px; padding: 24px; }
.process .line { display: none; position: absolute; left: 0; right: 0; top: 24px; height: 1px; background: linear-gradient(to right, transparent, rgba(42,79,191,0.3), transparent); }
@media (min-width: 768px) { .process .line { display: block; } }
.steps { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { text-align: center; }
.step .n { margin: 0 auto; width: 48px; height: 48px; border: 2px solid var(--primary); background: var(--bg); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.step h3 { margin-top: 20px; font-size: 16px; font-weight: 600; }
.step p { margin-top: 8px; font-size: 14px; color: var(--muted-fg); line-height: 1.6; }

/* CTA */
.cta { padding: 24px; }
.cta-box { position: relative; overflow: hidden; padding: 32px; border: 1px solid var(--border); border-radius: 24px; background: var(--gradient-soft); }
@media (min-width: 768px) { .cta-box { padding: 48px; } }
.cta-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 768px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
.cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (min-width: 768px) { .cta-side { align-items: flex-end; } }

/* Subpage hero */
.sub-hero-grid { display: grid; gap: 48px; align-items: center; padding: 64px 0; }
@media (min-width: 1024px) { .sub-hero-grid { grid-template-columns: 1.4fr 1fr; padding: 96px 0; } }
.sub-orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 380px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.sub-orbit .ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(42,79,191,0.2); }
.sub-orbit .ring.a { inset: 0; }
.sub-orbit .ring.b { inset: 14%; }
.sub-orbit .ring.c { inset: 30%; border-style: solid; border-color: rgba(42,79,191,0.1); }
.sub-orbit .core { width: 128px; height: 128px; border-radius: 24px; background: var(--gradient-primary); color: var(--primary-fg); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft); }

/* Bullets */
.bullets-section { background: var(--gradient-soft); padding: 80px 0; }
.bullets-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .bullets-grid { grid-template-columns: 1fr 1fr; } }
.bullets { display: grid; gap: 12px; }
.bullet { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-card); font-size: 14px; }
.bullet .check { flex-shrink: 0; width: 24px; height: 24px; background: var(--gradient-primary); color: var(--primary-fg); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding:24px }
.footer-grid { display: grid; gap: 40px; padding: 48px 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h3 { font-size: 14px; font-weight: 600; }
.footer-grid ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted-fg); }
.footer-grid a:hover { color: var(--primary); }
.footer-grid .row-with-ico { display: flex; align-items: center; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom .row { display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 12px; color: var(--muted-fg); }
@media (min-width: 768px) { .footer-bottom .row { flex-direction: row; } }

/* Contact */
.contact-grid { display: grid; gap: 40px; padding: 24px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-list { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.contact-list a, .contact-list .item { display: flex; align-items: flex-start; gap: 12px; color: var(--fg); }
.contact-list a:hover { color: var(--primary); }
.contact-list .ico-box { width: 40px; height: 40px; background: var(--accent); color: var(--primary); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.icon { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-22 { width: 22px; height: 22px; }
.icon-18 { width: 18px; height: 18px; }
.icon-16 { width: 16px; height: 16px; }
.icon-14 { width: 14px; height: 14px; }
.icon-56 { width: 56px; height: 56px; }

@media (prefers-reduced-motion: reduce) {
  .orbit .logo-mark img, .orbit-card { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

.cta-phone-icon {
    display: none;
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {

    .btn-cta-header {
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-cta-header .cta-text {
        display: none;
    }

    .btn-cta-header .cta-phone-icon {
        display: block;
    }
}



@media (max-width: 767px) {

    .phone-cta {
        display: flex !important;
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
    }

    .phone-cta .cta-text {
        display: none;
    }

    .phone-cta .cta-phone-icon {
        display: block;
        width: 20px;
        height: 20px;
        fill: currentColor;
    }
}

.cta-phone-icon {
    fill: currentColor;
}


.orbit {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  overflow: hidden;
}