/* ═══════════════════════════════════════════
   TRUDNYDOM.PL — MAIN STYLESHEET
   ═══════════════════════════════════════════ */

:root {
  --olive:        #5C6B3A;
  --olive-dark:   #3E4A25;
  --olive-light:  #7A8F52;
  --olive-muted:  #A8B58A;
  --beige:        #F5F0E8;
  --beige-warm:   #EDE5D4;
  --beige-deep:   #D8CCBA;
  --cream:        #FAF7F2;
  --text-dark:    #2A2A22;
  --text-mid:     #5A5A4A;
  --text-light:   #8A8A78;
  --white:        #FFFFFF;
  --radius:       2px;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w:        1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--olive-muted); border-radius: 3px; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { line-height: 1.15; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ─── LAYOUT UTILS ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 72px 0; }

.section-tag {
  font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--olive-light); font-weight: 500;
  margin-bottom: 16px; display: block;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300; line-height: 1.15;
  color: var(--olive-dark);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--olive-light); }

.section-desc {
  font-size: 16px; font-weight: 300;
  color: var(--text-mid); max-width: 560px;
  line-height: 1.8;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--olive);
  color: var(--white);
  text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(62,74,37,0.25);
}

.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--olive-dark);
  border: 1px solid var(--olive-muted);
  text-decoration: none;
  font-size: 14px; font-weight: 400; letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-outline:hover {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}

.btn-light {
  display: inline-block;
  padding: 14px 32px;
  background: var(--beige);
  color: var(--olive-dark);
  text-decoration: none;
  font-size: 14px; font-weight: 500; letter-spacing: 0.5px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.btn-light:hover { background: var(--white); transform: translateY(-1px); }

/* ─── HEADER ─── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--beige-deep);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: 0 2px 32px rgba(60,70,30,0.08); }

.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex; align-items: baseline; gap: 4px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 600;
  color: var(--olive-dark); letter-spacing: -0.5px;
}
.logo-mark span { color: var(--olive-light); }
.logo-tld {
  font-size: 12px; font-weight: 300;
  color: var(--text-light); letter-spacing: 1px;
}

/* ─── NAV ─── */
.site-nav { display: flex; align-items: center; gap: 2px; }

.nav-item { position: relative; }

.nav-link {
  display: block; padding: 8px 14px;
  font-size: 13.5px; font-weight: 400;
  color: var(--text-mid);
  text-decoration: none; letter-spacing: 0.3px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.current-page { color: var(--olive-dark); background: var(--beige-warm); }

.nav-link.has-dropdown::after {
  content: '▾'; font-size: 10px; margin-left: 4px;
  display: inline-block; transition: transform var(--transition);
}
.nav-item:hover .nav-link.has-dropdown::after { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white);
  border: 1px solid var(--beige-deep);
  border-radius: 4px;
  min-width: 250px;
  box-shadow: 0 8px 40px rgba(60,70,30,0.12);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition);
  overflow: hidden;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.dropdown a {
  display: block; padding: 12px 20px;
  font-size: 13px; color: var(--text-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--beige);
  transition: background var(--transition), color var(--transition), padding var(--transition);
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--beige); color: var(--olive-dark); padding-left: 28px; }

.nav-cta {
  margin-left: 10px;
  padding: 10px 20px !important;
  background: var(--olive) !important;
  color: var(--white) !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
}
.nav-cta:hover { background: var(--olive-dark) !important; }

.nav-cta-gielda {
  margin-left: 10px;
  padding: 10px 20px !important;
  background: var(--beige-deep) !important;
  color: var(--olive-dark) !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  transition: background 0.3s !important;
}
.nav-cta-gielda:hover,
.nav-cta-gielda.current-page { background: var(--beige-warm) !important; color: var(--olive-dark) !important; }

.nav-cta-kalkulator {
  margin-left: 6px;
  padding: 10px 20px !important;
  background: var(--olive) !important;
  color: var(--white) !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  transition: background 0.3s !important;
}
.nav-cta-kalkulator:hover,
.nav-cta-kalkulator.current-page { background: var(--olive-dark) !important; }

