/*
Theme Name: Kredyty dla Rodziny
Theme URI: https://kredytydlarodziny.pl
Author: Kredyty dla Rodziny
Description: Motyw strony Kredyty dla Rodziny: strona glowna i podstrony (Proces, Oferta, O mnie, Opinie, Kontakt).
Version: 3.0.0
Text Domain: kredyty-dla-rodziny
*/

/* Jost (zmienna, 300-500) i Spectral, hostowane lokalnie */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('fonts/Jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('fonts/Jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Spectral-normal-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/Spectral-normal-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Spectral-normal-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/Spectral-normal-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --creme: #efede9;
  --ink: #0d0e12;
  --link: #5f6a74;
  --line: #d9d5cd;
  --gold: #a88348;
  --pad: 30px;
  --serif: "Spectral", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--creme);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

/* Nagłówek */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 60px;
  padding: 0 var(--pad);
  color: var(--creme);
  transition: background 600ms ease, color 600ms ease, box-shadow 600ms ease;
}

.site-header.is-solid,
.is-inner .site-header.is-solid {
  color: var(--ink);
  background: rgba(228, 219, 203, 0.97);
  box-shadow: 0 1px 0 rgba(13, 14, 18, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.nav { display: flex; gap: 40px; font-size: 14px; }
.nav-right { justify-content: flex-end; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 350ms ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.brand img { width: auto; height: 36px; transition: filter 600ms ease; }
.site-header.is-solid .brand img,
.is-inner .site-header .brand img { filter: brightness(0); }

/* Podstrony: menu w kolorze strony, beżowy pasek dopiero po przewinięciu */
.is-inner .site-header { color: var(--ink); }

.menu-button {
  display: none;
  justify-self: end;
  padding: 6px 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding: 84px var(--pad) 28px;
  overflow-y: auto;
  color: var(--ink);
  background: var(--creme);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 400ms;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a { font-size: 28px; line-height: 1.2; }
.menu-media { display: flex; align-items: flex-end; gap: 16px; width: 100%; margin-top: 30px; }
.menu-photo, .menu-video { overflow: hidden; background: #d9d5cd; }
.menu-photo { width: calc(60% - 8px); aspect-ratio: 577 / 694; }
.menu-video { width: calc(40% - 8px); aspect-ratio: 261 / 312; }
.menu-photo img, .menu-video video { width: 100%; height: 100%; object-fit: cover; }
.mobile-menu-close {
  position: absolute;
  top: 14px; right: var(--pad);
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  color: var(--creme);
  background: #111;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.05) 45%, rgba(0,0,0,.55));
  pointer-events: none;
}

.button {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid currentColor;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 350ms ease, color 350ms ease, border-color 350ms ease;
}
.hero .button:hover { color: var(--ink); background: var(--creme); border-color: var(--creme); }
.button.dark { color: var(--ink); }
.button.dark:hover { color: var(--creme); background: var(--ink); border-color: var(--ink); }



/* Animacja otwarcia (jak w poprzedniej wersji) */
.opening-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.3));
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms cubic-bezier(0.76, 0, 0.24, 1), visibility 900ms;
}
.opening-screen.is-hidden { opacity: 0; visibility: hidden; }
.opening-inner {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(980px, calc(100% - 48px));
  min-height: 180px;
  text-align: center;
}
.opening-inner p {
  grid-area: 1 / 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.24em;
  font-size: clamp(20px, 2.4vw, 31px);
  line-height: 1.02;
  font-weight: 400;
  animation: openingTextLift 1700ms 3400ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.opening-word, .opening-inner strong { display: inline-block; overflow: hidden; }
.opening-word > span {
  display: block;
  opacity: 0;
  transform: translateY(112%);
  animation: openingTextReveal 1650ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.opening-word:nth-child(1) > span { animation-delay: 820ms; }
.opening-word:nth-child(2) > span { animation-delay: 1080ms; }
.opening-word:nth-child(3) > span { animation-delay: 1340ms; }
.opening-inner strong {
  grid-area: 1 / 1;
  margin: 0;
  font-size: clamp(22px, 3.5vw, 46px);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
.opening-inner strong > span {
  display: block;
  opacity: 0;
  transform: translateY(112%);
  animation: openingTextReveal 1800ms 4050ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.opening-cta {
  position: absolute;
  left: 50%;
  bottom: 14vh;
  z-index: 2;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: auto;
  animation: ctaIn 1200ms 6000ms ease forwards;
}
.opening-cta .button:hover { color: var(--ink); background: var(--creme); border-color: var(--creme); }

.opening-active .site-header { opacity: 0; visibility: hidden; }
.site-header { transition: opacity 700ms ease, visibility 700ms, background 600ms ease, color 600ms ease; }

.hero-cta {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 14vh;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 900ms ease 300ms;
}
body:not(.opening-active) .hero-cta { opacity: 1; }

@keyframes openingTextReveal { 0% { opacity: 0; transform: translateY(112%); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes openingTextLift { to { transform: translateY(-46px); } }
@keyframes ctaIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Link ze strzałką */
.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  line-height: 24px;
  color: var(--link);
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.2px;
}
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Strona główna: kolaż */
.collage { padding: 140px var(--pad) 60px; }
.block {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  align-items: end;
  margin-bottom: 120px;
}
.media { position: relative; overflow: hidden; background: var(--creme); }
.media img, .media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: translate3d(0, var(--py, 0px), 0) scale(1.05);
  will-change: transform;
}
.portrait { aspect-ratio: 577 / 694; max-height: 90vh; }
.wide { aspect-ratio: 1008 / 566; }
.copy p { white-space: pre-line; font-weight: 400; }

.block { align-items: end; }

/* Bloki-duety (zdjęcie + mały film): a i e w jedną stronę, c lustrzanie, dokładnie jak u wzorca (wysokość liczona z vw) */
.block-a, .block-c, .block-e { display: flex; align-items: flex-end; gap: 20px; }
.duo-media { display: contents; }
.block-a .portrait, .block-c .portrait, .block-e .portrait { flex: 0 0 auto; width: auto; height: 50vw; max-height: 720px; }
.block-a .small, .block-c .small, .block-e .small { flex: 0 0 auto; width: auto; height: 25vw; max-height: 360px; aspect-ratio: 261 / 312; margin: 0; }
.block-a .copy, .block-c .copy, .block-e .copy { flex: 1 1 0; height: 25vw; max-height: 360px; display: flex; flex-direction: column; justify-content: flex-start; padding-top: min(3vw, 43px); padding-left: 5.7vw; padding-bottom: 0; }

/* Blok c: lustrzane odbicie (tekst po lewej, zdjęcia po prawej) */
.block-c { flex-direction: row-reverse; }
.block-c .copy { padding-left: 9.93vw; padding-right: 0; }

/* Szerokie zdjęcia: tekst ma stałe położenie względem zdjęcia, zmierzone na wzorcu (1440 px) */
.block-b, .block-d { display: block; position: relative; }
.block-b .wide, .block-d .wide { width: 71.04vw; }
.block-b .wide { margin-left: auto; }
.block-d .wide { margin-right: auto; }
.block-b .copy, .block-d .copy { position: absolute; top: 27.3vw; width: 263px; padding: 0; }
.block-b .copy { left: 46px; }
.block-d .copy { left: calc(71.04vw + 94px); }

/* Pojawianie się */
.fade-hidden { opacity: 0; transform: translateY(26px); transition: opacity 1100ms ease, transform 1100ms ease; }
.fade-hidden.is-visible { opacity: 1; transform: none; }

/* Podstrony */
main.page { padding: 130px var(--pad) 90px; min-height: 70vh; }
.page-head { max-width: 900px; margin-bottom: 70px; }
.kicker { margin-bottom: 18px; color: var(--link); font-family: var(--serif); font-size: 19px; }
main.page h1 {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.2px;
}
.lead { max-width: 620px; margin-top: 26px; font-size: 17px; }

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  align-items: start;
}
.about-grid .portrait { grid-column: 1 / 6; }
.page-contact { padding: 60px var(--pad) 12px; min-height: 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 44.7vw; column-gap: 4vw; align-items: center; }
.contact-info { padding-left: 8vw; }
.contact-info p { margin-bottom: 38px; font-size: 17px; font-weight: 400; line-height: 1.55; }
.contact-info a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 350ms ease; }
.contact-info a:hover { background-size: 100% 1px; }
.contact-info a.contact-muted { color: var(--link); }
.contact-info .button { background: none; font-size: 13px; }
.contact-cta { margin-top: 56px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 44.7vw; column-gap: 4vw; align-items: start; }
.split .steps li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 30px 0; }
.split .steps li p { grid-column: auto; max-width: 560px; }
.split > * { min-width: 0; }
.page-split { padding-top: 60px; padding-bottom: 12px; }
.page-split .split-text { padding-top: 70px; }
.split-flip { grid-template-columns: 44.7vw minmax(0, 1fr); }
.split-flip .about-body { max-width: 620px; }
.split-flip .about-body p + p { margin-top: 18px; }
.split-media, .split-media.portrait { position: sticky; top: 60px; height: calc(100svh - 72px); min-height: 440px; max-height: none; aspect-ratio: auto; }
.split .reviews { --per-view: 1; }
.split-reviews .reviews-viewport { margin-left: -8px; }
.split-reviews .reviews-controls { justify-content: flex-start; margin-top: 24px; }
.split-reviews .reviews-footer { align-items: flex-start; text-align: left; margin-top: 36px; }
.contact-photo { height: calc(100svh - 60px - 80px - 12px); min-height: 440px; max-height: none; }
.about-body { grid-column: 7 / 12; padding-top: 30px; }
.about-body p + p { margin-top: 18px; }

.editorial-row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 20px;
  align-items: end;
  margin-top: 130px;
}
.editorial-row .wide { grid-column: 4 / 13; }
.editorial-row .copy { grid-column: 1 / 4; padding-bottom: 6px; }

.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: baseline;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}
.steps h3 { font-size: 22px; font-weight: 400; line-height: 1.25; }
.page-cta { margin-top: 60px; }
.fine-print { margin-top: 26px; color: var(--link); font-size: 13px; }

.contact-lines { display: grid; gap: 14px; margin-top: 46px; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 46px; }

/* Tresci prawne: polityka prywatnosci, regulaminy */
.legal-body { max-width: 760px; margin-top: 70px; padding-top: 46px; border-top: 1px solid var(--line); }
.legal-body h2 { margin: 40px 0 16px; font-family: var(--serif); font-size: 23px; font-weight: 400; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 16px; line-height: 1.6; }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 22px; line-height: 1.6; }
.legal-body li { margin-bottom: 8px; }
.legal-body li ul, .legal-body li ol { margin-top: 8px; margin-bottom: 0; }
.legal-body a { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 350ms ease; }
.legal-body a:hover { background-size: 100% 1px; }

