/* ==========================================================================
   Kancelaria Notarialna Bartosz Krzysztofowicz — Tarnów
   Arkusz stylów strony statycznej (czysty CSS, bez frameworków)
   ========================================================================== */

/* ---------- Zmienne globalne (kolory, fonty) ---------- */
:root {
  /* Granat (ciemne sekcje, stopka) */
  --navy-950: #091220;
  --navy-900: #0e1a2b;
  --navy-800: #16263d;
  --navy-700: #20344f;
  --navy-600: #2c4566;

  /* Mosiądz / złoto (akcenty) */
  --brass: #b08d57;
  --brass-light: #cba96f;
  --brass-pale: #e4d3b4;
  --brass-dark: #8f7040;

  /* Kość słoniowa (jasne tła) */
  --ivory: #faf7f2;
  --ivory-dark: #f1ebe0;

  /* Tekst pomocniczy */
  --slate-600: #475569;
  --slate-700: #334155;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 0.625rem;
  --header-h: 4rem;
}

/* ---------- Reset / baza ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--ivory);
  color: var(--slate-700);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

/* Obrazki responsywne; height:auto pozwala działać aspect-ratio w CSS
   (atrybuty width/height w HTML pełnią tylko funkcję wskazówki proporcji) */
img {
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

::selection {
  background: rgb(176 141 87 / 0.25);
  color: var(--navy-950);
}

/* Ikony SVG — rozmiar dziedziczony po kontekście */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* ---------- Narzędzia ---------- */
.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Sekcje z przesunięciem pod sticky nagłówek przy kotwicach */
section[id] {
  scroll-margin-top: 5rem;
}

/* Etykieta nad tytułem sekcji (np. KANCELARIA NOTARIALNA • TARNÓW) */
.overline {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--brass);
}

/* Podwójna cienka linia — ornament pod tytułami */
.double-rule {
  height: 5px;
  width: 6rem;
  border-top: 1px solid rgb(176 141 87 / 0.55);
  border-bottom: 1px solid rgb(176 141 87 / 0.55);
}

/* Nagłówek sekcji */
.section-head {
  max-width: 42rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head.center .double-rule {
  margin-inline: auto;
}
.section-title {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy-950);
}
.section-head .double-rule {
  margin-top: 1.5rem;
}
.section-lead {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-600);
}
.section-head.dark .section-title {
  color: var(--ivory);
}
.section-head.dark .section-lead {
  color: rgb(250 247 242 / 0.7);
}

/* ---------- Animacja pojawiania się przy przewijaniu ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal--visible {
  opacity: 1;
  transform: none;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.5rem;
  padding-inline: 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.btn-lg {
  height: 2.75rem;
  padding-inline: 2rem;
  font-size: 1rem;
}
.btn-brass {
  background: var(--brass);
  color: var(--navy-950);
}
.btn-brass:hover {
  background: var(--brass-light);
}
.btn-navy {
  background: var(--navy-950);
  color: var(--ivory);
}
.btn-navy:hover {
  background: var(--navy-800);
}
.btn-outline-light {
  background: transparent;
  border-color: rgb(250 247 242 / 0.3);
  color: var(--ivory);
}
.btn-outline-light:hover {
  border-color: var(--brass);
  background: rgb(176 141 87 / 0.1);
  color: var(--brass-light);
}
.btn .icon {
  width: 1rem;
  height: 1rem;
}
.btn-lg .icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ==========================================================================
   NAGŁÓWEK
   ========================================================================== */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgb(9 18 32 / 0.9);
  border-bottom-color: rgb(176 141 87 / 0.2);
  box-shadow: 0 10px 30px -12px rgb(9 18 32 / 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Logo / nazwa */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgb(176 141 87 / 0.5);
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--brass);
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
.brand:hover .brand-badge {
  background: var(--brass);
  color: var(--navy-950);
}
.brand-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ivory);
}
.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--brass-light);
}