/* ─── HAMBURGER ─── */
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px; border: none; background: none;
}
.hamburger span { width: 24px; height: 1.5px; background: var(--olive-dark); transition: all var(--transition); display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--cream); z-index: 999;
  padding: 32px 24px; overflow-y: auto;
  animation: slideDown 0.3s ease;
}
.mobile-nav.open { display: block; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-nav-link {
  display: block; padding: 16px 0;
  font-size: 20px; font-weight: 300;
  color: var(--olive-dark); text-decoration: none;
  border-bottom: 1px solid var(--beige);
  font-family: 'Cormorant Garamond', serif;
}
.mobile-nav-sub { padding-left: 20px; background: var(--beige); }
.mobile-nav-sub a {
  display: block; padding: 12px 16px;
  font-size: 14px; font-weight: 300;
  color: var(--text-mid); text-decoration: none;
  border-bottom: 1px solid var(--beige-deep);
  font-family: 'DM Sans', sans-serif;
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 112px 0 64px;
  background: linear-gradient(135deg, var(--olive-dark) 0%, var(--olive) 60%, var(--olive-light) 100%);
  position: relative; overflow: hidden;
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-inner { position: relative; z-index: 2; width: 100%; }

.page-hero-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 2px; font-weight: 500;
  color: var(--olive-muted); text-transform: uppercase;
  border: 1px solid rgba(168,181,138,0.4);
  padding: 4px 10px; border-radius: 1px;
  margin-bottom: 12px;
}
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 300; line-height: 1.1;
  color: var(--white); letter-spacing: -0.5px;
  margin-bottom: 10px;
}
.page-hero-title em { font-style: italic; color: var(--olive-muted); }
.page-hero-desc {
  font-size: 14px; font-weight: 300;
  color: rgba(255,255,255,0.7);
  max-width: 480px; line-height: 1.7;
}
.page-breadcrumb {
  margin-top: 18px;
  font-size: 11.5px; color: rgba(255,255,255,0.4);
}
.page-breadcrumb a { color: rgba(255,255,255,0.55); text-decoration: none; }
.page-breadcrumb a:hover { color: var(--olive-muted); }
.page-breadcrumb span { margin: 0 8px; }

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--olive); padding: 18px 0;
}
.trust-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.85);
}
.trust-item::before { content: '✓'; font-size: 13px; color: var(--olive-muted); font-weight: 600; }

/* ─── CONTENT BLOCKS ─── */
.content-section { background: var(--white); }
.content-section-alt { background: var(--cream); }
.content-section-beige { background: var(--beige); }
.content-section-olive { background: var(--olive-dark); }

/* Two column layout */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.two-col.reverse > *:first-child { order: 2; }
.two-col.reverse > *:last-child { order: 1; }

.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.four-col  { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--beige-deep);
  border-radius: 2px;
  padding: 36px 32px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--olive); transform: scaleX(0); transform-origin: left;
  transition: transform var(--transition);
}
.card:hover::before { transform: scaleX(1); }
.card:hover { box-shadow: 0 12px 40px rgba(60,70,30,0.08); transform: translateY(-2px); }

.card-icon {
  width: 52px; height: 52px; background: var(--beige-warm); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 24px;
  transition: background var(--transition);
}
.card:hover .card-icon { background: var(--olive-muted); }

.card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 400; color: var(--olive-dark);
  margin-bottom: 12px; line-height: 1.2;
}
.card p { font-size: 14px; font-weight: 300; color: var(--text-mid); line-height: 1.7; }

/* ─── PROCESS STEPS ─── */
.steps-list { display: flex; flex-direction: column; gap: 0; }
.step-item {
  display: flex; gap: 24px; padding: 24px 0;
  border-bottom: 1px solid var(--beige-deep);
}
.step-item:last-child { border-bottom: none; }
.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px; font-weight: 300; color: var(--olive-muted);
  flex-shrink: 0; width: 48px; line-height: 1;
}
.step-body h4 {
  font-size: 15px; font-weight: 500; color: var(--olive-dark);
  margin-bottom: 6px; letter-spacing: 0.2px;
}
.step-body p { font-size: 14px; font-weight: 300; color: var(--text-mid); line-height: 1.7; }

