:root {
  --bg-dark: #0f0f0f;
  --bg-medium: #1a1a1a;
  --bg-light: #2b2b2b;
  --gold: #f5c242;
  --gold-strong: #d6a93b; /* Dodane z HTML */
  --text-primary: #fff;
  --text-secondary: #bdbdbd;
  --container-width: 1200px;

  /* Dekoracje tła — wieżowce */
  --towers-width: clamp(140px, 18vw, 300px);
  --towers-height: clamp(480px, 70vh, 900px);
  --towers-opacity: 0.14; /* Zaktualizowane z HTML */
}

/* Reset & base */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%; /* Dodane z HTML */
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; /* Dodane z HTML */
}

h1, h2, h3 {
  color: var(--text-primary);
  margin-top: 0;
}

p {
  line-height: 1.6;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0; /* Padding góra/dół dla wszystkich sekcji */
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0; /* Dodane z HTML */
  right: 0; /* Dodane z HTML */
  z-index: 120; /* Zaktualizowane z HTML */
  background: rgba(6,6,6,0.45); /* Zaktualizowane z HTML */
  backdrop-filter: blur(6px);
  padding: .6rem 0; /* Zaktualizowane z HTML */
  border-bottom: 1px solid rgba(255,255,255,0.03); /* Dodane z HTML */
}
.header-flex { /* Dodane z HTML */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand img {
  height: 40px;
  display: block; /* Dodane z HTML */
}
.main-nav {
  display: flex;
  gap: 1.25rem; /* Zaktualizowane z HTML */
  align-items: center; /* Dodane z HTML */
}
.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem; /* Dodane z HTML */
  transition: color .15s; /* Zaktualizowane z HTML */
}
.main-nav a:hover {
  color: var(--gold);
}
.add-offer-btn { /* Dodane z HTML */
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: .4rem .8rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem; /* Zaktualizowane z HTML */
  cursor: pointer;
}

/* Page padding to avoid header overlap */
main { /* Dodane z HTML */
  padding-top: 90px;
}

/* Form section layout */ /* Dodane z HTML */
.form-section {
  padding: 48px 0 120px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.add-offer-form { /* Dodane z HTML */
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  border-radius: 20px;
  padding: 32px 36px;
  max-width: 920px;
  width: 100%;
  border: 1px solid rgba(214,169,59,0.12);
  box-shadow: 0 10px 40px rgba(214,169,59,0.06);
  position: relative;
  z-index: 2;
}

.add-offer-form h1 { /* Dodane z HTML */
  margin: 0 0 18px 0;
  font-size: 1.9rem;
  text-align: center;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: .2px;
}

/* Grid: dwa pola w rzędzie */ /* Dodane z HTML */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 18px;
  align-items: start;
}

.form-group { /* Dodane z HTML */
  display: flex;
  flex-direction: column;
}

.form-group label { /* Dodane z HTML */
  font-weight: 600;
  color: #e9e9e9;
  font-size: .95rem;
  margin-bottom: .45rem;
}

.form-group input,
.form-group select { /* Dodane z HTML */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: #161616;
  color: var(--text-primary);
  font-size: .97rem;
  transition: all .18s ease;
}

.form-group input::placeholder { /* Dodane z HTML */
  color: #8a8a8a;
}

.form-group input:focus,
.form-group select:focus { /* Dodane z HTML */
  outline: none;
  border-color: var(--gold-strong);
  box-shadow: 0 0 0 4px rgba(245,194,66,0.09);
  background: #171717;
}

/* Meeting section uses same two-column grid */ /* Dodane z HTML */
.meeting-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.meeting-section h3 { /* Dodane z HTML */
  margin: 0 0 12px 0;
  font-size: 1.02rem;
  color: var(--text-primary);
  font-weight: 700;
}

/* Checkboxes and small text */ /* Dodane z HTML */
.checkboxes {
  margin-top: 18px;
}
.checkbox { /* Dodane z HTML */
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cfcfcf;
  font-size: .95rem;
}
.checkbox input { /* Dodane z HTML */
  accent-color: var(--gold-strong);
  width: 18px;
  height: 18px;
}

/* Submit button full width */ /* Dodane z HTML */
.btn.main-btn {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg,var(--gold),var(--gold-strong));
  color: #0e0e0e;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease;
}
.btn.main-btn:hover { /* Dodane z HTML */
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(214,169,59,0.12);
}

/* Footer */
.site-footer {
  margin-top: 40px; /* Zaktualizowane z HTML */
  padding: 28px 0; /* Zaktualizowane z HTML */
  text-align: center;
  color: var(--text-secondary);
  font-size: .95rem; /* Zaktualizowane z HTML */
  border-top: 1px solid rgba(255,255,255,0.03); /* Dodane z HTML */
}

/* Side decorations (wieżowce) */ /* Dodane z HTML */
body::before, body::after {
  content: '';
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  height: var(--towers-height);
  width: var(--towers-width);
  pointer-events: none;
  opacity: var(--towers-opacity);
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}
body::before {
  left: 0;
  background-image: url('/assets/images/bg-towers-left.png');
}
body::after {
  right: 0;
  background-image: url('/assets/images/bg-towers-right.png');
}

/* Small helpers */ /* Dodane z HTML */
.muted {
  color: var(--text-secondary);
  font-size: .92rem;
}

/* --- Sekcje z oryginalnego style.cc (pozostawione, jeśli są potrzebne dla innych stron) --- */

/* Hero Section (jeśli używasz na index.html) */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-dark);
  padding: 60px 0;
}

