/* =========================================
   BIURO RACHUNKOWE BILANS — example demo site
   Premium one-pager: navy + emerald, modern CSS
   ========================================= */

:root {
  --navy-900: #0B1F33;
  --navy-800: #0F2A43;
  --navy-700: #16395C;
  --ink: #1B2733;
  --muted: #5A6B7C;
  --line: #E3E9EF;
  --soft: #F4F7FA;
  --white: #FFFFFF;
  --emerald-600: #0E8F6B;
  --emerald-500: #16A37A;
  --emerald-100: #E2F4EE;
  --amber-500: #F5B301;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; display: inline-block; }
a { color: var(--emerald-600); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--emerald-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--navy-800); color: var(--white);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- Demo bar ---------- */
.demo-bar { background: var(--navy-900); color: #C7D4E0; font-size: 13px; }
.demo-bar__inner { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.demo-bar a { color: #E8EFF5; text-decoration: none; margin-right: 12px; }
.demo-bar a:hover { text-decoration: underline; }
.demo-bar b { color: var(--amber-500); letter-spacing: 0.04em; }
.demo-bar__lang { margin-left: auto; display: flex; gap: 4px; }
.demo-bar__lang a {
  padding: 2px 8px; border: 1px solid #33475C; border-radius: 5px; margin: 0;
  font-weight: 700; font-size: 12px; color: #C7D4E0;
}
.demo-bar__lang a[aria-current="true"] { background: var(--emerald-500); border-color: var(--emerald-500); color: var(--white); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-800); }
.nav__logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--navy-800); color: var(--emerald-500);
  display: grid; place-items: center; flex: none;
}
.nav__logo-name { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.nav__logo-name small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.nav__links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav__links a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav__links a:hover { background: var(--soft); color: var(--navy-800); }
.nav__cta {
  background: var(--emerald-600) !important; color: var(--white) !important;
  margin-left: 8px;
}
.nav__cta:hover { background: var(--emerald-500) !important; }
.nav__burger {
  display: none; margin-left: auto; flex-direction: column; gap: 5px;
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; padding: 10px;
}
.nav__burger span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #133454 100%); color: var(--white); }
.hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.badge {
  display: inline-block; background: rgba(22, 163, 122, 0.16);
  color: #7FE0C2; border: 1px solid rgba(22, 163, 122, 0.4);
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; font-weight: 800;
}
.hero__title .accent { color: var(--emerald-500); }
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #C7D4E0; max-width: 34em; margin: 0 0 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; color: #C7D4E0; font-size: 0.92rem; }
.hero__trust b { color: var(--white); font-size: 1.05rem; display: block; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--emerald-500); color: var(--white); }
.btn-primary:hover { background: var(--emerald-600); transform: translateY(-1px); }
.btn-outline { color: var(--navy-800); border-color: var(--line); background: transparent; }
.btn-outline:hover { border-color: var(--navy-800); }
/* ghost buttons on the dark hero */
.hero .btn { color: var(--white); border-color: rgba(255, 255, 255, 0.35); background: transparent; }
.hero .btn:hover { border-color: rgba(255, 255, 255, 0.7); }

/* Hero card (decorative) */
.hero__card {
  background: var(--white); color: var(--ink); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.hero__card-head { display: flex; gap: 6px; padding: 12px 16px; background: #F1F4F8; }
.hero__card-dot { width: 10px; height: 10px; border-radius: 50%; background: #D7DEE6; }
.hero__card-dot:first-child { background: #F5B301; }
.hero__card-body { padding: 18px 22px 24px; }
.hero__card-label { margin: 0 0 2px; font-size: 13px; color: var(--muted); font-weight: 600; }
.hero__card-value { margin: 0 0 16px; font-size: 40px; font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em; }
.hero__card-row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.hero__card-row b { color: var(--emerald-600); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section--soft { background: var(--soft); }
.section__tag {
  display: inline-block; color: var(--emerald-600); font-weight: 800;
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px;
}
.section__title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 0 0 12px; color: var(--navy-800); letter-spacing: -0.02em; }
.section__title .accent { color: var(--emerald-600); }
.section__lead { color: var(--muted); max-width: 42em; margin: 0 0 36px; font-size: 1.05rem; }
.section__note { color: var(--muted); font-size: 0.85rem; margin-top: 18px; }

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card__ico {
  width: 44px; height: 44px; border-radius: 11px; background: var(--emerald-100);
  color: var(--emerald-600); display: grid; place-items: center; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--navy-800); }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0 0 26px; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy-800); display: flex; align-items: center; gap: 10px; }
.steps h3::before {
  content: counter(step, decimal-leading-zero);
  font-size: 13px; font-weight: 800; color: var(--emerald-600);
  background: var(--emerald-100); border-radius: 8px; padding: 4px 8px; flex: none;
}
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.note-box {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--emerald-500);
  border-radius: 10px; padding: 14px 18px; color: var(--muted); font-size: 0.95rem;
}
.note-box b { color: var(--navy-800); }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative;
}
.plan--hot { border: 2px solid var(--emerald-500); }
.plan__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--emerald-500); color: var(--white); font-size: 12px; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.plan__name { margin: 0 0 4px; font-size: 1.05rem; color: var(--muted); font-weight: 700; }
.plan__price { margin: 0 0 18px; font-size: 2.1rem; font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em; }
.plan__price span { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; color: var(--muted); font-size: 0.93rem; }
.plan li { padding: 7px 0 7px 26px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--emerald-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 13l4 4L19 7' fill='none' stroke='%230E8F6B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat;
}
.plan .btn { margin-top: auto; }

/* Quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.quote blockquote { margin: 0 0 12px; font-size: 0.98rem; color: var(--ink); }
.quote figcaption { font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* FAQ */
.faq__item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; background: var(--white); overflow: hidden; }
.faq__item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--navy-800);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 600; color: var(--emerald-600); flex: none;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 0.96rem; max-width: 60em; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact__info .section__title { margin-bottom: 14px; }
.contact__info > p { color: var(--muted); margin: 0 0 22px; }
.contact__list { display: grid; gap: 14px; margin: 0; }
.contact__list div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: baseline; }
.contact__list dt { font-weight: 700; color: var(--navy-800); font-size: 0.92rem; }
.contact__list dd { margin: 0; color: var(--ink); }
.note { color: var(--muted); font-size: 0.83rem; }
.contact__form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.contact__form h3 { margin: 0 0 4px; color: var(--navy-800); }
.contact__form > .note { display: block; margin: 0 0 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; color: var(--navy-800); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--white); font: inherit; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--emerald-100); border-color: var(--emerald-500); }

/* Footer */
.foot { background: var(--navy-900); color: #C7D4E0; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding-top: 40px; padding-bottom: 44px; }
.foot b { color: var(--white); }
.foot a { color: #7FE0C2; }
.foot__meta { text-align: right; }
.foot__meta span, .foot__made { font-size: 0.88rem; }
.foot__made { margin: 8px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .plan { min-height: auto; }
}
@media (max-width: 768px) {
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 12px 20px 18px;
    box-shadow: 0 16px 30px rgba(11, 31, 51, 0.12);
  }
  .nav__links.open { display: flex; }
  .nav__links a { width: 100%; padding: 12px 14px; }
  .nav__cta { margin-left: 0; }
  .nav__burger { display: flex; }
  .hero__inner { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .hero__card { max-width: 420px; }
  .grid, .steps, .quotes, .contact { grid-template-columns: 1fr; }
  .demo-bar__lang { margin-left: 0; }
  .foot__meta { text-align: left; }
  .section { padding: 56px 0; }
}

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