/* ─── VALUE ITEMS ─── */
.value-row {
  display: flex; gap: 20px; padding: 20px 0;
  border-bottom: 1px solid var(--beige);
}
.value-row:last-child { border-bottom: none; }
.value-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; color: var(--olive-muted); flex-shrink: 0; min-width: 32px;
}
.value-body h4 { font-size: 14px; font-weight: 500; color: var(--olive-dark); margin-bottom: 4px; }
.value-body p { font-size: 13.5px; font-weight: 300; color: var(--text-mid); line-height: 1.6; }

/* ─── STATS ─── */
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px; overflow: hidden;
  width: 100%;
}
.stat-box {
  background: rgba(255,255,255,0.04); padding: 36px; text-align: center;
  transition: background var(--transition);
}
.stat-box:hover { background: rgba(255,255,255,0.08); }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px; font-weight: 300; color: var(--white); line-height: 1; margin-bottom: 8px;
}
.stat-num sup { font-size: 28px; color: var(--olive-muted); }
.stat-label {
  font-size: 12px; font-weight: 300; color: rgba(255,255,255,0.55);
  letter-spacing: 1px; text-transform: uppercase;
}

/* ─── FAQ ─── */
.faq-item {
  border-bottom: 1px solid var(--beige-deep);
  overflow: hidden;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--olive-dark);
  gap: 20px; user-select: none;
}
.faq-question:hover { color: var(--olive-light); }
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--beige-warm); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--olive); transition: all var(--transition);
}
.faq-item.open .faq-icon { background: var(--olive); color: var(--white); transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  font-size: 14px; font-weight: 300; color: var(--text-mid); line-height: 1.8;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 22px; }

/* ─── OFFERS ─── */
.offers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.offer-card {
  background: var(--white); border: 1px solid var(--beige-deep);
  border-radius: 2px; overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.offer-card:hover { box-shadow: 0 12px 40px rgba(60,70,30,0.1); transform: translateY(-3px); }

.offer-img {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--beige-warm), var(--beige-deep));
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; position: relative;
}
.offer-img img { width: 100%; height: 100%; object-fit: cover; }

.offer-badge {
  position: absolute; top: 12px; left: 12px;
  background: #ffc107; color: #111; /* Kanarkowe tło i czarny tekst */
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700;
  padding: 6px 12px; border-radius: 2px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Delikatny cień dla wyróżnienia */
}

.offer-body { padding: 24px; }
/* Wygląd całego paska pod zdjęciem (kategoria szara) */
.offer-type {
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600; color: var(--text-mid); 
  margin-bottom: 12px;
}