/* Nawigacja desktopowa */
.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(250 247 242 / 0.75);
  transition: color 0.2s ease;
}
.nav-desktop a:hover {
  color: var(--brass-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-phone {
  display: none;
}

/* Przycisk hamburgera */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}
.menu-toggle:hover {
  background: var(--navy-800);
  color: var(--brass-light);
}
.menu-toggle .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* ---------- Menu mobilne (wysuwany panel) ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgb(9 18 32 / 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu.open .mobile-menu-overlay {
  opacity: 1;
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: 19rem;
  max-width: 85vw;
  height: 100%;
  padding: 1.25rem 1.5rem 2rem;
  background: var(--navy-950);
  border-left: 1px solid rgb(176 141 87 / 0.2);
  color: var(--ivory);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}
.mobile-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgb(250 247 242 / 0.1);
}
.mobile-menu-title {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--ivory);
}
.mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ivory);
  cursor: pointer;
}
.mobile-menu-close:hover {
  background: var(--navy-800);
  color: var(--brass-light);
}
.nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1.5rem;
}
.nav-mobile a {
  padding: 0.75rem;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgb(250 247 242 / 0.85);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.nav-mobile a:hover {
  background: var(--navy-800);
  color: var(--brass-light);
}
.mobile-menu .btn {
  width: 100%;
  margin-top: 2rem;
}

/* ==========================================================================
   HERO — zdjęcie budynku kancelarii pod granatowym gradientem
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950) url("../img/budynek.jpg") center 30% / cover no-repeat;
}
/* Nakładka: ciemniej z lewej (tekst) i u dołu (punkty zaufania) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(9 18 32 / 0.9), transparent 45%),
    linear-gradient(100deg, rgb(9 18 32 / 0.96) 0%, rgb(9 18 32 / 0.86) 45%, rgb(9 18 32 / 0.55) 75%, rgb(9 18 32 / 0.45) 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom right, rgb(176 141 87 / 0.14), transparent 50%);
  pointer-events: none;
}

/* Na urządzeniach mobilnych nakładka bardziej jednolita (tekst na całej szerokości) */
@media (max-width: 1023px) {
  .hero {
    background-position: center 25%;
  }
  .hero::before {
    background:
      linear-gradient(to top, rgb(9 18 32 / 0.92), transparent 55%),
      linear-gradient(165deg, rgb(9 18 32 / 0.95) 0%, rgb(9 18 32 / 0.78) 100%);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 8rem;
  padding-bottom: 5rem;
}
.hero-content {
  max-width: 48rem;
}
.hero-title {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: 2.25rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.hero-title em {
  display: block;
  font-style: italic;
  color: var(--brass-light);
}
.hero-lead {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgb(250 247 242 / 0.7);
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* Punkty zaufania */
.hero-trust {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgb(250 247 242 / 0.1);
}
.trust-item {
  display: flex;
  gap: 1rem;
}
.trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 1px solid rgb(176 141 87 / 0.4);
  border-radius: 50%;
  color: var(--brass-light);
}
.trust-title {
  font-weight: 600;
  color: var(--ivory);
}
.trust-text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgb(250 247 242 / 0.6);
}

/* ==========================================================================
   O KANCELARII
   ========================================================================== */
.about {
  background: var(--ivory);
  padding-block: 5rem;
}
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}
.about-copy p {
  margin-top: 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-600);
}
.about-copy p strong {
  font-weight: 600;
  color: var(--navy-950);
}
.about-copy .section-head + p,
.about-copy > p:first-of-type {
  margin-top: 2rem;
}

/* Blok z nazwiskiem notariusza */
.notary-sign {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--brass);
}
.notary-sign-photo {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}
.notary-sign-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--navy-950);
}
.notary-sign-role {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--brass-dark);
}

/* Kompozycja zdjęć: sala konferencyjna + poczekalnia */
.about-photos {
  position: relative;
  padding-bottom: 2.5rem;
}
/* Odsunięta mosiężna rama za głównym zdjęciem */
.about-photos::before {
  content: "";
  position: absolute;
  top: -1rem;
  right: -1rem;
  bottom: 3.5rem;
  left: 14%;
  border: 1px solid rgb(176 141 87 / 0.5);
  border-radius: 1rem;
}
.about-photo-main {
  position: relative;
  z-index: 1;
  display: block;
  width: 80%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 24px 60px -28px rgb(14 26 43 / 0.45);
}
.about-photo-secondary {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 38%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 6px solid var(--ivory);
  border-radius: 0.75rem;
  box-shadow: 0 16px 40px -20px rgb(14 26 43 / 0.4);
}

