/* ====================
   OGBUD — CSS STABILNY (SAFE VERSION)
   ==================== */

/* ========= UTILITIES ========= */
.flexiblecolumn { float: none; }
.flexiblecolumn > div,
.flexiblecolumn > div > div { height: 100%; }

#contact-button .btn { font-size: 20px; }

ul.list-icons { list-style: none; margin: 0; padding: 0; }
ul.list-icons li:before {
  content: "\f101";
  color: #3e9667;
  font-family: "Font Awesome 5 Free";
  font-weight: 700;
  margin-right: 12px;
}
/* ========= SWAP ========= */
@font-face {
  font-family: 'Poppins';
  font-display: swap;
}

/* ========= NAV ========= */
button.navbar-toggler { color: #404040; }

/* ========= MAP ========= */
#map-container, .map-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}
#map-container img, .map-container img {
  width: 100%;
  height: auto;
  display: block;
}
#map-canvas, .map-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#map-tooltip, .map-tooltip {
  display: none;
  position: absolute;
  z-index: 10;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* ========= VARIABLES ========= */
:root{
  --accent: #c70000;
  --accent-2: #8f0000;
  --text: #222;
  --muted: #444;
  --max-width: 1200px;
}

/* ========= LAYOUT ========= */
.section-max{
  font-family: "Poppins", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--text);
  max-width: var(--max-width);
  margin: 1.6rem auto;
  padding: 1.2rem;
  box-sizing: border-box;
}

/* ========= HERO ========= */
.hero{
  text-align:center;
  padding:1.6rem 0 2.2rem;
}
.hero h1{
  font-size:clamp(1.9rem,4vw,2.7rem);
  margin:0 0 1.2rem;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-0.4px;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.lead{
  margin:0 auto 1.3rem;
  max-width:760px;
  font-size:1.05rem;
  line-height:1.55;
  color:#333;
}

/* ========= BUTTON ========= */
.btn--primary{
  display:inline-block;
  padding:0.7rem 1.4rem;
  border-radius:8px;
  background:var(--accent);
  color:#fff;
  font-weight:600;
  text-decoration:none;
  border:1px solid #b00000;
  box-shadow:none;
  transition:0.15s ease-in-out;
}
.btn--primary:hover,
.btn--primary:focus{
  background:#a90000;
  border-color:#900000;
  color:#fff !important;
}

/* ===== OGBUD — stylizacja listy aktualności (Joomla) =====
=========================================================== */

/* Kontener grid dla wpisów (desktop) */
.com-content-category-blog__items.blog-items,
.com-content-category-blog__items.masonry-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 0.8rem;
}

