/* ===========================================================================
   RISER.domy — komponenty strony głównej.

   Ładowany tylko na `/`. Komponenty używane na więcej niż jednej podstronie
   mają własne arkusze — wynosimy je stąd przy DRUGIM użyciu, nie przy trzecim.
   Tak wyszły już `opinie.css`, `formularz.css` i `faq.css`.
   =========================================================================== */

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* 118% wysokości daje zapas na paralaksę — bez tego przy przewijaniu
   spod zdjęcia wyszedłby biały pas. Kadr wyśrodkowany wyżej (60%, nie 85%)
   od aktualizacji zdjęcia hero — dom jest wyżej w kadrze. */
.hero-media img { width: 100%; height: 118%; object-fit: cover; object-position: center 60%; will-change: transform; }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .6) 32%, rgba(0, 0, 0, .28) 62%, rgba(0, 0, 0, .05) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .5) 100%);
}

.hero .container { width: 100%; }
.hero-inner { padding: 60px 0; max-width: 800px; }
.hero .eyebrow { color: #e9dfce; opacity: .95; }
.hero h1 { font-size: clamp(40px, 6.8vw, 84px); font-weight: 200; margin-bottom: 28px; letter-spacing: -.03em; }
.hero p { font-size: clamp(18px, 2.2vw, 22px); font-weight: 300; opacity: .92; margin-bottom: 40px; max-width: 600px; }

/* Najechanie odwraca kolory obu połówek nagłówka. */
.hero-title .w { color: #fff; transition: color .35s ease; }
.hero-title .b { color: var(--beige); transition: color .35s ease; }
.hero-title:hover .w { color: var(--beige); }
.hero-title:hover .b { color: #fff; }

.hero-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hero-actions .link { color: #fff; }

@media (max-width: 600px) { .hero { min-height: 88vh; } }

/* --- Zdanie przewodnie -------------------------------------------------- */

.statement { padding: 104px 0; text-align: center; }
.statement p { font-size: clamp(30px, 5vw, 62px); font-weight: 200; letter-spacing: -.025em; line-height: 1.12; color: var(--ink); }
.statement p .accent { color: var(--beige-dark); }
.statement .sub {
  font-size: 19px;
  font-weight: 300;
  color: var(--text);
  margin: 28px auto 0;
  max-width: 560px;
  letter-spacing: 0;
}

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

.trust { background: var(--ink); color: #fff; }
.trust .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 56px;
  padding-top: 54px;
  padding-bottom: 54px;
}
.trust .item { position: relative; padding: 2px 0; }
.trust .item + .item::before {
  content: '';
  position: absolute;
  left: -28px; top: 2px; bottom: 2px;
  width: 1px;
  background: rgba(255, 255, 255, .14);
}
.trust .item h4 { font-size: 18px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 10px; color: #fff; }
.trust .item p { font-size: 14px; color: rgba(255, 255, 255, .6); font-weight: 300; }

@media (max-width: 860px) {
  .trust .container { grid-template-columns: 1fr 1fr; column-gap: 28px; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .trust .item + .item::before { display: none; }
}

/* --- Kafle oferty ------------------------------------------------------- */

.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.path-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  clip-path: polygon(0 0, calc(100% - var(--skos-m)) 0, 100% var(--skos-m), 100% 100%, 0 100%);
}
.path-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .8s cubic-bezier(.2, 0, .2, 1);
}
.path-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .42) 45%, rgba(0, 0, 0, .9) 100%);
}
.path-card:hover img { transform: scale(1.05); }
.path-card .body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 34px; color: #fff; }
.path-card h3 { font-size: 28px; font-weight: 400; letter-spacing: -.01em; margin-bottom: 14px; padding-bottom: 14px; position: relative; }
.path-card h3::after { content: ''; position: absolute; left: 0; bottom: 0; width: 44px; height: 2px; background: var(--beige); }
/* Stała wysokość akapitu wyrównuje odnośniki w trzech kaflach obok siebie. */
.path-card p { font-size: 15.5px; font-weight: 300; color: rgba(255, 255, 255, .85); margin-bottom: 20px; min-height: 4.8em; }
.path-card .link { color: #fff; }
.path-card .link .chev { color: var(--beige); }

@media (max-width: 860px) {
  .paths { grid-template-columns: 1fr; gap: 22px; }
  .path-card { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .path-card img { transition: none; } }

/* --- Filary ------------------------------------------------------------- */

.pillars { background: var(--bg-alt); }
.pillars-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.pillars h2 { font-size: clamp(37px, 4.6vw, 56px); margin-bottom: 40px; }

.pillar { padding: 30px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 8px; align-items: baseline; }
.pillar:first-of-type { border-top: none; }
.pillar .no { font-size: 15px; font-weight: 400; color: var(--beige-dark); }
.pillar h4 { font-size: 20px; margin-bottom: 8px; font-weight: 400; }
.pillar p { font-size: 16px; color: var(--text); }

.pillars-img {
  overflow: hidden;
  align-self: stretch;
  min-height: 460px;
  clip-path: polygon(0 0, calc(100% - var(--skos-l)) 0, 100% var(--skos-l), 100% 100%, 0 100%);
}
.pillars-img img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars-img { order: -1; min-height: 340px; }
}

/* --- Pas ze zdjęciem na całą szerokość ---------------------------------- */

.showcase {
  position: relative;
  height: 46vh;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.showcase img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.showcase::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .62));
}
.showcase .inner { max-width: 820px; padding: 0 32px; }
.showcase h2 { font-size: clamp(34px, 5.4vw, 68px); font-weight: 200; letter-spacing: -.025em; }
.showcase p { font-size: 19px; font-weight: 300; opacity: .9; margin: 24px auto 0; max-width: 520px; }