/* Karta z cechami — na całą szerokość pod siatką tekst/zdjęcia */
.about-card {
  margin-top: 3.5rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgb(14 26 43 / 0.1);
  border-radius: 1rem;
  box-shadow: 0 20px 60px -30px rgb(14 26 43 / 0.35);
}
.about-card .double-rule {
  width: 5rem;
}
.about-features {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
}
.about-features li {
  display: flex;
  gap: 1rem;
}
.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border: 1px solid rgb(176 141 87 / 0.4);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--brass-dark);
}
.feature-title {
  font-weight: 600;
  color: var(--navy-950);
}
.feature-text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-600);
}

/* Doświadczenie i kwalifikacje notariusza — oś czasu */
.experience {
  margin-top: 3.5rem;
}
.experience-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  list-style: none;
}
.experience-list li {
  position: relative;
  padding-left: 1.75rem;
  border-left: 1px solid rgb(176 141 87 / 0.35);
}
.experience-list li::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  top: 0.4em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--brass);
}
.experience-title {
  font-weight: 600;
  color: var(--navy-950);
}
.experience-text {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--slate-600);
}

/* ==========================================================================
   CZYNNOŚCI NOTARIALNE
   ========================================================================== */
.services {
  background: var(--ivory-dark);
  padding-block: 5rem;
}
.services-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 3.5rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgb(14 26 43 / 0.1);
  border-radius: 1rem;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgb(176 141 87 / 0.6);
  box-shadow: 0 18px 45px -22px rgb(176 141 87 / 0.45);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgb(176 141 87 / 0.4);
  border-radius: 50%;
  background: var(--ivory);
  color: var(--brass-dark);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.service-card:hover .service-icon {
  background: var(--brass);
  color: var(--navy-950);
}
.service-title {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy-950);
}
.service-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-600);
}
.service-line {
  display: block;
  width: 2rem;
  height: 1px;
  margin-top: auto;
  background: rgb(176 141 87 / 0.5);
  transition: width 0.3s ease;
  transform: translateY(1.25rem);
}
.service-card:hover .service-line {
  width: 100%;
}

/* Notka o czynnościach poza kancelarią */
.services-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  max-width: 48rem;
  margin: 3rem auto 0;
  padding: 1.25rem;
  background: var(--ivory);
  border: 1px solid rgb(176 141 87 / 0.4);
  border-radius: 0.75rem;
}
.note-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgb(176 141 87 / 0.15);
  color: var(--brass-dark);
}
.services-note p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--slate-700);
}

/* ==========================================================================
   PRZEBIEG WIZYTY
   ========================================================================== */
.process {
  background: var(--ivory);
  padding-block: 5rem;
}
.process-steps {
  position: relative;
  display: grid;
  gap: 2.5rem;
  margin-top: 4rem;
}
.process-connector {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 1.75rem;
  height: 1px;
  background: linear-gradient(to right, transparent, rgb(176 141 87 / 0.5), transparent);
}
.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgb(176 141 87 / 0.6);
  border-radius: 50%;
  background: #fff;
  color: var(--brass-dark);
  box-shadow: 0 10px 25px -12px rgb(176 141 87 / 0.6);
}
.step-icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}
.step-number {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--brass-dark);
}
.step-title {
  margin-top: 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-950);
}
.step-text {
  margin-top: 0.5rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-600);
}

/* ==========================================================================
   OPŁATY
   ========================================================================== */
.fees {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  padding-block: 5rem;
}
.fees::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgb(176 141 87 / 0.12), transparent 55%);
  pointer-events: none;
}
.fees .container {
  position: relative;
}
.fees-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.fee-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: rgb(14 26 43 / 0.8);
  border: 1px solid rgb(250 247 242 / 0.15);
  border-radius: 1rem;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.fee-card:hover {
  transform: translateY(-4px);
  border-color: rgb(176 141 87 / 0.5);
}
.fee-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgb(176 141 87 / 0.5);
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--brass-light);
}
.fee-title {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ivory);
}
.fee-text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgb(250 247 242 / 0.65);
}