/* Pojedynczy wpis = karta */
.com-content-category-blog__item.blog-item,
.com-content-category-blog__item.tck-article {
  background: #fff;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Obrazek */
.com-content-category-blog__item .item-image,
.com-content-category-blog__item figure.left.item-image {
  width: 100%;
  margin: 0;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* 🔧 KLUCZOWA POPRAWKA: height:auto zamiast 100% */
.com-content-category-blog__item .item-image img,
.com-content-category-blog__item figure.left.item-image img {
  width: 100%;
  height: auto;                 /* ← STABILNIE */
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
  transition: transform .35s ease;
}

.com-content-category-blog__item:hover .item-image img {
  transform: scale(1.03);
}

/* Treść wpisu */
.com-content-category-blog__item .item-content {
  padding: 0.95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 160px;
}

/* Tytuł */
.com-content-category-blog__item .page-header .tck-article-title,
.com-content-category-blog__item h2[itemprop="name"],
.com-content-category-blog__item .tck-article-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text, #222);
  letter-spacing: -0.2px;
}

.com-content-category-blog__item .page-header .tck-article-title a {
  color: inherit;
  text-decoration: none;
}

.com-content-category-blog__item .page-header .tck-article-title a:hover {
  color: var(--accent, #c70000);
  text-decoration: underline;
}

/* Wstęp / lead */
.com-content-category-blog__item .tck-article-body,
.com-content-category-blog__item .tck-article-body p {
  margin: 0;
  color: var(--muted, #666);
  font-size: 0.98rem;
  line-height: 1.5;
}

/* Readmore */
.com-content-category-blog__item .readmore {
  margin-top: 0.6rem;
}

.com-content-category-blog__item .readmore .btn,
.com-content-category-blog__item .readmore a.btn {
  display: inline-block;
  padding: 0.48rem 0.9rem;
  border-radius: 8px;
  background: var(--accent, #c70000);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(176,0,0,0.9);
  box-shadow: 0 8px 22px rgba(199,0,0,0.12);
  transition: transform .12s ease, opacity .12s ease;
}

.com-content-category-blog__item .readmore .btn:hover {
  transform: translateY(-2px);
  opacity: 0.98;
}

/* Nadpisanie btn-secondary */
.readmore .btn.btn-secondary,
.readmore .btn.btn {
  background: var(--accent, #c70000);
  color: #fff;
  border: 1px solid rgba(176,0,0,0.9);
}

/* Ukrycie narzędzi edycji */
.com-content-category-blog__item .icons,
.com-content-category-blog__item .tck-article-tools {
  display: none;
}

/* Linki listy „więcej” */
.com-content-category-blog__items-more {
  margin-top: 1rem;
  text-align: left;
}

.com-content-blog__links {
  padding-left: 1rem;
  color: var(--muted, #666);
}

.com-content-blog__links a {
  color: var(--text, #222);
  text-decoration: none;
}

.com-content-blog__links a:hover {
  color: var(--accent, #c70000);
  text-decoration: underline;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1100px) {
  .com-content-category-blog__items.blog-items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .com-content-category-blog__items.blog-items {
    grid-template-columns: 1fr;
  }

  .com-content-category-blog__item {
    border-radius: 10px;
  }

  .com-content-category-blog__item .item-content {
    padding: 0.8rem;
  }

  .com-content-category-blog__item .item-image img {
    aspect-ratio: 4 / 3;
  }
}

/* Focus accessibility */
.com-content-category-blog__item a:focus {
  outline: 3px solid rgba(199,0,0,0.12);
  outline-offset: 2px;
}

/* Bardzo małe ekrany */
@media (max-width: 520px) {
  .com-content-category-blog__items.blog-items {
    gap: 0.9rem;
  }

  .com-content-category-blog__item .tck-article-body {
    font-size: 0.98rem;
  }
}


/* ====== RESPONSYWNY GRID I KARTY REALIZACJI ====== */

/* Grid wrapper */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.4rem;
  margin-top: 1.4rem;
  align-items: start;
}

/* Card base */
.project-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
}

/* Większa miniatura na bardzo szerokich ekranach */
@media (min-width: 1200px) {
  .project-card {
    grid-template-columns: 200px 1fr;
  }
}

/* Obrazek — STABILNY */
.project-img {
  width: 100%;
  height: auto;              /* ← KLUCZOWA POPRAWKA */
  max-height: 160px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  margin: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

/* Treść i meta */
.project-content { padding: 0; }

.project-title {
  margin: 0 0 0.35rem 0;
  font-size: 1.05rem;
}

.project-phase,
.project-links {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

/* Meta */
.project-meta {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem 1rem;
}

.project-meta .meta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
}

.project-meta dt {
  font-weight: 600;
  font-size: 0.9rem;
}

.project-meta dd {
  margin: 0;
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}

/* Puste wartości — ukryj */
.project-meta dd:empty {
  display: none;
}

/* Card base */
.card {
  background: #fff;
  padding: 1.3rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  overflow: visible;
}

/* Highlighted red card */
.card.card--highlight {
  background: #c70000;
  border: 1px solid #a00000;
  color: #fff;
  box-shadow: 0 10px 30px rgba(199, 0, 0, 0.22);
}

.card.card--highlight h2,
.card.card--highlight p {
  color: #fff !important;
}

.card.card--highlight h2 {
  text-align: center !important;
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
}

.card.card--highlight h2::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 6px;
  width: 140px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  border-radius: 2px;
}

.card.card--highlight h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  width: 16px;
  height: 13px;
  background: #fff;
  clip-path: polygon(50% 0%, 0% 55%, 0% 100%, 100% 100%, 100% 55%);
}

/* --------- MOBILE / TABLET --------- */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .project-meta .meta-row {
    grid-template-columns: 1fr;
  }

  .project-meta dd {
    text-align: left;
    white-space: normal;
  }

  .project-img {
    max-height: 220px;
  }

  .card {
    padding: 1.1rem;
    border-radius: 12px;
  }

  .card h2 {
    margin-bottom: 1.4rem;
    padding-bottom: 1.2rem;
  }

  .card.card--highlight h2::before {
    width: 110px;
  }
}

/* Card H2 (general) */
.card h2 {
  font-size: revert;
  font-weight: revert;
  letter-spacing: revert;
  color: revert;
  line-height: 1.6;
  margin: 0 0 2rem;
  padding-bottom: 1.8rem;
  position: relative;
  text-align: center;
  z-index: 3;
}

.card h2::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: 70%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent) 50%, transparent);
  opacity: 0.28;
}

.card h2::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
  width: 14px;
  height: 10px;
  background: var(--accent);
  clip-path: polygon(50% 0%, 0% 55%, 0% 100%, 100% 100%, 100% 55%);
  opacity: 0.9;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* =====================================================
   APOLLO BOX — lokalny efekt hover
   ===================================================== */

.apollo-box {
  position: relative;
}

/* kontener obrazu */
.apollo-box .apollo-image {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}

/* obraz */
.apollo-box .effectck-apollo {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s ease, filter 0.6s ease;
  will-change: transform;
}

/* overlay */
.apollo-box .apollo-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.12);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* HOVER – tylko w obrębie apollo-box */
.apollo-box:hover .effectck-apollo {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.apollo-box:hover .apollo-image::after {
  opacity: 1;
}


/* =====================================================
   OGBUD — ETYKIETY STATUSU INWESTYCJI
   ===================================================== */

.invest-status {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 6px;
  background: #e1e1e1;
  color: #333;
  margin-bottom: 8px;
}

.status-planowana {
  background: #dbdbdb;
  color: #605a5a;
}

.status-nowa {
  background: #c40000;
  color: #ffffff;
}

.status-sprzedaz {
  background: #3b3b3b;
  color: #ffffff;
}


/* ========= CONTACT + MAP ========= */
.contact-map-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 1.6rem;
  align-items: stretch;
}

