/* Biuro Rzeczoznawcy Majątkowego – Wojciech Gryglaszewski
   Wspólny arkusz stylów dla wszystkich podstron */

/* Czcionki na własnym serwerze (Source Sans 3, Source Serif 4) */
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-3-v20-latin_latin-ext-regular.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-sans-3-v20-latin_latin-ext-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/source-sans-3-v20-latin_latin-ext-700.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-v15-latin_latin-ext-regular.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-v15-latin_latin-ext-600.woff2") format("woff2"); }

:root {
  --red: #d20a11;          /* czerwień z logo */
  --red-soft: #e54141;     /* akcent ze starej strony */
  --red-dark: #be050c;
  --ink: #1c2022;          /* grafit */
  --ink-2: #272a2d;
  --text: #3a3f44;
  --muted: #6b7178;
  --line: #e4e2de;
  --paper: #f6f5f2;
  --white: #fff;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --radius: 4px;
  --shadow: 0 18px 40px -22px rgba(28, 32, 34, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.65;
  color: var(--text); background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red-soft); outline-offset: 3px; }

/* ---------- Eyebrow / nagłówki sekcji ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--paper { background: var(--paper); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: .2s;
  white-space: nowrap;
}
.btn img { width: 18px; height: 18px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--dark { border-color: var(--ink); color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: #fff; }
.link-arrow { font-weight: 700; color: var(--red); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Pasek górny + nawigacja ---------- */
.topbar { background: var(--ink); color: #c9ccd0; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { color: var(--red-soft); }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.header__logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--ink-2); padding: 10px 12px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 12px; padding: 11px 18px; }
.nav .btn::after { display: none; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0; transition: .2s; }

@media (max-width: 1080px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 84px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 24px 28px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav .btn { margin: 16px 0 0; justify-content: center; border-bottom: 0; }
  .topbar__hours { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background: image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg")) center/cover no-repeat; filter: grayscale(1); opacity: .5; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(28,32,34,.97) 0%, rgba(28,32,34,.86) 45%, rgba(28,32,34,.35) 100%); z-index: 1; }
.hero__deco { position: absolute; right: -60px; bottom: -40px; width: 640px; opacity: .1; z-index: 1; filter: brightness(0) invert(1); }
.hero .wrap { position: relative; z-index: 2; padding: clamp(80px, 11vw, 150px) 0 clamp(70px, 9vw, 120px); }
.hero__content { max-width: 720px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--red-soft); }
.hero .eyebrow { color: #ff8a8a; }
.hero__lead { font-size: 1.2rem; color: #d6d9dc; max-width: 600px; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

.trust { position: relative; z-index: 3; margin-top: -54px; }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.trust__item { padding: 26px 28px; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: 0; }
.trust__item strong { display: block; font-family: var(--serif); font-size: 1.7rem; color: var(--ink); line-height: 1.1; margin-bottom: 6px; }
.trust__item span { font-size: .95rem; color: var(--muted); line-height: 1.4; display: block; }
@media (max-width: 900px) { .trust__grid { grid-template-columns: 1fr 1fr; } .trust__item:nth-child(2) { border-right: 0; } .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .trust__item { padding: 20px; } .trust__item strong { font-size: 1.35rem; } }

/* ---------- Oferta ---------- */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; text-decoration: none; color: inherit; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card__img { aspect-ratio: 16/8; overflow: hidden; position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__icon { position: absolute; left: 28px; bottom: -30px; width: 64px; height: 64px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.card__icon img { width: 36px; }
.card__body { padding: 48px 32px 32px; flex: 1; display: flex; flex-direction: column; }
.card__body ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.card__body li { padding-left: 26px; position: relative; font-size: 1rem; }
.card__body li::before { content: ""; position: absolute; left: 0; top: .6em; width: 12px; height: 2px; background: var(--red); }
.card__body .link-arrow { margin-top: auto; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }

/* ---------- Cele wyceny ---------- */
.purposes { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--line); padding: 10px 18px; font-size: .98rem; font-weight: 600; color: var(--ink-2); }
.chip::before { content: "✓"; color: var(--red); margin-right: 8px; }
@media (max-width: 900px) { .purposes { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- O rzeczoznawcy ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about__photo { position: relative; }
.about__photo img { width: 100%; background: #e9e9e9; }
.about__photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--red); z-index: -1; }
.about__badge { position: absolute; left: -18px; bottom: 32px; background: var(--ink); color: #fff; padding: 16px 22px; font-size: .9rem; line-height: 1.35; }
.about__badge strong { display: block; font-family: var(--serif); font-size: 1.25rem; }
.about__list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.about__list li { display: flex; gap: 12px; font-size: 1rem; line-height: 1.4; }
.about__list img { width: 22px; flex: 0 0 22px; margin-top: 1px; }
.about { isolation: isolate; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__photo { max-width: 420px; } .about__list { grid-template-columns: 1fr; } }

/* ---------- Certyfikaty ---------- */
.certs__track { display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; scrollbar-width: thin; }
.certs__item { scroll-snap-align: start; background: #fff; border: 1px solid var(--line); padding: 10px; cursor: zoom-in; transition: box-shadow .2s, transform .2s; }
.certs__item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.certs__item img { width: 100%; aspect-ratio: 3/4; object-fit: contain; background: #fafafa; }
.certs__nav { display: flex; gap: 10px; }
.certs__nav button { width: 48px; height: 48px; border: 1px solid var(--ink); background: #fff; cursor: pointer; display: grid; place-items: center; transition: .2s; }
.certs__nav button:hover { background: var(--ink); }
.certs__nav button:hover img { filter: invert(1); }
.certs__nav img { width: 18px; }
.certs__nav button:last-child img { transform: rotate(180deg); }
.certs__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

.lightbox { position: fixed; inset: 0; background: rgba(20,22,24,.92); display: none; place-items: center; z-index: 200; padding: 24px; }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 88vh; width: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); background: #fff; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 12px 18px; line-height: 1; }
.lightbox__close { top: 12px; right: 16px; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: 64px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.8rem; font-weight: 400; color: var(--red); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 24px; font-size: 1.02rem; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Pasek CTA ---------- */
.cta { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.cta__bg { position: absolute; inset: 0; background: url("../img/cta.webp") center/cover; filter: grayscale(1); opacity: .25; }
.cta .wrap { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 72px 0; }
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: #cfd2d5; margin: 0; max-width: 640px; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--red); }
@media (max-width: 900px) { .cta .wrap { grid-template-columns: 1fr; } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: 0; background: #fff; box-shadow: var(--shadow); }
.contact__info { padding: clamp(32px, 4vw, 56px); }
.contact__row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact__row:last-of-type { border-bottom: 0; }
.contact__row img { width: 24px; flex: 0 0 24px; margin-top: 3px; }
.contact__row strong { display: block; color: var(--ink); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.contact__row a { text-decoration: none; font-weight: 600; color: var(--ink); }
.contact__row a:hover { color: var(--red); }
.contact__note { font-size: .95rem; color: var(--muted); margin-top: 18px; }
.map { position: relative; min-height: 460px; background: #e9e8e5; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35); }
.map__placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 32px; color: var(--muted); background: repeating-linear-gradient(45deg, #ecebe8 0 14px, #e6e5e1 14px 28px); }
.map__placeholder strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .map { min-height: 340px; } }

/* ---------- Stopka ---------- */
.footer { background: var(--ink); color: #b7bbbf; font-size: .98rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding: 72px 0 48px; }
.footer__logo { height: 56px; width: auto; margin-bottom: 20px; }
.footer h2, .footer__title { font-family: var(--sans); color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; color: #e3e5e7; }
.footer a:hover { color: var(--red-soft); }
.footer address { font-style: normal; line-height: 1.8; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.footer__social img { width: 18px; filter: brightness(0) invert(1); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Animacje wejścia ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Poprawki v1.1 ---------- */
.nav .btn--red, .nav .btn--red:hover { color: #fff; }
.card__img { overflow: hidden; }
.card__body { position: relative; }
.card__icon { left: 32px; top: -32px; bottom: auto; }
.hero__content { max-width: 820px; }
.contact__row img, .contact__row svg { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 3px; }
.ico { width: 24px; height: 24px; flex: 0 0 24px; color: var(--red); }

/* ---------- v2: baner ze zdjęciem ---------- */
.hero .wrap.hero__grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: end; padding-bottom: 0; }
.hero__content { padding-bottom: clamp(70px, 8vw, 110px); }
.hero__person { position: relative; align-self: end; transition: transform .25s ease-out; }
.hero__person img { width: 100%; filter: grayscale(.15) contrast(1.02); }
.hero__person::before { content: ""; position: absolute; left: 8%; right: 4%; bottom: 0; top: 18%; border: 2px solid rgba(229,65,65,.55); transform: translate(18px, -18px); transition: transform .5s ease; z-index: -1; }
.hero__person { isolation: isolate; }
.hero__person:hover::before { transform: translate(8px, -8px); }
.hero__tag { position: absolute; left: -24px; bottom: 48px; background: rgba(255,255,255,.96); color: var(--muted); padding: 12px 18px; font-size: .85rem; line-height: 1.35; box-shadow: var(--shadow); border-left: 3px solid var(--red); transition: transform .3s; }
.hero__tag strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.05rem; }
.hero__person:hover .hero__tag { transform: translateX(-6px); }
.hero__deco { animation: float 9s ease-in-out infinite; }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.hero__anim { opacity: 0; transform: translateY(22px); animation: heroIn .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
.hero__person { opacity: 0; animation: personIn 1.1s cubic-bezier(.2,.7,.2,1) .35s forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
@keyframes personIn { from { opacity: 0; translate: 40px 0; } to { opacity: 1; translate: 0 0; } }
.trust { margin-top: 0; }
.trust__grid { box-shadow: 0 24px 40px -30px rgba(28,32,34,.45); }
@media (max-width: 1080px) { .hero .wrap.hero__grid { grid-template-columns: 1fr 300px; } }
@media (max-width: 760px) {
  .hero .wrap.hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__content { padding-bottom: 28px; }
  .hero__person { width: 230px; justify-self: end; margin-right: 8px; }
  .hero__tag { left: -118px; bottom: 26px; padding: 10px 14px; }
}

/* ---------- v2: efekty po najechaniu ---------- */
.btn { position: relative; overflow: hidden; transform: translateY(0); }
.btn::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px -12px rgba(210,10,17,.6); }
.btn:hover::before { left: 140%; }
.btn--dark:hover, .btn--ghost:hover { box-shadow: 0 12px 24px -12px rgba(0,0,0,.4); }
.btn img { transition: transform .3s; }
.btn:hover img { transform: rotate(-12deg) scale(1.1); }

.header { transition: box-shadow .3s; }
.header .wrap { transition: height .3s; }
.header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.header.is-scrolled .wrap { height: 68px; }
.header__logo img { transition: height .3s, transform .3s; }
.header.is-scrolled .header__logo img { height: 42px; }
.header__logo:hover img { transform: scale(1.04); }

.trust__item { position: relative; transition: transform .3s, background .3s; cursor: default; }
.trust__item::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.trust__item:hover { transform: translateY(-6px); background: #fff; z-index: 1; box-shadow: var(--shadow); }
.trust__item:hover::after { transform: scaleX(1); }
.trust__item strong { transition: color .3s; }
.trust__item:hover strong { color: var(--red); }

.card__icon { transition: transform .4s, background .3s; }
.card__icon img { transition: filter .3s; }
.card:hover .card__icon { transform: translateY(-6px) rotate(-6deg); background: var(--red); }
.card:hover .card__icon img { filter: brightness(0) invert(1); }
.card h3 { transition: color .3s; }
.card:hover h3 { color: var(--red); }
.card__body li { transition: transform .25s; }
.card__body li:hover { transform: translateX(6px); }

.chip { transition: background .25s, color .25s, transform .25s, border-color .25s; cursor: default; }
.chip:hover { background: var(--red); color: #fff; border-color: var(--red); transform: translateY(-3px); }
.chip:hover::before { color: #fff; }

.about__photo img { transition: transform .6s; }
.about__photo { overflow: visible; }
.about__photo::before { transition: transform .5s; }
.about__photo:hover::before { transform: translate(-10px, -10px); }
.about__photo:hover img { transform: scale(1.02); }
.about__badge { transition: transform .4s, background .3s; }
.about__photo:hover .about__badge { transform: translateX(10px); background: var(--red); }
.about__list li { transition: transform .25s; }
.about__list li:hover { transform: translateX(6px); color: var(--ink); }

.certs__item { transform-style: preserve-3d; will-change: transform; transition: box-shadow .2s, transform .15s; }

.faq summary { transition: color .25s, padding-left .25s; }
.faq summary:hover { color: var(--red); padding-left: 8px; }

.cta__bg { transition: transform 6s ease; }
.cta:hover .cta__bg { transform: scale(1.08); }

.contact__row .ico { transition: transform .35s; }
.contact__row:hover .ico { transform: scale(1.2) rotate(-8deg); }
.map iframe { transition: filter .4s; }
.map:hover iframe { filter: grayscale(0); }

.footer ul a { display: inline-block; transition: transform .25s, color .25s; }
.footer ul a:hover { transform: translateX(6px); }
.footer__social a { transition: background .25s, transform .25s, border-color .25s; }
.footer__social a:hover { background: var(--red); border-color: var(--red); transform: translateY(-3px); }

.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * 60ms); }
.reveal-stagger.is-in > * { opacity: 1; transform: none; }

.totop { position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; background: var(--red); border: 0; cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s, background .2s; z-index: 60; box-shadow: 0 10px 24px -10px rgba(210,10,17,.7); }
.totop img { width: 18px; filter: brightness(0) invert(1); }
.totop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: var(--red-dark); transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  .hero__anim, .hero__person { animation: none; opacity: 1; transform: none; }
  .hero__deco { animation: none; }
  .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}
.trust__grid.is-in .trust__item:hover { transform: translateY(-6px); transition-delay: 0s; }
.chips.is-in .chip:hover { transform: translateY(-3px); transition-delay: 0s; }
.reveal-stagger.is-in > * { transition: opacity .5s ease, transform .3s ease, background .25s, color .25s, border-color .25s, box-shadow .3s; }

/* ---------- v3 ---------- */
.topbar { height: 8px; }
.section__head { max-width: none; }
.section__head p { max-width: none; }
.hero__person::before { top: -3%; left: 4%; right: 2%; }

/* v6: zdjęcie w banerze tylko na szerszych ekranach */
@media (max-width: 1000px) {
  .hero__person { display: none; }
  .hero .wrap.hero__grid { grid-template-columns: 1fr; }
  .hero__content { padding-bottom: clamp(56px, 10vw, 90px); }
}

/* =========================================================
   PODSTRONY
   ========================================================= */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; background: image-set(url("../img/hero.webp") type("image/webp"), url("../img/hero.jpg") type("image/jpeg")) center 40%/cover no-repeat; filter: grayscale(1); opacity: .35; transition: transform 8s ease; }
.page-hero:hover .page-hero__bg { transform: scale(1.06); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(28,32,34,.97) 0%, rgba(28,32,34,.8) 55%, rgba(28,32,34,.45) 100%); z-index: 1; }
.page-hero .hero__deco { width: 420px; right: -40px; bottom: -60px; }
.page-hero .wrap { position: relative; z-index: 2; padding: clamp(48px, 7vw, 88px) 0 clamp(52px, 7vw, 90px); }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: none; }
.page-hero .eyebrow { color: #ff8a8a; }
.page-hero__lead { color: #d6d9dc; font-size: 1.15rem; max-width: 820px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; font-size: .9rem; color: #9ea3a8; }
.breadcrumb a { color: #d6d9dc; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #6b7178; }

.split { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.split--rev { grid-template-columns: 5fr 7fr; }
.split__img { position: relative; isolation: isolate; }
.split__img img { width: 100%; }
.split__img::before { content: ""; position: absolute; inset: 20px -20px -20px 20px; border: 2px solid var(--red); z-index: -1; transition: transform .5s; }
.split__img:hover::before { transform: translate(-10px, -10px); }
.split__img img { transition: transform .6s; }
.split__img:hover img { transform: scale(1.02); }
@media (max-width: 900px) { .split, .split--rev { grid-template-columns: 1fr; } .split__img { max-width: 520px; } }

.prose p { font-size: 1.05rem; }
.prose strong { color: var(--ink); }
.lead-q { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--ink); border-left: 3px solid var(--red); padding-left: 22px; margin-bottom: 28px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tile { background: #fff; border: 1px solid var(--line); padding: 22px 22px 22px 56px; position: relative; font-size: 1rem; line-height: 1.45; transition: transform .25s, box-shadow .25s, border-color .25s; }
.tile::before { content: ""; position: absolute; left: 20px; top: 22px; width: 22px; height: 22px; background: url("../img/ikony/checked.svg") center/contain no-repeat; transition: transform .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tile:hover::before { transform: scale(1.2) rotate(-10deg); }
.section--paper .tile { background: #fff; }

.numbered { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; counter-reset: n; }
.numbered > div { counter-increment: n; background: #fff; border: 1px solid var(--line); padding: 30px 28px 28px; position: relative; transition: transform .25s, box-shadow .25s; }
.numbered > div::before { content: counter(n, decimal-leading-zero); font-family: var(--serif); font-size: 2.2rem; color: var(--red); display: block; line-height: 1; margin-bottom: 14px; transition: transform .3s; }
.numbered > div:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.numbered > div:hover::before { transform: translateX(6px); }
.numbered p { margin: 0; font-size: 1.02rem; }

.qa-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.qa-row { display: grid; grid-template-columns: 90px 1fr; gap: 28px; padding: 40px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.qa-row__num { font-family: var(--serif); font-size: 3rem; color: var(--red); line-height: 1; transition: transform .3s; }
.qa-row:hover .qa-row__num { transform: translateX(8px); }
.qa-row h2, .qa-row h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: 14px; }
.qa-row p { margin: 0; font-size: 1.05rem; }
@media (max-width: 640px) { .qa-row { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; } .qa-row__num { font-size: 2.2rem; } }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature img { width: 30px; margin-bottom: 16px; transition: transform .35s; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; transition: color .25s; }
.feature p { margin: 0; font-size: 1rem; color: var(--text); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.feature:hover img { transform: scale(1.15) rotate(-10deg); }
.feature:hover h3 { color: var(--red); }

.rules { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.rules li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 1.05rem; line-height: 1.5; transition: transform .25s, color .25s; }
.rules li:hover { transform: translateX(6px); color: #fff; }
.rules img { width: 22px; flex: 0 0 22px; margin-top: 3px; }
.section--dark { background: var(--ink); color: #c9ccd0; }
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: #ff8a8a; }
@media (max-width: 800px) { .rules { grid-template-columns: 1fr; } }

.faq--full { grid-template-columns: 1fr; max-width: 920px; }
.faq details > div ul { padding-left: 22px; margin: 0 0 1em; }
.faq details > div li { margin-bottom: 4px; }
.faq-cats { position: sticky; top: 110px; }

.note-box { background: var(--paper); border-left: 4px solid var(--red); padding: 26px 30px; font-size: 1.08rem; }
.note-box strong { color: var(--ink); }

.company-data { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.company-data div { background: #fff; border: 1px solid var(--line); padding: 20px 22px; transition: transform .25s, box-shadow .25s; }
.company-data div:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.company-data strong { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.company-data a { color: var(--ink); font-weight: 600; text-decoration: none; }
.company-data a:hover { color: var(--red); }

.mt-0 { margin-top: 0; }
.mt-48 { margin-top: 48px; }
.company-data a { overflow-wrap: anywhere; }

/* Referencje */
.refs { margin-top: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--ink); color: #c9ccd0; padding: 34px 38px; position: relative; overflow: hidden; border-left: 4px solid var(--red); transition: transform .3s, box-shadow .3s; }
.refs:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.refs__quote { width: 56px; filter: brightness(0) invert(1); opacity: .9; transition: transform .4s; }
.refs:hover .refs__quote { transform: rotate(-8deg) scale(1.08); }
.refs h3 { color: #fff; margin-bottom: 6px; }
.refs p { margin: 0; font-size: 1.02rem; }
@media (max-width: 760px) { .refs { grid-template-columns: 1fr; padding: 28px; gap: 16px; } .refs__quote { width: 40px; } }
.qa-row .link-arrow { margin-left: 4px; white-space: nowrap; }

/* v18: stopka – logo jako link, dane rejestrowe */
.footer__brand { display: block; color: inherit; text-decoration: none; }
.footer__brand p { color: #b7bbbf; transition: color .25s; }
.footer__brand:hover p { color: #fff; }
.footer__brand:hover .footer__logo { opacity: .85; }
.company-data__title { font-family: var(--sans); font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 6px 0 14px; }
.company-data--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .company-data--2 { grid-template-columns: 1fr; } }

/* Typografia: równiejsze łamanie wierszy, bez pojedynczych słów w ostatnim wierszu */
h1, h2, h3, .eyebrow, .btn { text-wrap: balance; }
body { text-wrap: pretty; }
h1, h2, h3, h4, strong { text-wrap: balance; }