/* Wygląd samego zielonego napisu UDZIAŁ X/Y */
.offer-udzial-badge {
  background: var(--olive); color: var(--white);
  padding: 4px 8px; border-radius: 2px;
  margin-right: 6px; /* Odstęp między zielonym znaczkiem a słowem "Domy" */
  display: inline-block;
}
.offer-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 400; color: var(--olive-dark);
  margin-bottom: 10px; line-height: 1.3;
  min-height: calc(20px * 1.3 * 2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.offer-meta {
  display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
.offer-meta span { font-size: 12px; color: var(--text-light); }
.offer-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 600; color: var(--olive-dark);
}
.offer-price-unit { font-size: 13px; font-weight: 500; color: var(--text-mid); margin-left: 4px; }
.offer-cta {
  margin-top: 16px; display: block; width: 100%; padding: 11px; text-align: center;
  background: var(--beige); color: var(--olive-dark);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.5px;
  text-decoration: none; border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.offer-cta:hover { background: var(--olive); color: var(--white); }

/* ─── FILTERS ─── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn {
  padding: 9px 20px; border: 1px solid var(--beige-deep);
  background: var(--white); font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--text-mid);
  border-radius: var(--radius); cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--olive); border-color: var(--olive); color: var(--white);
}

/* ─── NEWS ─── */
.news-main-card {
  background: var(--cream); border: 1px solid var(--beige-deep);
  border-radius: 2px; overflow: hidden;
  transition: box-shadow var(--transition);
}
.news-main-card:hover { box-shadow: 0 12px 40px rgba(60,70,30,0.08); }
.news-thumb {
  width: 100%; height: 260px;
  background: linear-gradient(145deg, var(--olive), var(--olive-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: rgba(255,255,255,0.3); overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 32px; }
.news-tag {
  font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--olive-light); font-weight: 500; margin-bottom: 10px;
}
.news-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 300; color: var(--olive-dark);
  line-height: 1.2; margin-bottom: 10px;
}
.news-excerpt { font-size: 14px; font-weight: 300; color: var(--text-mid); line-height: 1.7; margin-bottom: 16px; }
.news-meta { font-size: 12px; color: var(--text-light); }
.news-read {
  display: inline-block; margin-top: 20px;
  font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--olive-light); text-decoration: none;
}
.news-read::after { content: ' →'; transition: transform var(--transition); display: inline-block; }
.news-read:hover::after { transform: translateX(4px); }

.news-small {
  background: var(--white); border: 1px solid var(--beige-deep);
  border-radius: 2px; padding: 22px;
  text-decoration: none; display: block;
  transition: background var(--transition), transform var(--transition);
}
.news-small:hover { background: var(--beige); transform: translateX(3px); }
.news-small .news-tag { margin-bottom: 6px; }
.news-small .news-title { font-size: 17px; margin-bottom: 6px; }

/* ─── CONTACT ROWS ─── */
.contact-rows { display: flex; flex-direction: column; gap: 0; }
.contact-row {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,0.08);
  border-radius: 2px; display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-label {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--olive-muted); margin-bottom: 4px;
}
.contact-value { font-size: 15px; color: var(--white); font-weight: 300; }
.contact-value a { color: var(--white); text-decoration: none; }
.contact-value a:hover { color: var(--olive-muted); }

/* ─── FORM ─── */
.form-wrap {
  background: var(--white); padding: 48px;
  border-radius: 2px; border: 1px solid var(--beige-deep);
}
.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 300; color: var(--olive-dark);
  margin-bottom: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-mid); font-weight: 500; margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  background: var(--cream); border: 1px solid var(--beige-deep);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 300;
  color: var(--text-dark); outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--olive-muted);
  box-shadow: 0 0 0 3px rgba(92,107,58,0.08);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A78' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
}
.form-submit {
  width: 100%; padding: 16px;
  background: var(--olive); color: var(--white);
  border: none; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500; letter-spacing: 0.8px;
  cursor: pointer; border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.form-submit:hover {
  background: var(--olive-dark); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(62,74,37,0.3);
}
.form-note {
  margin-top: 14px; font-size: 11.5px; color: var(--text-light);
  text-align: center; line-height: 1.6;
}

/* ─── DARK FORM (on olive bg) ─── */
.form-wrap-dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px; padding: 48px;
}
.form-wrap-dark .form-title { color: var(--white); }
.form-wrap-dark .form-group label { color: rgba(255,255,255,0.5); }
.form-wrap-dark .form-group input,
.form-wrap-dark .form-group select,
.form-wrap-dark .form-group textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: var(--white);
}
.form-wrap-dark .form-group input::placeholder,
.form-wrap-dark .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-wrap-dark .form-submit { background: var(--olive-light); }
.form-wrap-dark .form-submit:hover { background: var(--olive-muted); }

/* Naprawa widoczności listy rozwijanej - TYLKO DLA CIEMNYCH FORMULARZY */
.form-wrap-dark select[name="temat"] {
    background-color: rgba(255,255,255,0.06) !important;
    color: rgba(255,255,255,0.3) !important;
    -webkit-appearance: menulist;
}

.form-wrap-dark select[name="temat"]:not(:focus):has(option[value=""]:checked) {
    color: rgba(255,255,255,0.3) !important;
}

.form-wrap-dark select[name="temat"].has-value {
    color: #ffffff !important;
}

/* Styl dla opcji wewnątrz listy (ciemny formularz) */
.form-wrap-dark select[name="temat"] option {
    color: #333333 !important;
    background-color: #ffffff !important;
}

/* Placeholder opcja (ciemny formularz) */
.form-wrap-dark select[name="temat"] option[value=""] {
    color: #999 !important;
}

