/* =========================================================
   LECH-BUD — podstrona „O firmie” (/o-firmie)
   Krótsza, rzeczowa strona. Korzysta z design systemu
   z styles.css (kolory, Barlow, header, topbar, footer,
   przyciski). Tu tylko klasy specyficzne dla tej podstrony.
========================================================== */

/* ---------- Breadcrumb (spójny z /uslugi i /realizacje) ---------- */
.breadcrumb { font-family: "Barlow", sans-serif; font-size: 0.86rem; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb a { color: var(--muted); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--navy-800); }
.breadcrumb__sep { color: #b8c0d0; }
.breadcrumb [aria-current="page"] { color: var(--navy-900); font-weight: 600; }

/* =========================================================
   PAGE HERO / INTRO
========================================================== */
.of-hero {
  background: var(--bg-soft);
  border-top: 1px solid #e7eaf0;
  padding-block: clamp(30px, 4.4vw, 58px);
}
.of-hero__inner { max-width: 860px; }
.of-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 16px 0 14px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--navy-800);
}
.of-hero__eyebrow-mark { width: 34px; height: 4px; background: var(--yellow); border-radius: 2px; }
.of-hero__title {
  margin: 0 0 14px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 800; font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08; letter-spacing: -0.01em; color: var(--navy-900);
}
.of-hero__lead {
  margin: 0; max-width: 68ch; color: var(--muted);
  font-size: clamp(1.02rem, 1.3vw, 1.14rem); line-height: 1.6;
}

/* =========================================================
   GŁÓWNA SEKCJA — tekst + kompozycja zdjęć
========================================================== */
.of-about { background: #fff; padding-block: clamp(46px, 5.6vw, 84px); }
.of-about__grid {
  display: grid;
  grid-template-columns: 45% 1fr;
  gap: clamp(28px, 4vw, 62px);
  align-items: center;
}
.of-about__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--navy-800);
}
.of-about__eyebrow-mark { width: 34px; height: 4px; background: var(--yellow); border-radius: 2px; }
.of-about__title {
  margin: 0 0 16px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 800; font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  line-height: 1.1; letter-spacing: -0.01em; color: var(--navy-900);
}
.of-about__text {
  margin: 0 0 14px; max-width: 54ch;
  color: var(--ink); font-size: 1.04rem; line-height: 1.64;
}
.of-about__text--muted { color: var(--muted); }
.of-about__link {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  margin-top: 8px; font-weight: 700; font-size: 1rem;
  color: var(--navy-800); transition: color 0.2s var(--ease);
}
.of-about__link .ico--arrow { width: 18px; height: 18px; color: var(--yellow); transition: transform 0.2s var(--ease); }
.of-about__link:hover { color: var(--navy-900); }
.of-about__link:hover .ico--arrow { transform: translateX(4px); }
.of-about__link::before {
  content: ""; position: absolute; left: 0; right: 26px; bottom: -2px; height: 2px;
  background: var(--navy-800); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.of-about__link:hover::before { transform: scaleX(1); }

/* Kompozycja 3 zdjęć: jedno większe + dwa mniejsze (proces / różnorodność) */
.of-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 5 / 4;
}
.of-mosaic .of-fig { border-radius: 4px; }
.of-mosaic .m-a { grid-row: 1 / 3; }
.of-mosaic .m-b { grid-row: 1; }
.of-mosaic .m-c { grid-row: 2; }
.of-fig {
  position: relative; margin: 0; overflow: hidden;
  border: 1px solid rgba(16, 37, 80, 0.14); border-radius: 4px;
  background: var(--navy-900);
}
.of-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.of-fig--elewacja img { object-position: 50% 50%; }
.of-fig--wnetrze img { object-position: 50% 45%; }
.of-fig--maszyna img { object-position: 50% 40%; }

/* =========================================================
   6 LAT DOŚWIADCZENIA — pojedyncza, mocna informacja
========================================================== */
.of-exp {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
  padding-block: clamp(34px, 4.4vw, 62px);
}
.of-exp__inner {
  display: flex; align-items: center; gap: clamp(20px, 3.2vw, 48px);
  flex-wrap: wrap;
}
.of-exp__num {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 800; font-size: clamp(3rem, 7vw, 5.4rem);
  line-height: 0.9; letter-spacing: -0.01em; color: var(--navy-900);
  flex: 0 0 auto;
}
.of-exp__num span { color: var(--yellow-d); }
.of-exp__divider { width: 3px; align-self: stretch; background: var(--yellow); border-radius: 2px; flex: 0 0 auto; }
.of-exp__text {
  margin: 0; max-width: 48ch;
  color: var(--navy-800); font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.5;
}