/* --- Liczby ------------------------------------------------------------- */

.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats .container { display: flex; flex-wrap: wrap; }
.stat {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 64px 16px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat:last-child { border-right: none; }
.stat .num { font-size: clamp(47px, 6vw, 75px); font-weight: 200; line-height: 1; letter-spacing: -.03em; }
/* Wariant dla wartości słownej („Grupa RISER") — inaczej rozsadza kolumnę. */
.stat .num.word { font-size: clamp(28px, 3.2vw, 36px); letter-spacing: -.01em; line-height: 1.15; }
.stat .label { font-size: 16px; font-weight: 300; color: var(--text); margin-top: 16px; }

@media (max-width: 760px) {
  .stat { flex: 1 0 50%; border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: none; }
}

/* --- Realizacje --------------------------------------------------------- */

.realizacje-sekcja { padding-top: 92px; padding-bottom: 92px; }
.realizacje-sekcja .section-head { margin-bottom: 48px; }

.real-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(280px, 27vw, 400px);
  gap: 20px;
}
.real-card { position: relative; overflow: hidden; height: 100%; }
.real-card.cut { clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); }
.real-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, 0, .2, 1); }
.real-card:hover img { transform: scale(1.04); }
.rc-8 { grid-column: span 8; }
.rc-4 { grid-column: span 4; }

.center-btn { text-align: center; margin-top: 52px; }

@media (max-width: 860px) {
  .real-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: clamp(190px, 42vw, 260px); }
  .rc-8, .rc-4 { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) { .real-card img { transition: none; } }

/* --- Podgląd budowy online ---------------------------------------------- */

.online { background: var(--ink); color: #fff; }
.online-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.online-grid h2 { font-size: clamp(37px, 4.6vw, 58px); margin-bottom: 24px; }
.online-grid p { opacity: .75; margin-bottom: 32px; font-weight: 300; }
.online .eyebrow { color: #e9dfce; }

.online-img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  clip-path: polygon(0 0, calc(100% - var(--skos-l)) 0, 100% var(--skos-l), 100% 100%, 0 100%);
}
/* `contain`, nie `cover` — to zrzut z aplikacji, nie zdjęcie; przycięcie
   obcięłoby ekran telefonu/laptopa widoczny na grafice. */
.online-img img { width: 100%; height: 100%; object-fit: contain; }

.online-feats { display: flex; gap: 44px; flex-wrap: wrap; margin-top: 6px; }
.online-feats .of { display: flex; align-items: center; gap: 14px; }
.online-feats .ic {
  width: 28px; height: 28px;
  stroke: var(--beige);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.online-feats h4 { font-size: 15.5px; font-weight: 400; color: #fff; letter-spacing: -.01em; }

@media (max-width: 860px) {
  .online-grid { grid-template-columns: 1fr; gap: 40px; }
  .online-feats { gap: 28px; }
}

/* --- Proces ------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: 10px; }
.step { padding: 48px 34px 6px; border-left: 1px solid var(--line); }
.step:first-child { border-left-color: transparent; }
.step .ic {
  width: 34px; height: 34px;
  color: var(--beige);
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 28px;
  display: block;
}
.step .no { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--beige-dark); }
.step h4 { font-size: 22px; margin: 14px 0 12px; font-weight: 400; letter-spacing: -.01em; }
.step p { font-size: 15px; color: var(--text); font-weight: 300; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; border-top: none; }
  .step { border-left: none; border-top: 1px solid var(--line); padding: 34px 0 8px; }
  .step:nth-child(even) { padding-left: 26px; border-left: 1px solid var(--line); }
}