/* Blokada żółtego/białego tła przy autouzupełnianiu */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0.05) inset !important; /* Dopasuj przezroczystość do reszty pól */
    -webkit-text-fill-color: #ffffff !important; /* Wymuś biały kolor czcionki */
    transition: background-color 5000s ease-in-out 0s;
}
/* ─── TABLE ─── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 14px 20px; text-align: left;
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--olive-light); font-weight: 500;
  border-bottom: 2px solid var(--beige-deep);
}
.data-table td {
  padding: 16px 20px;
  font-size: 14px; font-weight: 300; color: var(--text-mid);
  border-bottom: 1px solid var(--beige);
}
.data-table tr:hover td { background: var(--beige); }
.data-table td:first-child { color: var(--text-dark); font-weight: 400; }

/* ─── HIGHLIGHT BOX ─── */
.highlight-box {
  background: var(--beige-warm);
  border-left: 4px solid var(--olive);
  padding: 24px 28px; border-radius: 0 2px 2px 0;
  margin: 32px 0;
}
.highlight-box p { font-size: 15px; font-weight: 300; color: var(--text-dark); line-height: 1.8; }
.highlight-box strong { color: var(--olive-dark); font-weight: 500; }

/* ─── FOOTER ─── */
#site-footer {
  background: var(--olive-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo-mark { font-size: 22px; color: var(--white); }
.footer-brand .logo-mark span { color: var(--olive-muted); }
.footer-brand .logo-tld { color: rgba(255,255,255,0.3); }
.footer-brand p {
  margin-top: 16px; font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 240px;
}
.footer-col h5 {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--olive-muted); font-weight: 500; margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 13px; font-weight: 300;
  color: rgba(255,255,255,0.55); text-decoration: none;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--olive-muted); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; font-size: 12px; }
.footer-bottom a:hover { color: var(--olive-muted); }
.footer-links { display: flex; gap: 20px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .four-col { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .two-col.reverse > *:first-child { order: 0; }
  .two-col.reverse > *:last-child { order: 0; }
  .three-col { grid-template-columns: 1fr 1fr; }
  .offers-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }
  .header-inner { padding: 0 20px; }
  .container { padding: 0 20px; }
  .section-pad { padding: 72px 0; }
  .three-col { grid-template-columns: 1fr; }
  .four-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .offers-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-wrap, .form-wrap-dark { padding: 28px 24px; }
  .trust-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}
/* ─── ZAAWANSOWANA WYSZUKIWARKA (OTODOM STYL) ─── */
.otodom-filter-bar {
    padding: 24px;
    margin-top: -60px; /* Lekko nachodzi na ciemne tło (hero) */
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(60, 70, 30, 0.08);
}

.filter-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.filter-field {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--beige-deep);
    border-radius: 4px;
    background: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    transition: all var(--transition);
}

.filter-field:focus {
    border-color: var(--olive-muted);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(92,107,58,0.08);
}

/* Dostosowanie selecta (strzałka) */
select.filter-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A78' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--beige);
    padding-top: 20px;
}

/* ─── ZAAWANSOWANA WYSZUKIWARKA (OTODOM STYL) ─── */
.otodom-filter-bar {
    padding: 16px 24px; /* Zmniejszony padding całego okna */
    margin-top: -45px; /* Mniejsze nachodzenie na tło */
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(60, 70, 30, 0.06); /* Lżejszy cień */
}

.filter-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px; /* Zmniejszony odstęp między polami */
    margin-bottom: 16px; /* Zmniejszony odstęp do przycisków */
}

.filter-field {
    width: 100%;
    padding: 10px 14px; /* Chudsze pola input/select */
    border: 1px solid var(--beige-deep);
    border-radius: 4px;
    background: var(--cream);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px; /* Mniejsza czcionka w polach */
    color: var(--text-dark);
    outline: none;
    transition: all var(--transition);
}

.filter-field:focus {
    border-color: var(--olive-muted);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(92,107,58,0.08);
}

select.filter-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A78' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px; /* Zmniejszony odstęp między przyciskami */
    border-top: 1px solid var(--beige);
    padding-top: 16px;
}