/* =========================================================
   ZAKRES DZIAŁALNOŚCI — editorialowa lista 2×3
========================================================== */
.of-scope { background: #fff; padding-block: clamp(46px, 5.6vw, 80px); }
.of-scope__head { max-width: 640px; margin-bottom: clamp(20px, 2.6vw, 34px); }
.of-scope__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--navy-800);
}
.of-scope__eyebrow-mark { width: 34px; height: 4px; background: var(--yellow); border-radius: 2px; }
.of-scope__title {
  margin: 0;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 800; font-size: clamp(1.65rem, 2.8vw, 2.3rem);
  line-height: 1.1; letter-spacing: -0.01em; color: var(--navy-900);
}
.of-scope__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.of-scope__item {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 22px clamp(18px, 2vw, 30px) 22px 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.of-scope__item:nth-child(3n) { border-right: none; padding-right: 0; }
.of-scope__item:nth-child(n+4) { border-bottom: none; }
.of-scope__num {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 800; font-size: 0.9rem; letter-spacing: 0.08em;
  color: var(--yellow-d); margin-bottom: 8px;
}
.of-scope__name {
  margin: 0 0 6px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700; font-size: 1.24rem; line-height: 1.15; color: var(--navy-900);
}
.of-scope__desc { margin: 0 0 12px; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }
.of-scope__link {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  margin-top: auto; font-weight: 600; font-size: 0.92rem;
  color: var(--navy-800); transition: color 0.2s var(--ease);
}
.of-scope__link .ico--arrow { width: 15px; height: 15px; color: var(--yellow); transition: transform 0.2s var(--ease); }
.of-scope__link:hover { color: var(--navy-900); }
.of-scope__link:hover .ico--arrow { transform: translateX(3px); }

/* =========================================================
   GWARANCJA / FAKTURA / OBSZAR — 3 kolumny z separatorami
========================================================== */
.of-assur {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding-block: clamp(42px, 5.2vw, 74px);
}
.of-assur__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.of-assur__item {
  padding: 4px clamp(20px, 2.6vw, 40px);
  border-left: 1px solid rgba(16, 37, 80, 0.16);
}
.of-assur__item:first-child { border-left: none; padding-left: 0; }
.of-assur__mark { display: block; width: 30px; height: 4px; background: var(--yellow); border-radius: 2px; margin-bottom: 14px; }
.of-assur__title {
  margin: 0 0 8px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700; font-size: 1.24rem; line-height: 1.15; color: var(--navy-900);
}
.of-assur__text { margin: 0; color: var(--muted); font-size: 0.99rem; line-height: 1.55; }

/* =========================================================
   CTA KOŃCOWE — granatowy pas (spójny z /uslugi i /realizacje)
========================================================== */
.cta-band {
  background: var(--navy-900); color: #eaeefb;
  padding-block: clamp(46px, 5.6vw, 80px);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.cta-band__inner { max-width: 760px; }
.cta-band__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #cdd6ea;
}
.cta-band__eyebrow-mark { width: 34px; height: 4px; background: var(--yellow); border-radius: 2px; }
.cta-band__title {
  margin: 0 0 12px;
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1; letter-spacing: -0.01em; color: #fff;
}
.cta-band__text { margin: 0 0 26px; max-width: 56ch; color: #b9c2da; font-size: 1.04rem; line-height: 1.6; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   RESPONSYWNOŚĆ
========================================================== */
/* Tablet: główny układ i zakres do prostszych siatek */
@media (max-width: 900px) {
  .of-about__grid { grid-template-columns: 1fr; gap: 28px; } /* tekst nad zdjęciami */
  .of-about__text { max-width: none; }
  .of-scope__grid { grid-template-columns: repeat(2, 1fr); }
  .of-scope__item:nth-child(3n) { border-right: 1px solid var(--line); padding-right: clamp(18px, 2vw, 30px); }
  .of-scope__item:nth-child(2n) { border-right: none; padding-right: 0; }
  .of-scope__item:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .of-scope__item:nth-child(n+5) { border-bottom: none; }
}

/* Mniejszy tablet: gwarancje w 1 kolumnie z poziomymi separatorami */
@media (max-width: 760px) {
  .of-assur__grid { grid-template-columns: 1fr; }
  .of-assur__item {
    border-left: none; padding: 18px 0;
    border-top: 1px solid rgba(16, 37, 80, 0.16);
  }
  .of-assur__item:first-child { border-top: none; padding-top: 0; }
}

/* Mobile */
@media (max-width: 560px) {
  .of-scope__grid { grid-template-columns: 1fr; }
  .of-scope__item { border-right: none !important; padding-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .of-scope__item:last-child { border-bottom: none !important; }

  /* Kompozycja: duże na górze (pełna szerokość) + dwa mniejsze pod spodem */
  .of-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; aspect-ratio: auto; }
  .of-mosaic .m-a { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 16 / 10; }
  .of-mosaic .m-b { grid-column: 1; grid-row: 2; aspect-ratio: 1 / 1; }
  .of-mosaic .m-c { grid-column: 2; grid-row: 2; aspect-ratio: 1 / 1; }

  .of-exp__divider { display: none; }
  .cta-band__actions .btn { width: 100%; }
}

/* Dostępność: ograniczenie animacji */
@media (prefers-reduced-motion: reduce) {
  .of-about__link, .of-about__link .ico--arrow,
  .of-scope__link, .of-scope__link .ico--arrow { transition: none !important; }
}
