/* === KROJE PISMA (lokalnie, bez Google) — start ===
   Wygenerowane automatycznie — pliki .woff2 leza w katalogu fonts/.
   Powod: wczytywanie z fonts.gstatic.com wysylalo adres IP odwiedzajacego
   do Google, zanim ktokolwiek wyrazil zgode (RODO). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url('../fonts/playfair-display-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* === KROJE PISMA — koniec === */

/* ============================================
   Biuro Rachunkowe Danuta Lauterbach — pilaksiegowa
   Koncepcja 1: klasyka — granat + złoto
   ============================================ */

:root {
  --navy: #1a2b4a;
  --navy-dark: #142338;
  --gold: #c9973c;
  --gold-light: #d9a441;
  /* Złoto na JASNYM tle nie spełnia kontrastu (2,2–2,5:1), dlatego do tekstu
     i grafik na bieli używamy ciemniejszych wariantów. Na granacie zostaje
     oryginalne złoto — tam kontrast jest w porządku. */
  --gold-text: #906b28;   /* 4.54:1 na jasnym tle — tekst */
  --gold-mark: #c08b27;   /* 3.02:1 na bieli — gwiazdki i inne grafiki */
  --ink: #252b38;
  --muted: #5c6474;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --line: #e6e8ee;
  --radius: 6px;
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }

section { scroll-margin-top: 84px; }

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img { width: 46px; height: 46px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--navy);
  letter-spacing: 0.2px;
}
.brand-text small {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 500;
}

.main-nav a:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  /* 6px dopelnienia dawalo przycisk 36x28 — ponizej zalecanych 44x44
     dla celu dotykowego (Apple HIG / Material). */
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
}

/* ---------- Przyciski ---------- */

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-gold {
  background: var(--gold-light);
  color: var(--navy-dark);
}
.btn-gold:hover { background: var(--gold); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #ffffff;
}
.btn-ghost:hover { border-color: #ffffff; background: rgba(255, 255, 255, 0.08); }

.btn-nav { padding: 9px 18px; }

/* ---------- Hero ze sliderem ---------- */

.hero {
  position: relative;
  min-height: 620px;
  height: 78vh;
  max-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-slides .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.hero-slides .slide.is-active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(17, 27, 49, 0.62), rgba(17, 27, 49, 0.5) 55%, rgba(17, 27, 49, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero-kicker {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.18;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 20px;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-dots button::after {
  content: '';
  position: absolute;
  inset: -12px;
}

.hero-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  /* .hero-content ma z-index:2 i rozciaga sie na cala sekcje — przy rownym
     z-index jego akapit przykrywal kropki i nie dalo sie ich klikac. */
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  /* Kropka zostaje mala wizualnie, ale pole trafienia palcem powiekszamy
     niewidoczna warstwa do ~34px (WCAG 2.5.8 wymaga min. 24x24). */
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease;
}

.hero-dots button.is-active {
  background: var(--gold-light);
  transform: scale(1.25);
}

/* ---------- Pasek zaufania ---------- */

.trustbar {
  background: var(--navy);
  padding: 26px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.trust-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  /* pasek jest granatowy — jasne złoto daje tu 6.27:1 */
  color: var(--gold-light);
}

.trust-label {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Sekcje ---------- */

.section { padding: 88px 0; }

.section-alt { background: var(--bg-alt); }

.section-kicker {
  color: var(--gold-text);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.kicker-gold { color: var(--gold-light); }

.section h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--navy);
  margin-bottom: 26px;
  line-height: 1.25;
}

.section h2.h-light { color: #ffffff; }

.section p + p { margin-top: 16px; }

#o-mnie p { color: var(--muted); font-size: 16.5px; }

/* ---------- Usługi ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 14px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.service-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(201, 151, 60, 0.13);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- Opinie ---------- */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 14px;
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}

.stars {
  color: var(--gold-text);
  font-size: 16px;
  letter-spacing: 3px;
  margin-bottom: 14px;
}

.review-card p {
  font-size: 14.5px;
  color: var(--ink);
  flex: 1;
}

.review-card footer {
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

.reviews-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Kontakt ---------- */

.section-navy { background: var(--navy-dark); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-lead { color: rgba(255, 255, 255, 0.8); }

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: grid;
  /* minmax(0,…) zamiast 1fr: dlugi adres e-mail nie mogl sie zlamac i rozpychal
     strone na najwezszych telefonach. */
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  overflow-wrap: anywhere;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--gold-light);
  padding-top: 3px;
}

.contact-list a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}

.contact-list a:hover { text-decoration-color: var(--gold-light); }

.contact-map {
  margin-top: 44px;
  position: relative;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
}

/* ── Zaślepka mapy (RODO) ──
   Przykrywa iframe do czasu zgody. Znika, gdy skrypt doda .is-map-loaded. */
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  text-align: center;
  border-radius: var(--radius);
  background: var(--bg-alt);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
}
.is-map-loaded .map-consent { display: none; }
.map-consent__pin { font-size: 2rem; line-height: 1; }
.map-consent__address {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.map-consent__note {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
  margin: 0;
}
.map-consent__note a { color: var(--gold-text); }  /* zaślepka ma jasne tło */
.map-consent__btn {
  margin-top: 8px;
  padding: 12px 28px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.map-consent__btn:hover { background: var(--navy-dark); }
.map-consent__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Na telefonach iframe ma tylko 300px wysokości — zaślepka musi się w tym zmieścić,
   inaczej przycisk zostaje przycięty. */
@media (max-width: 700px) {
  .contact-map:not(.is-map-loaded) { min-height: 320px; }
  .map-consent { padding: 20px; gap: 6px; }
  .map-consent__pin { font-size: 1.6rem; }
  .map-consent__address { font-size: 1.02rem; }
  .map-consent__note { font-size: 0.82rem; line-height: 1.45; }
  .map-consent__btn { padding: 10px 22px; font-size: 0.95rem; }
}

/* ---------- Polityka prywatności ---------- */

.legal { padding: 60px 24px 90px; }

.legal h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 42px);
  color: var(--navy);
  margin-bottom: 6px;
}

.legal-date {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 30px;
}

.legal h2 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--navy);
  margin: 34px 0 10px;
}

