/* =====================================================================
   Marta Leasing — redesign „ciepły personal brand"
   Paleta: kremowa biel (#FAF7F2) + głębokie bordo (#6B2737), grafit tekstu
   Typografia: Fraunces (nagłówki, charakterny serif) + Inter (treść)
   Idea: strona człowieka z osobowością, nie korporacji — ciepła, nie kiczowata
   ===================================================================== */

:root {
  --cream: #F0EDE7;
  --white: #ffffff;
  --burgundy: #6b2737;
  --burgundy-dark: #4f1d29;
  --burgundy-soft: #f1e4e6;
  --ink: #2b2522;
  --muted: #80756d;
  --line: #e9e1d6;

  /* aliasy starych nazw → nowa paleta (utrzymują spójność reguł) */
  --navy: var(--ink);
  --navy-mid: var(--burgundy);
  --gold: var(--burgundy);
  --gold-dark: var(--burgundy-dark);
  --gold-light: var(--burgundy-soft);
  --text: var(--ink);
  --bg: var(--cream);
  --bg-alt: var(--white);
  --blue: var(--burgundy);
  --blue-dark: var(--ink);
  --blue-light: var(--burgundy-soft);
  --yellow: var(--burgundy);
  --yellow-dark: var(--burgundy-dark);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  background: var(--cream);
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink); font-weight: 900; line-height: 1.15;
  letter-spacing: -.01em;
}

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

/* ---------- Typografia sekcji ---------- */
.section-head { max-width: 680px; margin: 0 auto 52px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--burgundy);
  margin-bottom: 16px;
}
.section-head--light h2 { color: var(--ink); }
.eyebrow--light { color: var(--burgundy); }
.section-sub--light { color: var(--muted); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-block; padding: 15px 34px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent; border-radius: 999px;
  cursor: pointer; text-align: center;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--burgundy); color: #fff; box-shadow: 0 6px 18px rgba(107,39,55,.22); }
.btn--primary:hover { background: var(--burgundy-dark); box-shadow: 0 9px 22px rgba(107,39,55,.30); }
.btn--secondary { background: transparent; color: var(--burgundy); border-color: var(--burgundy); }
.btn--secondary:hover { background: var(--burgundy); color: #fff; }
.btn--block { display: block; width: 100%; }

/* ---------- NAGŁÓWEK (jasny, lekki) ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream); backdrop-filter: none;
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; height: 72px; gap: 30px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--burgundy); color: var(--cream);
  font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.05rem;
  border-radius: 50%;
}
.brand__name { font-family: 'Fraunces', serif; font-weight: 900; color: var(--ink); font-size: 1.2rem; }

.menu { display: flex; gap: 30px; margin-left: auto; }
.menu a {
  font-weight: 500; color: var(--ink); font-size: .95rem;
  padding: 6px 0; position: relative; transition: color .15s;
}
.menu a:hover { color: var(--burgundy); }
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 1.5px; background: var(--burgundy);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s;
}
.menu a:hover::after, .menu a.is-active::after { transform: scaleX(1); }

.header__tel {
  font-weight: 700; color: var(--burgundy); font-size: 1.02rem;
  padding-left: 24px; border-left: 1px solid var(--line);
}
.header__tel:hover { color: var(--burgundy-dark); }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
  margin-left: auto;
}
.menu-toggle span {
  width: 26px; height: 2.5px; background: var(--ink);
  border-radius: 2px; transition: transform .2s, opacity .15s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- HERO (jasny, redakcyjny) ---------- */
.hero {
  position: relative;
  min-height: 620px;
  background: url("assets/img/auto-luksus.jpg") center/cover no-repeat;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(60, 22, 31, .94) 0%,
    rgba(79, 29, 41, .80) 48%,
    rgba(79, 29, 41, .20) 100%
  );
}
.hero__inner {
  position: relative; z-index: 1;
  display: block;
  max-width: 720px;
  padding-block: 100px;
}
.hero__sub {
  color: var(--burgundy-soft);
  font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; font-size: .82rem; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: #fff; margin-bottom: 22px; line-height: 1.12; font-weight: 900;
}
/* desktop: „Leasing dopasowany do" w jednej linii, <br> łamie przed „Twojej firmy" */
@media (min-width: 768px) {
  .hero h1 { white-space: nowrap; }
}
.hero h1 em { font-style: italic; font-weight: 500; color: #eccfd5; }
.hero__lead { color: rgba(255,255,255,.82); font-size: 1.12rem; margin-bottom: 32px; max-width: 540px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* btn--secondary na ciemnym tle hero */
.hero .btn--secondary { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.hero .btn--secondary:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }


/* ---------- O MNIE ---------- */
.about { padding: 90px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about__inner {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: 56px; align-items: center;
}
.about__photo { position: relative; }
.about__photo img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 26px 54px -26px rgba(43,37,34,.45);
}
.about__inner--single {
  display: block;
  max-width: 820px; margin-inline: auto;
}
.about__text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 22px; max-width: 20ch; }
.about__text p { color: var(--muted); margin-bottom: 16px; }
.about__lead { font-size: 1.14rem; color: var(--ink) !important; font-weight: 500; }
.about__cta-text {
  margin-top: 28px; padding: 18px 22px 18px 24px;
  position: relative; overflow: hidden;
  background:
    linear-gradient(90deg, var(--burgundy) 0 4px, transparent 4px),
    var(--burgundy-soft);
  border-radius: 0 14px 14px 0;
  color: var(--ink) !important; font-weight: 500; font-size: 1.02rem; line-height: 1.6;
}
.about__cta-text::after {
  content: "„"; position: absolute; right: 10px; top: -14px;
  font-family: 'Fraunces', serif; font-size: 5rem; font-weight: 900;
  color: var(--burgundy); opacity: .1; line-height: 1;
}
.about__list { margin-top: 24px; }
/* lista atutów: czyste wiersze z ptaszkiem w kółku */
.about__list--check {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 15px 30px; margin: 26px 0;
}
.about__list.about__list--check li {
  border-bottom: 0; padding: 0 0 0 32px;
  font-weight: 600; font-size: .96rem; color: var(--ink); line-height: 1.4;
}
.about__list.about__list--check li::before {
  content: "✓"; display: grid; place-items: center;
  left: 0; top: -1px; transform: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--burgundy); color: #fff; font-size: .72rem; font-weight: 900;
}
@media (max-width: 640px) {
  .about__list--check { grid-template-columns: 1fr; }
}
.about__list li {
  padding: 12px 0 12px 34px; position: relative;
  font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.about__list li:last-child { border-bottom: 0; }
.about__list li::before {
  content: "✦"; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--burgundy); font-weight: 900; font-size: 1rem;
}