/* Opinie */
.reviews { --per-view: 3; --review-gap: 20px; }
.reviews-viewport { overflow: hidden; }
.reviews-track { display: flex; gap: var(--review-gap); transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1); will-change: transform; }
.review {
  flex: 0 0 calc((100% - var(--review-gap) * (var(--per-view) - 1)) / var(--per-view));
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 8px;
}
.review cite { order: -2; margin: 0 0 6px; font-style: normal; font-size: 15px; font-weight: 400; }
.review-stars { order: -1; margin-bottom: 14px; color: var(--gold); font-size: 16px; letter-spacing: 0.12em; }
.review p { flex: 0 0 auto; font-size: 15px; font-weight: 400; line-height: 1.5; color: var(--ink); }
.review-text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden; }
.review.is-open .review-text, .review.is-short .review-text { display: block; -webkit-line-clamp: unset; }
.review-more { align-self: flex-start; margin-top: 10px; padding: 0; border: 0; color: var(--link); background: none; font: inherit; font-size: 14px; cursor: pointer; }
.review-more[hidden] { display: none; }
.reviews-controls { display: flex; justify-content: center; gap: 32px; margin-top: 30px; }
.reviews-arrow { padding: 0; border: 0; border-radius: 0; color: var(--link); background: none; font-family: var(--serif); font-size: 15px; line-height: 22px; letter-spacing: 0.2px; cursor: pointer; transition: color 300ms ease; }
.reviews-arrow:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.reviews-arrow:focus { outline: none; }
.reviews-arrow:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.reviews-footer { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 44px; text-align: center; }
.reviews-footer p { color: var(--link); }