.contact-map-wrapper {
  display: flex;
}

.map-frame {
  width: 100%;
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.05);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 900px){
  .contact-map-grid {
    grid-template-columns: 1fr;
  }
  .map-frame {
    min-height: 300px;
  }
}

/* =========================
   CTA
========================= */

.ogbud-mini-cta-outline2{
  display:inline-block;
  padding:0.55rem 1.2rem;
  background:#ffffff;
  color:#c70000 !important;
  font-weight:700;
  font-size:0.95rem;
  text-decoration:none;
  border-radius:12px;

  /* RAMKA – gradient */
  border:2px solid transparent;
  background-image:
    linear-gradient(#ffffff, #ffffff),
    linear-gradient(90deg, #c70000 0%, #ffcccc 50%, #c70000 100%);
  background-origin:border-box;
  background-clip:padding-box, border-box;

  letter-spacing:0.2px;
  transition:0.2s ease;
  box-shadow:0 3px 10px rgba(0,0,0,0.05);
}

.ogbud-mini-cta-outline2:hover{
  color:#a00000 !important;
  transform:translateY(-2px);
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  background-image:
    linear-gradient(#fff8f8, #fff8f8),
    linear-gradient(90deg, #a00000 0%, #ffd6d6 50%, #a00000 100%);
}

/* ==================================================
   COMPANY CTA BOX — FINAL, STABILNY, WYŚRODKOWANY
   ================================================== */

.company-cta-box{
  margin: 2.4rem auto 1.6rem;
  max-width: 1200px;
  padding: 0 1.2rem;
  box-sizing: border-box;
}

/* GŁÓWNY UKŁAD */
.company-cta-box .cta-inner{
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px) 1fr; /* ⬅️ KLUCZ */
  gap: 18px;
  align-items: center;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.94),
    rgba(247,247,248,0.98)
  );
  border-radius: 16px;
  padding: 18px 22px;

  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 12px 34px rgba(16,24,40,0.08);
  backdrop-filter: blur(6px) saturate(120%);
}

/* ======================================
   LEWA / PRAWA KOLUMNA
   ====================================== */

.cta-left,
.cta-right{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cta-left{ justify-content: flex-start; }
.cta-right{ justify-content: flex-end; }

/* IKONY */
.company-cta-box .icon{
  color: var(--accent, #c70000);
  flex-shrink: 0;
}

/* TEKSTY */
.cta-text{
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.cta-pre{
  font-size: 0.78rem;
  color: #666;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.cta-action{
  font-size: 0.98rem;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}

.cta-action:hover{
  text-decoration: underline;
  color: var(--accent, #c70000);
}

/* ======================================
   ŚRODEK — IDEALNIE WYŚRODKOWANY
   ====================================== */

.cta-center{
  justify-self: center;
  align-self: center;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-phrase{
  font-size: 0.95rem;
  color: #444;
  line-height: 1.4;
  max-width: 280px;
}

/* PRZYCISK */
.cta-button{
  align-self: center;
  padding: 0.6rem 1.4rem;
  border-radius: 10px;
  font-size: 0.9rem;
}

/* ======================================
   RESPONSYWNOŚĆ — MOBILE
   ====================================== */

@media (max-width: 900px){
  .company-cta-box .cta-inner{
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .cta-left,
  .cta-right{
    justify-content: center;
  }

  .cta-center{
    order: -1;
  }
}

@media (max-width: 520px){
  .company-cta-box .cta-inner{
    padding: 16px 14px;
  }

  .cta-phrase{
    font-size: 0.92rem;
  }
}


/* --------- Company / "O Nas" section --------- */
.ogbud-company-modern{
  --accent:#c70000;
  --muted:#444;
  max-width:1200px;
  margin:1.6rem auto;
  padding:1.2rem;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color:#222;
  box-sizing:border-box;
}

/* ---------- HERO ---------- */
.company-hero{
  text-align:center;
  margin-bottom:0.6rem;
}

.company-hero h1{
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin:0 0 .5rem;
  font-weight:800;
  line-height:1.25;
  background: linear-gradient(90deg, var(--accent), #8f0000);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.company-sub{
  color:#555;
  font-size:0.95rem;
}

/* ---------- META BOX ---------- */
.company-meta-box{
  background:#f7f7f7;
  border:1px solid rgba(0,0,0,0.06);
  border-radius:14px;
  padding:2rem;
  margin:1.6rem 0;
  max-width:1000px;
  box-shadow:0 6px 16px rgba(0,0,0,0.04);
}

/* Grid */
.meta-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:1.6rem 2.5rem;
}

.meta-col{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-width:0; /* ważne */
}

/* Lewa kolumna */
.bank-title{
  font-weight:600;
  margin:0 0 .4rem;
  padding-bottom:.5rem;
  position:relative;
  opacity:.9;
  text-align:left;
}

.bank-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100px;
  height:1px;
  background:linear-gradient(to right, transparent, var(--accent) 60%, transparent);
  opacity:.2;
}

.bank-data{
  color:#444;
  line-height:1.5;
  margin-bottom:1rem;
}

/* Prawa kolumna */
.meta-list{
  list-style:none;
  padding:0;
  margin:0;
  color:#333;
  line-height:1.55;
  max-width:100%;
}

.meta-list li{
  margin-bottom:0.35rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.meta-list li strong{
  color:#000;
}

/* ---------- TREŚĆ ---------- */
.company-body{
  color:var(--muted);
  line-height:1.6;
  margin-top:1.2rem;
}

.company-body h2{
  text-align:left;
  margin:1.4rem 0 1.6rem;
  padding-bottom:.9rem;
  position:relative;
}

.company-body h2::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:60%;
  height:1px;
  background:linear-gradient(to right, transparent, var(--accent) 50%, transparent);
  opacity:.24;
}

/* ==================================================
   MOBILE – DEFINITYWNY FIX META BOXA
   ================================================== */

@media (max-width: 768px){
  .company-meta-box{
    padding:1.4rem;
  }

  .meta-grid{
    grid-template-columns: 1fr; /* JEDNA KOLUMNA */
    gap:1.2rem;
  }
}

/* --------- Projects list: mobile readability fix (single place) --------- */
@media (max-width: 820px){
  .projects-list{
    columns: 1 !important;
    padding-left: 0.3rem !important;
    margin-top: 0.6rem;
  }
  .projects-list li{
    margin-bottom: 0.75rem !important;
    line-height: 1.55 !important;
    padding-left: 6px;
  }
}

/* =========================
   SOCIAL ICONS (SEKCJE / STOPKA)
========================= */

.ogbud-social-icons{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:center;
}

.ogbud-social-icons a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:50%;
  background:rgba(255,255,255,0.14);
  backdrop-filter:blur(2px);
  text-decoration:none;
  transition:0.2s ease;
}

.ogbud-social-icons svg{
  width:20px;
  height:20px;
  fill:#ffffff;
  display:block;
}

.ogbud-social-icons a:hover{
  background:rgba(255,255,255,0.9);
  transform:translateY(-3px);
}

.ogbud-social-icons a:hover svg{
  fill:#c70000;
}

/* Mobile */
@media (max-width:768px){
  .ogbud-social-icons a{ width:34px; height:34px; }
  .ogbud-social-icons svg{ width:18px; height:18px; }
}
@media (max-width:420px){
  .ogbud-social-icons a{ width:30px; height:30px; }
  .ogbud-social-icons svg{ width:16px; height:16px; }
}

/* =========================
   TOPBAR – BEZPIECZNY RESET
========================= */

/* TYLKO tło – nie ruszamy paddingów ani flexów */
#topbar-wrapper,
#topbar-wrapper .inner,
#topbar-wrapper .tck-container{
  background:transparent !important;
}

/* =========================
   TOPBAR – KONTENER
========================= */

.ogbud-topbar{
  color:#fff;
  font-size:13px;
}

.ogbud-topbar-inner{
  max-width:1200px;
  margin:0 auto;
  padding:6px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  box-sizing:border-box;
}

/* =========================
   LEWA STRONA – TEKST
========================= */

.ogbud-topbar-left{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:center;
  min-width:0;
}

.ogbud-topbar-left .company{
  font-weight:600;
  white-space:nowrap;
}

.ogbud-topbar-left .address{
  white-space:nowrap;
  opacity:0.9;
}

.ogbud-topbar-left .contact{
  white-space:nowrap;
}

.ogbud-topbar-left a{
  color:#fff;
  text-decoration:none;
}

.ogbud-topbar-left a:hover{
  text-decoration:underline;
}

.ogbud-topbar-left .sep{
  margin:0 6px;
  opacity:0.6;
}

/* =========================
   TOPBAR – SOCIAL ICONS
========================= */

.ogbud-topbar-social{
  display:flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}

.ogbud-topbar-social a{
  width:30px;
  height:30px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,0.14);
  line-height:1;
}

.ogbud-topbar-social svg{
  width:16px;
  height:16px;
  fill:#ffffff;
  display:block;
}

.ogbud-topbar-social a:hover{
  background:rgba(255,255,255,0.25);
}

/* =========================
   MOBILE – LOGICZNY UKŁAD
========================= */

@media (max-width:768px){
  .ogbud-topbar-inner{
    flex-direction:column;
    align-items:stretch;
    gap:6px;
  }

  .ogbud-topbar-left{
    flex-wrap:wrap;
    gap:6px 10px;
    font-size:12.5px;
  }

  .ogbud-topbar-social{
    justify-content:flex-end;
  }
}

@media (max-width:480px){
  .ogbud-topbar-left{
    flex-direction:column;
    align-items:flex-start;
    gap:4px;
  }

  .ogbud-topbar-social a{
    width:26px;
    height:26px;
  }

  .ogbud-topbar-social svg{
    width:14px;
    height:14px;
  }
}
/* ====================
   OGBUD — KOLORY STATUS MIESZKAŃ
   ==================== */
.status-wolne {
  color: #1e8f3a;
  font-weight: 600;
}

.status-sprzedane {
  color: #c70000;
  font-weight: 600;
}

.status-zapytaj {
  color: #d6a100;
  font-weight: 600;
}

/* ====================
   OGBUD — OPIS INWESTYCJI (CLEAN / TYPO FINAL)
   ==================== */

.investment-description {
  max-width: 900px;
  margin: 10px auto 60px;
  line-height: 1.7;
  font-size: 16px;
  color: #444;
}

/* paragrafy */
.investment-description p {
  margin-bottom: 18px;
}

/* nagłówki – lekkie, eleganckie */
.investment-description h2,
.investment-description h3 {
  position: relative;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  font-weight: 500; /* lekko bold */
  color: #222;
}

/* cienka, zanikająca linia pod nagłówkiem */
.investment-description h2::after,
.investment-description h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 90px;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(199, 0, 0, 0.45),
    rgba(199, 0, 0, 0)
  );
}

/* listy */
.investment-description ul {
  margin: 20px 0;
  padding-left: 20px;
}

.investment-description li {
  margin-bottom: 10px;
}

/* mobile */
@media (max-width: 768px) {
  .investment-description {
    margin: 15px 12px 40px;
  }

  .investment-description h2,
  .investment-description h3 {
    margin-top: 30px;
  }
}

/* =========================
   HERO INWESTYCJI — COMPACT
   ========================= */

.investment-hero-enhanced {
  position: relative;
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.94),
      rgba(255,255,255,0.82)
    ),
    url('https://ogbud.pl/images/inwestycje/hetmanska/01.jpg')
      center / cover no-repeat;

  padding: 44px 22px 54px;   /* ⬅️ KOMPAKT */
  margin-bottom: 32px;

  border-radius: 14px;

  box-shadow:
    0 12px 36px rgba(0,0,0,0.05),
    inset 0 1px 0 rgba(255,255,255,0.6);

  overflow: hidden;
}