/* ---------- GALERIA (kremowa, jasne karty) ---------- */
.gallery { padding: 90px 0; background: var(--cream); }
.gallery__grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

/* Układ bento: large-left, small-right, small-left, large-right, half, half */
.gallery__item:nth-child(1) { grid-column: span 8; }
.gallery__item:nth-child(2) { grid-column: span 4; }
.gallery__item:nth-child(3) { grid-column: span 4; }
.gallery__item:nth-child(4) { grid-column: span 8; }
.gallery__item:nth-child(5) { grid-column: span 6; }
.gallery__item:nth-child(6) { grid-column: span 6; }

.gallery__item {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery__item:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -14px rgba(43,37,34,.4); }

.gallery__item img {
  width: 100%; height: 100%; min-height: 240px;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.gallery__item:hover img { transform: scale(1.04); }

/* Caption overlay na dole zdjęcia */
.gallery__item figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 22px;
  background: linear-gradient(to top, rgba(20,12,14,.82) 0%, rgba(20,12,14,.35) 55%, transparent 100%);
  color: #fff;
}
.gallery__item h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.gallery__item span { font-size: .85rem; color: rgba(255,255,255,.78); }

/* ---------- FORMULARZ (biały) ---------- */
.form-section { padding: 90px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); }
.form {
  background: var(--cream); max-width: 760px; margin: 0 auto;
  padding: 40px; border-radius: 12px;
  border: 1px solid var(--line);
}
.form__row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; margin-bottom: 18px;
}
.form__field label {
  display: block; margin-bottom: 7px;
  font-weight: 600; color: var(--ink); font-size: .9rem;
}
.form__field input {
  width: 100%; padding: 13px 15px;
  font: inherit; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff; transition: border-color .15s, box-shadow .15s;
}
.form__field input:focus {
  outline: 0; border-color: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(107,39,55,.12);
}
.form__field input.invalid {
  border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12);
}
.form__check input.invalid { outline: 2px solid #c0392b; border-radius: 3px; }
.form__check {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 22px 0; font-size: .88rem; color: var(--muted);
  cursor: pointer;
}
.form__check input {
  margin-top: 4px; width: 18px; height: 18px;
  accent-color: var(--burgundy); flex-shrink: 0;
}
.form__status { margin-top: 14px; padding: 0; text-align: center; font-weight: 600; border-radius: 8px; }
.form__status.is-success { padding: 12px; background: #e7f3ec; color: #1c7a44; }
.form__status.is-error { padding: 12px; background: #fbeae9; color: #c0392b; }
.form__note { margin-top: 14px; font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- CUSTOM SELECT ---------- */
.csel { position: relative; }
.csel__btn {
  width: 100%; padding: 13px 15px;
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; text-align: left; gap: 8px;
  transition: border-color .15s, box-shadow .15s;
}
.csel__btn:focus { outline: 0; border-color: var(--burgundy); box-shadow: 0 0 0 3px rgba(107,39,55,.12); }
.csel__btn.invalid { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
.csel__val { flex: 1; }
.csel__val.is-ph { color: var(--muted); }
.csel__chevron { flex-shrink: 0; color: var(--muted); transition: transform .2s; }
.csel__btn[aria-expanded="true"] .csel__chevron { transform: rotate(180deg); }
.csel__list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1.5px solid var(--line);
  border-radius: 8px; box-shadow: 0 8px 28px rgba(43,37,34,.14);
  z-index: 200; list-style: none; overflow: hidden;
}
.csel__opt {
  padding: 12px 16px; cursor: pointer; color: var(--ink); font-size: .98rem;
  transition: background .12s;
}
.csel__opt.is-ph { color: var(--muted); }
.csel__opt:hover { background: var(--burgundy-soft); }
.csel__opt.is-selected { background: var(--burgundy); color: #fff; }

/* ---------- FAQ (kremowe) ---------- */
.faq { padding: 90px 0; background: var(--cream); }
.faq__tabs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-bottom: 36px;
}
.faq__tab {
  padding: 10px 22px; font: inherit;
  font-weight: 600; font-size: .9rem;
  background: var(--white); color: var(--muted);
  border: 1.5px solid var(--line); border-radius: 999px;
  cursor: pointer; transition: all .15s;
}
.faq__tab:hover { border-color: var(--burgundy); color: var(--burgundy); }
.faq__tab.is-active { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }

.faq__list { max-width: 820px; margin: 0 auto; }
.faq__item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 10px; overflow: hidden;
}
.faq__item summary {
  padding: 19px 24px; cursor: pointer;
  font-weight: 600; color: var(--ink); font-size: 1.02rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 300;
  color: var(--burgundy); transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- KONTAKT (biały, ciepłe karty) ---------- */
.contact { padding: 90px 0; background: var(--white); border-top: 1px solid var(--line); }
.contact__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; max-width: 900px; margin: 0 auto;
}
.contact__card {
  background: var(--cream); padding: 30px 26px;
  border: 1px solid var(--line); border-radius: 12px;
  text-align: center; display: block;
}
.contact__label {
  display: block; font-size: .74rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--burgundy); margin-bottom: 12px;
}
.contact__card strong { display: block; color: var(--ink); font-size: 1.2rem; margin-bottom: 6px; font-family: 'Fraunces', serif; }
.contact__card small { color: var(--muted); font-size: .88rem; }

/* ---------- STOPKA (głębokie bordo) ---------- */
.footer { background: var(--burgundy); color: rgba(255,255,255,.65); padding: 30px 0; font-size: .88rem; position: relative; overflow: hidden; }
.footer__inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap;
}
.footer__legal { max-width: 460px; text-align: right; opacity: .75; font-size: .82rem; }
.footer__watermark {
  font-family: 'Fraunces', serif; font-size: 5rem; font-weight: 900;
  color: rgba(255,255,255,.06); line-height: 1;
  pointer-events: none; user-select: none;
  position: absolute; right: 24px; bottom: -10px;
}
.footer__top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 12px 0 30px; border-bottom: 1px solid rgba(255,255,255,.14);
  align-items: center;
}
.footer__logo { font-family: 'Fraunces', serif; font-weight: 900; font-size: 1.3rem; color: #fff; }
.footer__role { color: rgba(255,255,255,.72); font-size: .9rem; margin-top: 2px; }
.footer__contact { margin-top: 12px; font-size: .92rem; color: rgba(255,255,255,.85); line-height: 1.9; }
.footer__contact a:hover { color: #fff; text-decoration: underline; }
.footer__company { justify-self: end; max-width: 360px; text-align: right; }
.footer__company img {
  width: 100%; border-radius: 8px; margin-left: auto;
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.5);
}
.footer__legal { margin-top: 12px; font-size: .74rem; color: rgba(255,255,255,.6); line-height: 1.6; text-align: right; }
.footer__inner { padding-top: 20px; }

/* ---------- BANDY BORDOWE (statement / insight) ---------- */
.statement, .insight {
  position: relative; color: #fff; padding: 92px 0; overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 42%),
    radial-gradient(90% 120% at 0% 100%, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 45%),
    var(--burgundy);
}
.statement__inner, .insight__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.eyebrow--onburgundy { color: var(--burgundy-soft); opacity: .85; }
.statement h2 {
  color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 26px; line-height: 1.16;
}
.statement__lead { color: rgba(255,255,255,.8); font-size: 1.12rem; margin-bottom: 16px; }
.statement__lead:last-child { margin-bottom: 0; }
/* wielki, editorialny cudzysłów nad cytatem */
.insight__inner::before {
  content: "„"; display: block;
  font-family: 'Fraunces', serif; font-weight: 900; font-style: italic;
  font-size: 7rem; line-height: .7; color: #fff; opacity: .16;
  margin-bottom: -6px;
}
.insight__quote {
  font-family: 'Fraunces', serif; font-weight: 900; font-style: italic;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: #fff;
  line-height: 1.2; margin: 6px 0 24px;
}
.insight__text { color: rgba(255,255,255,.8); font-size: 1.08rem; max-width: 620px; margin: 0 auto; }

/* ---------- PREZENTACJA (pełne slajdy, karuzela) ---------- */
.deck { padding: 90px 0; background: var(--cream); }
.deck__carousel { max-width: 960px; margin: 0 auto; }
.deck__carousel + .deck__label { margin-top: 64px; }
.deck__label {
  max-width: 960px; margin: 0 auto 22px;
  font-size: 1.15rem; color: var(--burgundy);
  padding-bottom: 12px; position: relative;
}
.deck__label::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 30px; height: 3px; border-radius: 2px; background: var(--burgundy);
}
.deck__viewport { position: relative; max-width: 960px; margin: 0 auto; }
.deck__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 0; border-radius: 14px; scroll-behavior: smooth;
  box-shadow: 0 24px 50px -24px rgba(43,37,34,.4);
  scrollbar-width: none;
}
.deck__track::-webkit-scrollbar { display: none; }
.deck__slide { flex: 0 0 100%; scroll-snap-align: center; }
.deck__slide img { width: 100%; height: auto; display: block; }
.deck__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line);
  color: var(--burgundy); font-size: 1.4rem; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 20px -6px rgba(43,37,34,.3);
  transition: background .2s, transform .15s;
}
.deck__btn:hover { background: var(--burgundy); color: #fff; }
.deck__btn:active { transform: translateY(-50%) scale(.94); }
.deck__btn--prev { left: -22px; }
.deck__btn--next { right: -22px; }
.deck__dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.deck__dot {
  width: 9px; height: 9px; border-radius: 50%; border: 0;
  background: var(--line); cursor: pointer; padding: 0; transition: background .2s, transform .2s;
}
.deck__dot.is-active { background: var(--burgundy); transform: scale(1.25); }
.deck__count { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 14px; }

/* ---------- RODZAJE LEASINGU ---------- */
.types { padding: 90px 0; background: var(--cream); }
.types__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.type-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; padding: 34px 32px;
  box-shadow: 0 12px 34px -26px rgba(43,37,34,.5);
}
.type-card h3 {
  font-size: 1.4rem; margin-bottom: 16px; padding-bottom: 16px; position: relative;
}
.type-card h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 36px; height: 3px; border-radius: 2px; background: var(--burgundy);
}
.type-card__who {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 500;
  color: var(--ink); font-size: 1.02rem; line-height: 1.5; margin-bottom: 22px;
}
.type-card ul { display: flex; flex-direction: column; gap: 13px; }
.type-card li { position: relative; padding-left: 22px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.type-card li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--burgundy); box-shadow: 0 0 0 4px var(--burgundy-soft);
}