/* Pasek zachęty do wyceny */
.fees-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: linear-gradient(to right, var(--navy-900), var(--navy-800), var(--navy-900));
  border: 1px solid rgb(176 141 87 / 0.4);
  border-radius: 1rem;
}
.fees-cta-title {
  max-width: 42rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--ivory);
}
.fees-cta-title em {
  font-style: italic;
  color: var(--brass-light);
}
.fees-cta-text {
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgb(250 247 242 / 0.6);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  background: var(--ivory);
  padding-block: 5rem;
}
.faq .container {
  max-width: 48rem;
}
.faq-list {
  margin-top: 3rem;
}
.faq-item {
  border-bottom: 1px solid rgb(14 26 43 / 0.15);
}
.faq-item:first-child {
  border-top: 1px solid rgb(14 26 43 / 0.15);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding-block: 1.25rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: left;
  color: var(--navy-950);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question:hover,
.faq-item[open] .faq-question {
  color: var(--brass-dark);
}
.faq-chevron {
  flex-shrink: 0;
  color: var(--brass-dark);
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  padding-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-600);
}

/* ==========================================================================
   AKTUALNOŚCI
   ========================================================================== */
.news {
  background: var(--ivory-dark);
  padding-block: 5rem;
}
.news-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgb(14 26 43 / 0.1);
  border-radius: 1rem;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgb(176 141 87 / 0.6);
  box-shadow: 0 18px 45px -22px rgb(176 141 87 / 0.45);
}
.news-card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.news-tag {
  padding: 0.3rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brass-dark);
  background: rgb(176 141 87 / 0.12);
  border-radius: 999px;
}
.news-date {
  font-size: 0.75rem;
  color: var(--slate-600);
}
.news-title {
  margin-top: 0.9rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy-950);
  transition: color 0.2s ease;
}
.news-card:hover .news-title {
  color: var(--brass-dark);
}
.news-excerpt {
  margin-top: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--slate-600);
}
.news-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brass-dark);
}
.news-link .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 0.25s ease;
}
.news-card:hover .news-link .icon {
  transform: translateX(4px);
}

/* ==========================================================================
   ARTYKUŁ (podstrony aktualności)
   ========================================================================== */
.article-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-950);
  padding-top: 8rem;
  padding-bottom: 3.5rem;
}
.article-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgb(176 141 87 / 0.12), transparent 55%);
  pointer-events: none;
}
.article-hero .container {
  position: relative;
  max-width: 48rem;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brass-light);
  transition: color 0.2s ease;
}
.article-back:hover {
  color: var(--ivory);
}
.article-back .icon {
  width: 1rem;
  height: 1rem;
}
.article-hero .news-tag {
  color: var(--brass-light);
  background: rgb(176 141 87 / 0.15);
}
.article-title {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.article-date {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgb(250 247 242 / 0.6);
}

/* Treść artykułu — czytelna kolumna */
.article-body {
  max-width: 45rem;
  margin-inline: auto;
  padding-block: 3.5rem;
}
.article-body > p {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--slate-700);
}
.article-body > p:first-child {
  margin-top: 0;
}
.article-body .article-lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--navy-950);
}
.article-body h2 {
  margin-top: 2.75rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  line-height: 1.25;
  color: var(--navy-950);
}
.article-body h3 {
  margin-top: 2rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy-950);
}
.article-body strong {
  font-weight: 600;
  color: var(--navy-950);
}
.article-body ul {
  margin-top: 1.25rem;
}
.article-body li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--slate-700);
}
.article-body li + li {
  margin-top: 0.6rem;
}
.article-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.6rem;
  height: 2px;
  background: var(--brass);
}

/* Wezwanie do kontaktu na końcu artykułu */
.article-cta {
  max-width: 45rem;
  margin: 0 auto 5rem;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(to right, var(--navy-900), var(--navy-800), var(--navy-900));
  border: 1px solid rgb(176 141 87 / 0.4);
  border-radius: 1rem;
}
.article-cta-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--ivory);
}
.article-cta-text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgb(250 247 242 / 0.6);
}
.article-cta .btn {
  margin-top: 1.5rem;
}