/* bardzo delikatny gradient światła */
.investment-hero-enhanced::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      120deg,
      rgba(255,255,255,0.18),
      rgba(255,255,255,0)
    );
  pointer-events: none;
}

/* =========================
   INNER
   ========================= */

.investment-hero-enhanced .investment-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

/* =========================
   STATUS
   ========================= */

.investment-hero-enhanced .invest-status {
  display: inline-block;
  padding: 5px 12px;

  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;

  background: transparent;
  color: var(--accent);

  border: 1px solid rgba(199,0,0,0.35);
  border-radius: 999px;

  margin-bottom: 10px;
}

/* =========================
   H1
   ========================= */

.investment-hero-enhanced h1 {
  font-size: clamp(2rem, 4.2vw, 2.6rem);
  margin: 0 0 12px;

  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.3px;

  color: #1f1f1f;
}

/* cienka linia — architektura */
.investment-hero-enhanced h1::after {
  content: "";
  display: block;
  width: 96px;
  height: 1px;
  margin-top: 10px;

  background: linear-gradient(
    to right,
    var(--accent),
    rgba(199,0,0,0)
  );
  opacity: 0.55;
}

/* =========================
   INTRO
   ========================= */

.investment-hero-enhanced .investment-intro {
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 700px;
  color: #444;
  margin-bottom: 18px;
}