/* ---------- CO MOŻNA FINANSOWAĆ (pogrupowane) ---------- */
.finance { padding: 90px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.finance__groups {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 34px; max-width: 1000px; margin: 0 auto;
}
.finance__group h3 {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 1.12rem; color: var(--ink); margin-bottom: 18px;
  padding-bottom: 12px; position: relative;
}
.finance__group h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 28px; height: 2px; background: var(--burgundy);
}
.finance__group ul { display: flex; flex-direction: column; gap: 12px; }
.finance__group li { position: relative; padding-left: 18px; color: var(--ink); font-size: .96rem; line-height: 1.45; }
.finance__group li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--burgundy); opacity: .55;
}

/* ---------- FAKTY / KIEDY SIĘ ODEZWAĆ ---------- */
.facts { padding: 90px 0; background: var(--cream); }
.facts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.fact-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; padding: 32px 30px;
  box-shadow: 0 12px 34px -26px rgba(43,37,34,.5);
}
.fact-card h3 { font-size: 1.28rem; margin-bottom: 16px; padding-bottom: 14px; position: relative; }
.fact-card h3::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 34px; height: 3px; border-radius: 2px; background: var(--burgundy);
}
.fact-card p { color: var(--muted); font-size: .96rem; }
.fact-card__list { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.fact-card__list li {
  padding-left: 20px; position: relative; color: var(--ink);
  font-size: .95rem; font-style: italic;
}
.fact-card__list li::before {
  content: "›"; position: absolute; left: 0; color: var(--burgundy); font-weight: 900; font-style: normal;
}

/* ---------- portret w „O mnie" ---------- */
.about__photo { position: relative; }

/* =====================================================================
   RESPONSYWNOŚĆ
   ===================================================================== */
@media (max-width: 1180px) {
  .menu { gap: 22px; }
  .header__inner { gap: 18px; }
}

@media (max-width: 1024px) {
  .container { padding: 0 20px; }
  .header__tel { display: none; }
  .about, .gallery, .form-section, .faq, .contact,
  .statement, .insight, .types, .finance, .facts { padding: 74px 0; }
  .hero__inner { padding-block: 84px; }
}

@media (max-width: 900px) {
  .types__grid, .facts__grid { grid-template-columns: 1fr; }
  .finance__groups { grid-template-columns: 1fr 1fr; gap: 28px 34px; }
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  /* strzałki nie mieszczą się poza slajdem — chowamy je (zostają kropki + swipe) */
  .deck__btn { display: none; }
  .deck__dots { margin-top: 18px; }
}

@media (max-width: 960px) {
  .header__inner { height: 64px; }
  .menu-toggle { display: flex; }
  .menu {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(43,37,34,.08);
    padding: 0 20px;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s ease, opacity .2s ease, padding .3s ease;
  }
  .menu.is-open {
    max-height: calc(100vh - 64px);
    opacity: 1;
    padding: 8px 20px 16px;
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .menu a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .menu a:last-child { border-bottom: 0; }
  .menu a::after { display: none; }

  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: 560px; }
  .hero__btns .btn { flex: 1 1 160px; }

  /* galeria — bento do 2 kolumn (6/6) */
  .gallery__item:nth-child(1),
  .gallery__item:nth-child(2),
  .gallery__item:nth-child(3),
  .gallery__item:nth-child(4),
  .gallery__item:nth-child(5),
  .gallery__item:nth-child(6) { grid-column: span 6; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 68px; }
  .about, .gallery, .form-section, .faq, .contact,
  .statement, .insight, .types, .finance, .facts { padding: 56px 0; }
  .finance__groups { grid-template-columns: 1fr 1fr; gap: 22px 26px; }
  .hero__inner { padding-block: 56px; }
  .section-head { margin-bottom: 38px; }
  .hero__inner { padding-block: 72px; }
  .contact__grid { grid-template-columns: 1fr; }
  .form { padding: 30px 24px; }
  .faq__item summary { padding: 16px 18px; font-size: .98rem; }
  .faq__item p { padding: 0 18px 18px; }
  .footer__inner { flex-direction: column; text-align: center; gap: 8px; }
  .footer__legal { text-align: center; }
  .footer__watermark { font-size: 3.5rem; }
  .faq__tabs {
    flex-wrap: wrap; justify-content: center;
    gap: 8px; padding-bottom: 6px;
  }
}

@media (max-width: 620px) {
  .form__row { grid-template-columns: 1fr; gap: 14px; margin-bottom: 14px; }
  .form { padding: 24px 18px; }
  .hero h1 { font-size: 1.9rem; }
  .hero__lead { font-size: 1rem; }
  /* „Co finansować" — 1 kolumna zamiast ściśniętych dwóch */
  .finance__groups { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .about, .gallery, .form-section, .faq, .contact { padding: 50px 0; }
  .hero { min-height: 480px; }
  .hero__inner { padding-block: 60px; }
  .section-head h2 { font-size: 1.7rem; }
  .hero h1 { font-size: 1.65rem; }
  /* galeria — pełna szerokość na telefonach */
  .gallery__item:nth-child(n) { grid-column: span 12; }
  .gallery__item img { min-height: 200px; }
  .brand__name { font-size: 1.05rem; }
  .header__inner { gap: 12px; }
  .hero__btns { flex-direction: column; align-items: stretch; }
  .hero__btns .btn { width: 100%; flex: 0 0 auto; }
  .footer__watermark { display: none; }
  .faq__tab { font-size: .82rem; padding: 8px 16px; }
}

@media (max-width: 360px) {
  .brand__name { font-size: .98rem; }
  .hero h1 { font-size: 1.45rem; }
  .form__field input, .form__field select { padding: 11px 12px; }
}