/* Blok autora artykułu */
.article-author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 45rem;
  margin: 0 auto 3rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid rgb(14 26 43 / 0.1);
  border-left: 3px solid var(--brass);
  border-radius: 0.75rem;
}
.article-author-photo {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}
.article-author-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brass-dark);
}
.article-author-name {
  margin-top: 0.15rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--navy-950);
}
.article-author-role {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--slate-600);
}

/* Linki w treści artykułu i blok powiązanych poradników */
.article-body a {
  color: var(--brass-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover {
  color: var(--brass);
}
.article-body > p.article-related {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(14 26 43 / 0.12);
  font-size: 0.9rem;
}
.article-body > p.article-legal-note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgb(176 141 87 / 0.28);
  border-left: 3px solid var(--brass);
  border-radius: 0.5rem;
  background: rgb(241 235 224 / 0.55);
  color: var(--slate-700);
  font-size: 0.86rem;
  line-height: 1.65;
}

/* Okruszki (breadcrumbs) w nagłówku artykułu */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.breadcrumb a {
  color: var(--brass-light);
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: var(--ivory);
}
.breadcrumb-sep {
  color: rgb(250 247 242 / 0.35);
}
.breadcrumb-current {
  font-weight: 500;
  color: rgb(250 247 242 / 0.6);
}

/* Diagram SVG w treści artykułu */
.article-figure {
  margin-top: 1.75rem;
}
.article-cover {
  margin: 2rem 0 2.25rem;
}
.article-cover picture {
  display: block;
}
.article-cover img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  box-shadow: 0 18px 42px -26px rgb(14 26 43 / 0.38);
}
.article-figure svg {
  display: block;
  width: 100%;
  height: auto;
}
.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
}
.article-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--slate-600);
}

/* Tabele porównawcze w artykułach */
.article-table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.55;
}
.article-body thead th {
  padding: 0.7rem 0.85rem;
  background: var(--navy-950);
  color: var(--ivory);
  font-weight: 600;
  text-align: left;
}
.article-body thead th:first-child {
  border-radius: 0.5rem 0 0 0;
}
.article-body thead th:last-child {
  border-radius: 0 0.5rem 0 0;
}
.article-body tbody td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgb(14 26 43 / 0.1);
  color: var(--slate-700);
  vertical-align: top;
}
.article-body tbody td:first-child {
  font-weight: 600;
  color: var(--navy-950);
}


/* ==========================================================================
   KONTAKT
   ========================================================================== */
.contact {
  background: var(--ivory);
  padding-block: 5rem;
}
.contact-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 3.5rem;
}

/* Mapa + zdjęcie korytarza obok siebie */
.contact-media {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}
.contact-media .contact-map {
  margin-top: 0;
}
.contact-photo {
  display: block;
  width: 100%;
  height: 18rem;
  object-fit: cover;
  border: 1px solid rgb(14 26 43 / 0.1);
  border-radius: 1rem;
  box-shadow: 0 20px 60px -30px rgb(14 26 43 / 0.35);
}

/* Karty informacyjne */
.info-cards {
  display: grid;
  gap: 1rem;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgb(14 26 43 / 0.1);
  border-radius: 0.75rem;
}
a.info-card {
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
a.info-card:hover {
  transform: translateY(-2px);
  border-color: rgb(176 141 87 / 0.6);
  box-shadow: 0 8px 20px -10px rgb(14 26 43 / 0.25);
}
.info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border: 1px solid rgb(176 141 87 / 0.4);
  border-radius: 50%;
  background: #fff;
  color: var(--brass-dark);
}
.info-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brass-dark);
}
.info-line {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-950);
}

/* Formularz kontaktowy */
.contact-form {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgb(14 26 43 / 0.1);
  border-radius: 1rem;
  box-shadow: 0 20px 60px -30px rgb(14 26 43 / 0.35);
}
.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--navy-950);
}
.form-note {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}
.form-row {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.form-field {
  margin-top: 1.25rem;
}
.form-row .form-field {
  margin-top: 0;
}
.form-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy-950);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  color: var(--navy-950);
  background: #fff;
  border: 1px solid rgb(14 26 43 / 0.15);
  border-radius: var(--radius);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgb(176 141 87 / 0.25);
}
.form-field textarea {
  resize: vertical;
  min-height: 7.5rem;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f7040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}