/* =========================
   CTA
   ========================= */

.investment-hero-enhanced .hero-cta {
  display: flex;
  gap: 12px;
}

.investment-hero-enhanced .hero-cta .btn--primary {
  font-size: 0.9rem;
  padding: 0.65rem 1.4rem;

  border-radius: 8px;
  background: var(--accent);
  border: 1px solid var(--accent-2);

  box-shadow: 0 8px 20px rgba(199,0,0,0.22);
}

.investment-hero-enhanced .hero-cta .btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(199,0,0,0.28);
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {
  .investment-hero-enhanced {
    padding: 34px 16px 42px;
    margin-bottom: 26px;
  }

  .investment-hero-enhanced h1 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
  }

  .investment-hero-enhanced .investment-intro {
    font-size: 0.98rem;
  }
}


/* ========= mod_mieszkania_search ========= */
.mod-mieszkania-search {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* --- karta wyszukiwarki --- */
.mod-mieszkania-search .mod-search,
.mod-mieszkania-search .mod-search-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  box-sizing: border-box;
}

/* --- grid --- */
.mod-mieszkania-search .grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: end;
}

.mod-mieszkania-search .field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* --- label --- */
.mod-mieszkania-search label {
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
  font-weight: 600;
}

/* ==================================================
   INPUTY / SELECTY – JEDEN SYSTEM
   ================================================== */