/* Główny gradient wizualny hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-dark) 50%, var(--gold) 100%);
  z-index: 0;
}

/* Płynne przejście z Hero do kolejnej sekcji (Rozmycie) */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to top, var(--bg-dark) 0%, rgba(0,0,0,0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.hero-intro img {
  height: 100px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.hero-intro h1 {
  font-size: 2.8rem;
  margin: 0.5rem 0 1rem;
  line-height: 1.2;
}

.hero-intro p {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons (dostosowane dla ogólnego użytku) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  background: var(--gold);
  color: var(--bg-dark);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s ease-in-out, border-color 0.2s ease-in-out;
  border: 2px solid transparent;
}

.btn:hover {
  background: #e0b43c;
}

.btn-outline {
  background: var(--bg-dark);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-dark);
}

/* Section Headings */
h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

/* About Preview Section */
.about-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Listings Preview Section (Dla strony głównej, jeśli używasz) */
.listings-preview .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bg-medium);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 1.5rem;
}

.card h3 {
  margin: 0.5rem 0;
  font-size: 1.4rem;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card .price {
  font-weight: 700;
  color: var(--gold);
  font-size: 1.25rem;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.card-link:hover {
  color: #e0b43c;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.service {
  background: var(--bg-medium);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background 0.3s ease;
}

.service:hover {
  transform: translateY(-5px);
  background: var(--bg-light);
}

.service i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.service br {
  display: none;
}

.service {
  color: var(--text-primary);
  font-weight: 600;
}

/* --- Strony wewnętrzne (np. Kup) --- */
.page {
  padding-top: 8rem;
  padding-bottom: 4rem;
  min-height: calc(100vh - 120px);
}

.page h1 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.page p {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Formularz (ogólny, nie mylić z .add-offer-form) --- */
.form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-medium);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form input[type="number"],
.form select {
  width: 100%;
  padding: 0.8rem 1rem;
  margin-top: 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 194, 66, 0.3);
}

.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f5c242'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.2em;
  padding-right: 2.5rem;
}

.currency-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.currency-switch label {
  margin-bottom: 0;
}

.form .btn {
  width: 100%;
  margin-top: 2rem;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
}

/* Dostosowanie stopki dla stron, gdzie są dodatkowe linki (np. Kontakt) */
.site-footer .footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
}

.site-footer .footer-inner a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer .footer-inner a:hover {
  color: var(--gold);
}

/* Styles for the map container */
.map-container {
  margin-top: 3rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.map-container h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.map-container h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* NOWE STYLE DLA LISTY NIERUCHOMOŚCI (nieruchomosci.html) */

/* Kontener dla wszystkich ofert */
.listings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Pojedyncza oferta (karta) */
.listing {
  background: var(--bg-medium);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.listing:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
}

.listing img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.listing div {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.listing h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
  color: var(--text-primary);
}

.listing p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.4;
}

/* Filtry kategorii (globalnie, jeśli używasz filtrów na nieruchomosci.html) */
.filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.filters .btn {
  padding: 0.6rem 1rem;
}

.filters .btn.active {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

.no-results {
  text-align: center;
  color: var(--text-secondary);
  margin-top: 2rem;
}


/* Responsywność */
@media (max-width: 992px) {
  .form-section { /* Dodane z HTML */
    padding: 30px 0 80px;
  }
  .add-offer-form { /* Dodane z HTML */
    padding: 26px;
  }
  .hero-intro h1 {
    font-size: 2.4rem;
  }
  .page h1 {
    font-size: 2.5rem;
  }
  body::before,
  body::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-dark);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-nav.show {
    display: flex;
  }

  .main-nav a {
    padding: 0.8rem 1.5rem;
    text-align: center;
    width: 100%;
    color: var(--text-primary);
  }

  .main-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
  }

  .nav-toggle {
    display: block;
  }
  .form-grid { /* Dodane z HTML */
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .add-offer-form { /* Dodane z HTML */
    padding: 20px;
    border-radius: 12px;
  }
  .hero {
    height: auto;
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .hero-intro h1 {
    font-size: 2rem;
  }

  .hero-intro p {
    font-size: 1rem;
  }

  h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .about-preview {
    flex-direction: column;
    text-align: center;
  }

  .about-text, .about-image {
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .card {
    width: 100%;
  }

  .page {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
  .page h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }
  .page p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .form {
    padding: 1.5rem;
    border-radius: 8px;
  }

  .map-container iframe {
    height: 300px;
  }

  .listings {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  .listing img {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .add-offer-form { /* Dodane z HTML */
    padding: 16px;
  }
  .add-offer-form h1 { /* Dodane z HTML */
    font-size: 1.4rem;
  }
  .btn.main-btn { /* Dodane z HTML */
    padding: 12px;
    font-size: .98rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 300px;
    margin-bottom: 0.5rem;
  }
  .hero-cta .btn:last-child {
    margin-bottom: 0;
  }

  .hero-intro img {
    height: 80px;
  }
  .hero-intro h1 {
    font-size: 1.8rem;
  }
  .hero-intro p {
    font-size: 0.9rem;
  }

  .form {
    padding: 1rem;
  }
  .form label {
    font-size: 0.9rem;
  }
  .form input,
  .form select,
  .form .btn {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
  }
  .currency-switch label {
    white-space: nowrap;
  }

  .map-container iframe {
    height: 250px;
  }

  .listings {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  .listing img {
    height: 160px;
  }
  .listing h3 {
    font-size: 1.2rem;
  }
  .listing p {
    font-size: 0.85rem;
  }
}