/* Wymuszenie mniejszych przycisków wewnątrz panelu */
.filter-actions .btn-primary,
.filter-actions .btn-outline {
    padding: 10px 20px !important;
    font-size: 13px !important;
}

@media (max-width: 768px) {
    .otodom-filter-bar { margin-top: -24px; padding: 16px; }
    .filter-inputs { grid-template-columns: 1fr; }
    .filter-actions { flex-direction: column; }
    .filter-actions .btn-primary,
    .filter-actions .btn-outline { width: 100%; text-align: center; }
}

/* ─── KAFELEK NAJNOWSZEJ OFERTY W HERO (FRONT-PAGE) ─── */
.hero-latest-offer {
    display: block;
    background: var(--cream);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 16px 40px rgba(42, 48, 25, 0.2);
    transform: translate(60px, -60px); /* Przesunięcie w górę i w prawo */
    
    /* NOWE: Odchudzanie kafelka */
    max-width: 380px; /* Blokada szerokości, żeby nie rozpychał się na pół ekranu */
    margin-left: auto; /* Naturalne dociśnięcie do prawej strony */
}

.hero-latest-offer:hover {
    transform: translate(60px, -66px); 
    box-shadow: 0 24px 50px rgba(42, 48, 25, 0.25);
}

.hero-offer-top-badge {
    position: absolute;
    top: 0; 
    right: 0; 
    background: var(--olive);
    color: var(--white);
    font-size: 9px; /* Odrobinę mniejszy tekst */
    font-weight: 700;
    letter-spacing: 1px; 
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 0 8px 0 8px; 
    z-index: 10;
}

.hero-offer-img {
    height: 200px; /* Zdjęcie niższe o 40px */
    background-color: var(--beige-deep);
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-offer-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ffc107; 
    color: #111;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-latest-offer .hero-offer-body {
    padding: 24px; /* Zmniejszone marginesy wewnątrz (z 32px) */
}

.hero-offer-type {
    color: var(--text-mid); 
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 10px;
}

.hero-offer-type .offer-udzial-badge {
    background: var(--olive);
    color: var(--white);
    padding: 3px 6px;
    border-radius: 2px;
    margin-right: 6px;
    display: inline-block;
}

.hero-latest-offer .hero-offer-title {
    color: var(--text-dark); 
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 21px;
    margin-bottom: 14px;
    line-height: 1.3;
    height: calc(21px * 1.3 * 2);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-latest-offer .hero-offer-meta {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.08); 
    padding-bottom: 16px;
    display: flex;
    gap: 12px;
}

.hero-latest-offer .hero-offer-meta span {
    color: var(--text-mid); 
    font-size: 12.5px; /* Mniejsze parametry lokalizacji/powierzchni */
}

.hero-latest-offer .hero-offer-price {
    color: var(--text-dark); 
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 32px; /* Mniejsza cena (z 38px) */
    line-height: 1;
}

/* Zachowanie proporcji na telefonach */
@media (max-width: 991px) {
    .hero-latest-offer {
        transform: translate(0, 0); 
        margin-top: 32px;
        margin-left: 0;
        max-width: 100%;
    }
    .hero-latest-offer:hover {
        transform: translateY(-6px);
    }
}
/* ─── TREŚĆ OFERTY — listy, nagłówki, odstępy ─── */
.entry-content ul,
.entry-content ol {
  padding-left: 24px;
  margin: 12px 0;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 4px; line-height: 1.7; }
.entry-content p { margin-bottom: 6px; }
.entry-content p:empty { display: none; }
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--olive-dark);
  margin: 20px 0 8px;
  line-height: 1.3;
}
.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 18px; }
.entry-content blockquote {
  border-left: 3px solid var(--olive-muted);
  padding: 8px 16px;
  margin: 16px 0;
  color: var(--text-mid);
  font-style: italic;
}
.entry-content hr {
  border: none;
  border-top: 1px solid var(--beige-deep);
  margin: 20px 0;
}
.entry-content strong { font-weight: 600; color: var(--text-dark); }
.entry-content a { color: var(--olive); text-decoration: underline; }