.mod-mieszkania-search select,
.mod-mieszkania-search input[type="text"],
.mod-mieszkania-search input[type="number"] {
  height: 46px;
  width: 100%;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  background-color: #fff;
  font-size: 14px;
  color: #111;
  box-sizing: border-box;
  line-height: 46px;
}

/* --- SELECT – reset + strzałka SVG --- */
.mod-mieszkania-search select {
  appearance: none;
  padding-right: 48px;

  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'>\
<path d='M1 1l5 5 5-5' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'></path></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
}

/* Edge / IE */
.mod-mieszkania-search select::-ms-expand {
  display: none;
}

/* hover / focus */
.mod-mieszkania-search select:hover,
.mod-mieszkania-search select:focus,
.mod-mieszkania-search input:focus {
  border-color: #c70000;
  outline: none;
}

.mod-mieszkania-search select:focus,
.mod-mieszkania-search input:focus {
  box-shadow: 0 0 0 3px rgba(199,0,0,.12);
}

/* --- USUWAMY WSZYSTKIE STARE STRZAŁKI --- */
.mod-mieszkania-search .select-wrap::before,
.mod-mieszkania-search .select-wrap::after {
  display: none !important;
  content: none !important;
}

/* ==================================================
   PRZYCISK
   ================================================== */

.mod-mieszkania-search .btn-wrap {
  display: flex;
}

.mod-mieszkania-search .search-btn {
  height: 46px;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: #c70000;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(199,0,0,.25);
}

/* ==================================================
   WYNIKI
   ================================================== */

.mod-mieszkania-search .mod-results {
  margin-top: 18px;
  border-radius: 10px;
  overflow-x: auto;
  border: 1px solid #ececec;
  background: #fff;
}

.mod-mieszkania-search .mod-results table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.mod-mieszkania-search .mod-results thead th {
  padding: 10px 12px;
  background: #fafafa;
  color: #6b6f76;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 1px solid #ececec;
}

.mod-mieszkania-search .mod-results tbody td {
  padding: 10px 12px;
  font-size: 14px;
  border-top: 1px solid rgba(0,0,0,0.05);
  color: #0b0b0b;
}

/* ==================================================
   RESPONSIVE
   ================================================== */

@media (max-width: 1100px) {
  .mod-mieszkania-search .grid-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .mod-mieszkania-search .grid-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .mod-mieszkania-search .search-btn {
    font-size: 15px;
  }
}