.form-submit {
  margin-top: 1.75rem;
  width: 100%;
}

/* Mapa Google */
.contact-map {
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid rgb(14 26 43 / 0.1);
  border-radius: 1rem;
  box-shadow: 0 20px 60px -30px rgb(14 26 43 / 0.35);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 22rem;
  border: 0;
}

/* ==========================================================================
   STOPKA
   ========================================================================== */
.site-footer {
  background: var(--navy-950);
  color: var(--ivory);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
.footer-brand p {
  margin-top: 1.25rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgb(250 247 242 / 0.6);
}
.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--brass-light);
}
.footer-contact {
  margin-top: 1rem;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgb(250 247 242 / 0.75);
}
.footer-contact li + li {
  margin-top: 0.75rem;
}
.footer-contact .icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.125rem;
  color: var(--brass);
}
.footer-contact a {
  transition: color 0.2s ease;
}
.footer-contact a:hover {
  color: var(--brass-light);
}
.footer-phones {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-phones span {
  color: rgb(250 247 242 / 0.4);
}
.footer-nip {
  color: rgb(250 247 242 / 0.6);
}
.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
  margin-top: 1rem;
}
.footer-nav a {
  font-size: 0.875rem;
  color: rgb(250 247 242 / 0.7);
  transition: color 0.2s ease;
}
.footer-nav a:hover {
  color: var(--brass-light);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 1.75rem;
  border-top: 1px solid rgb(250 247 242 / 0.1);
  font-size: 0.75rem;
  text-align: center;
  color: rgb(250 247 242 / 0.45);
}

/* ==========================================================================
   PUNKTY PRZEŁOMANIA (responsywność)
   ========================================================================== */

/* Małe tablety i większe telefony */
@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
  .header-phone {
    display: inline-flex;
  }
  .hero-inner {
    padding-top: 9rem;
  }
  .hero-title {
    font-size: 3rem;
  }
  .hero-lead,
  .section-lead {
    font-size: 1.125rem;
  }
  .hero-ctas {
    flex-direction: row;
    align-items: center;
  }
  .article-hero {
    padding-top: 10rem;
    padding-bottom: 4.5rem;
  }
  .article-title {
    font-size: 2.75rem;
  }
  .hero-trust {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-note {
    align-items: center;
    padding: 1.5rem;
  }
  .services-note p {
    font-size: 1rem;
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-submit {
    width: auto;
    padding-inline: 2.5rem;
  }
  .contact-map iframe {
    height: 26rem;
  }
  .footer-bottom {
    flex-direction: row;
    text-align: left;
  }
}

/* Tablety */
@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  :root {
    --header-h: 4.5rem;
  }
  .container {
    padding-inline: 2rem;
  }
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .hero-inner {
    padding-top: 11rem;
    padding-bottom: 7rem;
  }
  .hero-title {
    font-size: 3.9rem;
  }
  .hero-trust {
    margin-top: 6rem;
  }
  .section-title {
    font-size: 2.75rem;
  }
  .about,
  .services,
  .process,
  .fees,
  .faq,
  .news,
  .contact {
    padding-block: 7rem;
  }
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }
  .about-features {
    grid-template-columns: repeat(4, 1fr);
  }
  .about-card {
    padding: 2rem;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  .process-connector {
    display: block;
  }
  .fees-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .fees-cta {
    padding: 2rem 2.5rem;
  }
  .fees-cta-title {
    font-size: 1.5rem;
  }
  .contact-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .contact-media {
    grid-template-columns: 5fr 2fr;
    align-items: stretch;
  }
  .contact-media .contact-map,
  .contact-media .contact-map iframe {
    height: 100%;
    min-height: 26rem;
  }
  .contact-photo {
    height: 100%;
    min-height: 26rem;
  }
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-info-col {
    grid-column: span 2;
  }
  .contact-form-col {
    grid-column: span 3;
  }
  .contact-form {
    padding: 2rem;
  }
}

/* Szerokie monitory — karty kontaktowe w dwie kolumny */
@media (min-width: 1280px) {
  .info-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Ograniczona animacja (preferencje użytkownika) ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .service-card,
  .fee-card,
  a.info-card {
    transition: none;
  }
}