.legal p { margin-bottom: 12px; }

.legal ul {
  padding-left: 22px;
  margin: 10px 0 14px;
}

.legal a { color: var(--navy); }

/* ---------- Baner cookies ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.55;
  box-shadow: 0 12px 32px rgba(10, 18, 32, 0.35);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner a { color: var(--gold-light); }  /* baner ma ciemne, granatowe tło */

.cookie-banner .btn {
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 14px;
}

@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; }
}

/* ---------- Stopka ---------- */

.site-footer {
  background: #0f1a2c;
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.site-footer a { color: rgba(255, 255, 255, 0.75); text-decoration: none; }
.site-footer a:hover { color: #ffffff; }

/* ---------- Responsywność ---------- */

@media (max-width: 900px) {
  .services-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Hamburger wlaczal sie dopiero przy 640px, a poziome menu nie miesci sie juz
   od ok. 750px w dol — miedzy 641 a 740 px „O mnie" i przycisk z numerem
   lamaly sie na dwie linie. Prog samego menu podniesiony do 780px. */
@media (max-width: 780px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 24px 22px;
    gap: 16px;
  }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .services-grid, .reviews-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero { min-height: 540px; height: auto; padding: 96px 0; }
  .section { padding: 60px 0; }
  .footer-inner { flex-direction: column; gap: 8px; }
  .contact-map { margin-top: 32px; }
  .contact-map iframe { height: 300px; }
}

/* Dostępność: mniej ruchu */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides .slide { transition: none; }
}

/* --- Link „Przejdź do treści" (WCAG 2.4.1 Bypass Blocks) ---
   Niewidoczny dopóki nie dostanie fokusu z klawiatury; wtedy wjeżdża
   w lewy górny róg, żeby dało się pominąć nawigację jednym Tabem. */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  background: var(--navy-dark);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ── Bardzo waskie telefony: dlugie slowa nie moga rozpychac ukladu ──
   Przy 320px nieprzerywalne wyrazy ("Rachunkowosci", nazwiska w naglowkach)
   wychodzily poza kontener i byly przycinane. */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  overflow-wrap: break-word;
}
