/* =========================================================
   VELOTAX ON-LINE — Design system
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy-900: #081c30;
  --navy-800: #0b2a4a;
  --navy-700: #123a63;
  --navy-600: #1c4d7c;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-100: #e7f9ee;
  --bg: #f7f9fc;
  --bg-alt: #eef2f8;
  --white: #ffffff;
  --text: #1f2937;
  --text-muted: #5b6572;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(11, 42, 74, 0.06), 0 1px 3px rgba(11, 42, 74, 0.08);
  --shadow-md: 0 8px 24px rgba(11, 42, 74, 0.10);
  --shadow-lg: 0 20px 45px rgba(11, 42, 74, 0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1160px;
  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-800);
  line-height: 1.2;
  margin: 0 0 .6em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text); }
.lead { font-size: 1.15rem; color: var(--text-muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--bg); }
.section-navy {
  background: linear-gradient(155deg, var(--navy-900), var(--navy-700));
  color: #fff;
}
.section-navy h2, .section-navy h3, .section-navy p { color: #fff; }
.section-navy .text-muted { color: rgba(255,255,255,.72); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-600);
  background: var(--green-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-navy .eyebrow { background: rgba(34,197,94,.16); color: #6be79a; }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-500); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--navy-700); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: #fff; transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--navy-800); }
.btn-white:hover { background: var(--green-100); transform: translateY(-2px); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo-link { display: flex; align-items: center; }
.logo-link img { height: 42px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 600;
  font-size: .96rem;
  color: var(--navy-700);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green-600); border-color: var(--green-600); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Panel Klienta — dropdown z dwoma linkami logowania */
.client-login { position: relative; }
.client-login-toggle { display: inline-flex; align-items: center; gap: 6px; }
.client-login-caret { font-size: .7rem; transition: transform .15s ease; }
.client-login:hover .client-login-caret,
.client-login:focus-within .client-login-caret,
.client-login.open .client-login-caret { transform: rotate(180deg); }
.client-login-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 8px;
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 60;
}
.client-login:hover .client-login-menu,
.client-login:focus-within .client-login-menu,
.client-login.open .client-login-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.client-login-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy-700);
  border-bottom: none;
}
.client-login-menu a:hover { background: var(--bg); color: var(--green-600); }

.nav-mobile-login { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    inset: 68px 0 0 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-actions .client-login { display: none; }
  .nav-mobile-login { display: list-item; }
  .nav-mobile-login-label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-muted);
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
}

/* Hero */
.hero {
  padding: 96px 0 80px;
  background: radial-gradient(circle at 78% 18%, rgba(34,197,94,.10), transparent 45%),
              linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust { display: flex; gap: 28px; margin-top: 42px; flex-wrap: wrap; }
.hero-trust div strong { display: block; font-family: var(--font-head); font-size: 1.5rem; color: var(--navy-800); }
.hero-trust div span { font-size: .85rem; color: var(--text-muted); }

.hero-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 34px;
  border: 1px solid var(--border);
}
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hero-card li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; color: var(--navy-800); }
.check-dot {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Grids & cards */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--green-100);
  color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.card ul { padding-left: 1.1em; color: var(--text-muted); margin: 0; }
.card ul li { margin-bottom: 6px; }

.badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-600);
}

/* Steps */
.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: 62px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Testimonials */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial .stars { color: var(--green-600); margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-head);
}

/* Pricing */
.price-card { text-align: left; position: relative; }
.price-card.featured { border-color: var(--green-500); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.price-card .price { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; color: var(--navy-800); margin: 6px 0 4px; }
.price-card .price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.price-card ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-muted); font-size: .95rem; }
.price-card ul li::before { content: "✓"; color: var(--green-600); font-weight: 700; }
.price-tag {
  position: absolute; top: -14px; right: 24px;
  background: var(--green-600); color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: 5px 12px; border-radius: 999px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-800);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--green-600);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--text-muted); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: #fff; }

/* JDG teaser (secondary, lower-emphasis banner) */
.jdg-teaser {
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.jdg-teaser .eyebrow { margin-bottom: 8px; }
.jdg-teaser h2 { font-size: 1.4rem; margin: 0 0 6px; }
.jdg-teaser p { margin: 0; max-width: 560px; }
.jdg-teaser .btn { flex-shrink: 0; }

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.78);
  padding: 64px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a:hover { color: var(--green-500); }
.footer-logo {
  display: inline-flex;
  align-items: center;
  background: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.footer-logo img { height: 32px; display: block; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; font-size: .85rem; flex-wrap: wrap; gap: 10px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Breadcrumb / page hero (inner pages) */
.page-hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--bg), #fff);
}
.page-hero .eyebrow { margin-bottom: 14px; }

/* Forms */
.form-grid { display: grid; gap: 18px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form-row-2 { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy-800); margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: .96rem;
  background: #fff;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.form-note { font-size: .82rem; color: var(--text-muted); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 4px; }

/* Honeypot antyspamowy — ukryty przed ludźmi, "widoczny" dla botów wypełniających każde pole */
.antispam-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.contact-info-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-info-list .card-icon { margin-bottom: 0; }

.map-placeholder {
  border-radius: var(--radius-md);
  border: 1px dashed var(--border);
  background: var(--bg-alt);
  min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  text-align: center;
  padding: 24px;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--green-100);
  color: var(--green-600);
  font-weight: 600;
}
.form-status.visible { display: block; }

/* Blog */
.blog-card { display: flex; flex-direction: column; height: 100%; }
.blog-card .badge { margin-bottom: 14px; align-self: flex-start; }
.blog-card .date { font-size: .82rem; color: var(--text-muted); margin-bottom: 10px; }
.blog-card h3 { margin-bottom: 10px; }
.blog-card .read-more { margin-top: auto; font-weight: 700; color: var(--green-600); padding-top: 14px; }

article.post {
  max-width: 760px;
  margin: 0 auto;
}
article.post h2 { margin-top: 1.6em; }
article.post h3 { margin-top: 1.4em; }
article.post ul, article.post ol { color: var(--text); padding-left: 1.3em; }
article.post li { margin-bottom: .4em; }
article.post blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--green-500);
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--navy-800);
  font-weight: 600;
}
.post-meta { display: flex; gap: 16px; align-items: center; color: var(--text-muted); font-size: .9rem; margin-bottom: 8px; flex-wrap: wrap; }
.post-cta {
  margin-top: 48px;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
}

/* Utility */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy-800); color: #fff; padding: 12px 18px;
  z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
