/* Biuro Rachunkowe Kontelia – arkusz stylów
   Układ i ton wzorowane na hm-soft.pl, własna paleta (morska zieleń). */

:root {
  --color-primary: #0f8a7e;
  --color-primary-dark: #0b6b62;
  --color-primary-light: #e3f4f1;
  --color-accent: #f2a93b;
  --color-text: #1f2937;
  --color-text-light: #5b6472;
  --color-text-muted: #9ca3af;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f9f9;
  --color-bg-dark: #0f1f24;
  --color-border: #e2e8e8;
  --gradient-hero: linear-gradient(135deg, #0a3d3a 0%, #0f6f66 100%);
  --font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius-md: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgb(15 31 36 / 0.06);
  --shadow-md: 0 6px 16px -6px rgb(15 31 36 / 0.16);
  --shadow-lg: 0 24px 48px -20px rgb(15 31 36 / 0.28);
  --container-max: 1160px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img, svg { max-width: 100%; }

a { color: var(--color-primary-dark); }
a:hover { color: var(--color-primary); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 1rem; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-primary-dark); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* ---------- Nagłówek ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--color-text); }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.logo-sub { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-light); }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a:not(.btn) {
  padding: 0.5rem 0.85rem; border-radius: var(--radius-md);
  text-decoration: none; color: var(--color-text); font-weight: 500; font-size: 0.95rem;
}
.nav a:not(.btn):hover { background: var(--color-bg-alt); color: var(--color-primary-dark); }
.nav a[aria-current="page"] { color: var(--color-primary-dark); background: var(--color-primary-light); }
.nav .btn { margin-left: 0.6rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 1px solid var(--color-border); border-radius: var(--radius-md); cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--color-text); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.4rem; border-radius: var(--radius-md); border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-outline { border-color: var(--color-primary); color: var(--color-primary-dark); background: transparent; }
.btn-outline:hover { background: var(--color-primary-light); }
.btn-light { background: #fff; color: var(--color-primary-dark); }
.btn-light:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
.btn-ghost { border-color: rgb(255 255 255 / 0.55); color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / 0.12); color: #fff; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.92rem; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--color-bg-alt) 0%, #fff 100%); padding: 4.5rem 0 3.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.9rem; margin-bottom: 1.25rem;
  background: var(--color-primary-light); color: var(--color-primary-dark);
  border-radius: var(--radius-full); font-size: 0.85rem; font-weight: 600;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.hero h1 em { font-style: normal; color: var(--color-primary); }
.lead { font-size: 1.125rem; color: var(--color-text-light); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 2.25rem; }

.facts { display: flex; flex-wrap: wrap; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.facts strong { display: block; font-size: 1.6rem; font-weight: 700; color: var(--color-primary-dark); line-height: 1.2; }
.facts span { font-size: 0.9rem; color: var(--color-text-light); }

/* makieta „terminy” */
.mock {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; gap: 6px; padding: 0.7rem 1rem; background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7dede; }
.mock-bar i:first-child { background: #f08a7b; } .mock-bar i:nth-child(2) { background: var(--color-accent); } .mock-bar i:nth-child(3) { background: #5cc0a4; }
.mock-body { padding: 1.25rem; }
.mock-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.9rem; font-weight: 600; }
.mock-title small { font-weight: 500; color: var(--color-text-light); }
.term { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0; border-top: 1px solid var(--color-border); }
.term-day {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--color-primary-light); color: var(--color-primary-dark);
  border-radius: var(--radius-md); font-weight: 700;
}
.term-text { flex: 1; min-width: 0; }
.term-text b { display: block; font-size: 0.95rem; }
.term-text span { font-size: 0.82rem; color: var(--color-text-light); }
.term-ok { flex: none; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: var(--radius-full); background: #e6f6ee; color: #17744a; }
.term-ok.wait { background: #fdf1dc; color: #8a5a06; }

/* ---------- Sekcje ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 44rem; margin: 0 auto 2.75rem; text-align: center; }
.section-head p { color: var(--color-text-light); font-size: 1.08rem; margin: 0; }
.eyebrow { display: block; margin-bottom: 0.6rem; color: var(--color-primary-dark); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
a.card { text-decoration: none; color: inherit; display: block; }
a.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--color-primary); }
.card p { color: var(--color-text-light); margin: 0; font-size: 0.97rem; }
.card .more { display: inline-block; margin-top: 1rem; color: var(--color-primary-dark); font-weight: 600; font-size: 0.93rem; }
.icon {
  width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--color-primary-light); color: var(--color-primary-dark); border-radius: var(--radius-md);
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split p { color: var(--color-text-light); }

.checklist { list-style: none; margin: 1.5rem 0; padding: 0; }
.checklist li { position: relative; padding: 0.45rem 0 0.45rem 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.72rem; width: 1.15rem; height: 1.15rem; border-radius: 50%;
  background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.checklist b { font-weight: 600; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  background: var(--color-primary); color: #fff; border-radius: 50%; font-weight: 700;
}
.steps p { color: var(--color-text-light); font-size: 0.96rem; margin: 0; }

.panel { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow-md); }
.panel h3 { margin-bottom: 0.75rem; }
.panel dl { margin: 0; }
.panel dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-light); margin-top: 1rem; }
.panel dt:first-child { margin-top: 0; }
.panel dd { margin: 0.15rem 0 0; }

/* ---------- Nagłówek podstrony ---------- */
.page-hero { background: var(--gradient-hero); color: #fff; padding: 3.5rem 0; }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.6rem); margin-bottom: 0.6rem; }
.page-hero p { margin: 0; max-width: 42rem; color: rgb(255 255 255 / 0.85); font-size: 1.08rem; }

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2.25rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- CTA ---------- */
.cta { background: var(--gradient-hero); color: #fff; padding: 4rem 0; text-align: center; }
.cta p { max-width: 38rem; margin: 0 auto 1.75rem; color: rgb(255 255 255 / 0.85); font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- Stopka ---------- */
.footer { background: var(--color-bg-dark); color: #b9c4c7; padding: 3.5rem 0 1.5rem; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer .logo { color: #fff; margin-bottom: 1rem; }
.footer .logo-sub { color: #8fa1a5; }
.footer h4 { margin: 0 0 0.9rem; color: #fff; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.45rem; }
.footer a { color: #b9c4c7; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer address { font-style: normal; }
.footer-legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.12); font-size: 0.82rem; color: #8fa1a5; }
.footer-legal p { margin: 0 0 0.4rem; }

/* ---------- Responsywność ---------- */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0.15rem;
    padding: 0.75rem 1.5rem 1.25rem; background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 0.5rem 0 0; }
  .hero { padding: 3rem 0 2.5rem; }
  .section { padding: 3.25rem 0; }
  .grid-2, .grid-3, .grid-4, .steps, .footer-grid { grid-template-columns: 1fr; }
  .facts { gap: 1.25rem 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