/* Stopka */
.site-footer { padding: 30px var(--pad) 28px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.footer-copy { color: var(--link); }
.footer-nav { display: flex; justify-content: center; gap: 40px; }
.footer-legal { display: flex; justify-self: end; gap: 28px; color: var(--link); }
.footer-nav a, .footer-legal a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 350ms ease; }
.footer-nav a:hover, .footer-legal a:hover { background-size: 100% 1px; }


/* Tablet i telefon */
@media (max-width: 1080px) {
  .steps li { grid-template-columns: 90px 1fr; }
  .steps li p { grid-column: 2; }
  .reviews { --per-view: 2; }
  .about-body { grid-column: 7 / 13; }
}

@media (max-width: 900px) {
  :root { --pad: 20px; }
  .nav { display: none; }
  .site-header { grid-template-columns: 1fr auto 1fr; }
  .brand { grid-column: 2; }
  .menu-button { display: block; grid-column: 3; }

  .collage { padding: 80px var(--pad) 20px; }
  .block { display: block; margin-bottom: 70px; }
  .block-b { display: flex; flex-direction: column-reverse; align-items: stretch; }
  .block .media { width: 100%; }
  .block .copy { padding: 26px 4px 0; }
  .block .copy { padding-bottom: 0 !important; }
  .block-b .wide, .block-d .wide { width: 100%; margin: 0; }
  .block-b .copy, .block-d .copy { position: static; width: auto; padding-left: 0; padding-right: 0; }

  /* Bloki-duety: zawsze ta sama kolejność na telefonie, bez lustrzanego odbicia */
  .block-a, .block-c, .block-e { flex-direction: column; align-items: stretch; gap: 0; }
  .duo-media { display: flex; align-items: flex-end; gap: 16px; width: 100%; }
  .duo-media .portrait { width: calc(60% - 8px); height: auto; max-height: none; }
  .duo-media .small { width: calc(40% - 8px); height: auto; max-height: none; }
  .block-a .copy, .block-c .copy, .block-e .copy { width: 100%; height: auto; max-height: none; padding-left: 0; padding-right: 0; padding-top: 26px; }

  main.page { padding: 100px var(--pad) 60px; }
  .page-head { margin-bottom: 44px; }
  .about-grid { display: block; }
  .split.split-flip { flex-direction: column; }
  .split { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 30px; }
  .page-split { padding-top: 84px; padding-bottom: 40px; }
  .page-split .split-text { padding-top: 0; }
  .split-media, .split-media.portrait { position: relative; top: 0; width: 100%; height: auto; min-height: 0; aspect-ratio: 375 / 440; }
  .split .steps li { padding: 24px 0; }
  .contact-layout { display: flex; flex-direction: column-reverse; gap: 30px; }
  .contact-info { padding-left: 0; }
  .contact-info p { font-size: 16px; margin-bottom: 28px; }
  .contact-cta { margin-top: 36px; }
  .contact-photo { width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: 375 / 440; }
  .about-body { padding-top: 34px; }
    .editorial-row { display: block; margin-top: 70px; }
  .editorial-row .copy { padding: 22px 0 0; }
  .steps li { grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; }
    .steps h3 { font-size: 19px; }
  .reviews { --per-view: 1; }
  .review { padding: 22px; }
  .site-footer { padding: 44px var(--pad) 28px; }
  .footer-row { grid-template-columns: 1fr; justify-items: center; gap: 18px; text-align: center; }
  .footer-nav { flex-wrap: wrap; gap: 10px 22px; order: 1; }
  .footer-legal { justify-self: center; flex-wrap: wrap; justify-content: center; gap: 8px 22px; order: 2; }
  .footer-copy { order: 3; }
  .button { padding: 14px 26px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .opening-screen { display: none; }
  .fade-hidden { opacity: 1; transform: none; transition: none; }
  .media img, .media video { transform: none; }
  .reviews-track { transition: none; }
}

/* Opinie na komputerze: tekst wyśrodkowany w pionie względem zdjęcia i wcięty jak na stronie Kontakt */
@media (min-width: 901px) {
  .split-reviews { align-items: center; }
  .split-reviews .split-text { padding: 0 0 0 8vw; }
  .split-reviews .page-head { margin-bottom: 40px; }
}

/* O mnie na komputerze: tekst wyśrodkowany w pionie, nagłówek bliżej tekstu */
@media (min-width: 901px) {
  .split-flip { align-items: center; }
  .split-flip .split-text { padding-top: 0; }
  .split-flip .page-head { margin-bottom: 30px; }
  .split-flip .about-body { padding-top: 0; }
}

/* Jeden styl tekstu podstawowego na całej stronie: Jost 15 px, waga 400 */
.about-body p,
.steps li p,
.legal-body p,
.legal-body li,
.lead,
.contact-info p { font-size: 15px; font-weight: 400; line-height: 1.5; }

/* Telefon: jedna skala odstępów na wszystkich stronach */
@media (max-width: 900px) {
  .page-head { margin-bottom: 28px; }
  main.page h1 { font-size: 28px; line-height: 1.2; }
  .split { gap: 28px; }
  .about-body { padding-top: 0; }
    .split .steps li { padding: 22px 0; }
  .contact-info p { margin-bottom: 20px; }
  .contact-cta { margin-top: 28px; }
  .block { margin-bottom: 56px; }
  .block-a .copy, .block-c .copy, .block-e .copy, .block-b .copy, .block-d .copy { padding-top: 20px; }
  .more { margin-top: 16px; }
  @keyframes openingTextLift { to { transform: translateY(-26px); } }
}
