/* =========================================================
   Nowy Adres Nieruchomości – arkusz stylów
   Kolory i czcionki zmienisz w sekcji :root poniżej.
   ========================================================= */

:root {
  /* Kolory Ostoja Nieruchomości (złoto z logo) */
  --paper: #ffffff;
  --mist: #f6f4f0;
  --ink: #23201b;
  --slate: #5f5a52;
  --line: #e4dfd6;
  --gold: #cea563;          /* kolor logo – tła i akcenty */
  --brand: #8a6834;         /* ciemniejsze złoto – tekst, przyciski (czytelne na białym) */
  --brand-dark: #6c5126;
  --brand-soft: #f4ecdd;
  --sale: #8a6834;
  --rent: #3f5566;
  --error: #b42318;

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Albert Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-img: 12px;
  --radius-ctl: 8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-dark); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--slate); max-width: 38em; }
.muted { color: var(--slate); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Przyciski ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--radius-ctl);
  background: var(--brand); color: #fff;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Nagłówek ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--brand); }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--font-body); font-weight: 500; font-size: .78rem; letter-spacing: 0; color: var(--slate); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  display: block; padding: 8px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.main-nav ul a:hover { background: var(--mist); color: var(--ink); }
.main-nav ul a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius-ctl);
    background: var(--paper); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .2s ease, background-color .2s ease;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: 12px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav ul a[aria-current="page"] { box-shadow: none; }
}

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

.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "copy media" "search search";
  gap: 0 clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-copy { grid-area: copy; padding-bottom: 88px; }
.hero-copy h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; max-width: 11em; }
.hero-media { grid-area: media; margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-img); }

.search-panel {
  grid-area: search;
  position: relative;
  margin-top: -56px;
  margin-inline: clamp(0px, 3vw, 40px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 10px 18px;
  box-shadow: 0 18px 40px -24px rgba(35, 32, 27, .35);
}

.segmented { display: inline-flex; gap: 4px; border: 0; margin: 0 0 14px; padding: 4px; background: var(--mist); border-radius: 10px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; padding: 9px 18px; border-radius: 7px; font-weight: 600; color: var(--slate); }
.segmented em { font-style: normal; font-weight: 500; color: var(--slate); opacity: .75; margin-left: 4px; font-size: .9em; }
.segmented input:checked + span { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(35, 32, 27, .12); }
.segmented input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 1px; }

.search-fields { display: grid; grid-template-columns: 1fr 1.4fr 1fr auto; gap: 12px; align-items: end; padding: 0 8px; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "media" "search"; }
  .hero-copy { padding-bottom: 24px; }
  .search-panel { margin-inline: 12px; margin-top: -40px; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .field:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .search-fields .btn { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .search-panel { margin-inline: 0; }
  .search-fields { grid-template-columns: 1fr; }
}

/* ---------- Pola formularzy ---------- */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-pair legend { font-size: .9rem; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--slate); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid #d3cdc2; border-radius: var(--radius-ctl);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%235f5a52' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 20px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input::placeholder, textarea::placeholder { color: #9a9387; }
[aria-invalid="true"] { border-color: var(--error) !important; }

.field-error { color: var(--error); font-size: .9rem; margin: 0; }
.field-pair { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field-pair legend { padding: 0; margin-bottom: 6px; }

.field-check { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brand); }
.field-check label { font-weight: 400; font-size: .92rem; color: var(--slate); }
.field-check .field-error { grid-column: 2; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sekcje ---------- */

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding-top: clamp(24px, 3vw, 40px); }
.section-tint { background: var(--mist); }
.section-title { margin-bottom: 32px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 600; }

.page-head { padding: clamp(32px, 5vw, 64px) 0 clamp(8px, 2vw, 16px); }
.page-head h1 { margin-bottom: .3em; }
.result-count { color: var(--slate); font-size: 1.05rem; margin: 0; }

/* ---------- Karty ofert ---------- */

.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 960px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .offer-grid { grid-template-columns: 1fr; gap: 32px; } }

.offer-card-link { display: block; color: inherit; text-decoration: none; }
.offer-card-link:hover { color: inherit; }
.offer-card-img { position: relative; overflow: hidden; border-radius: var(--radius-img); background: var(--mist); }
.offer-card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s ease; }
.offer-card-link:hover .offer-card-img img { transform: scale(1.03); }
.offer-card-link:hover .offer-card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.tag {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 10px; border-radius: 6px;
  font-size: .82rem; font-weight: 600; color: #fff; background: var(--sale);
}
.tag-wynajem { background: var(--rent); }

.offer-card-body { padding-top: 14px; }
.offer-card-price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; margin: 0 0 4px; line-height: 1.2; }
.offer-card-title { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; letter-spacing: 0; line-height: 1.35; margin: 0 0 4px; }
.offer-card-loc { color: var(--slate); font-size: .95rem; margin: 0 0 10px; }
.offer-card-specs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.offer-card-specs li { font-size: .88rem; padding: 3px 9px; border-radius: 999px; background: var(--mist); color: var(--ink); }
.section-tint .offer-card-specs li { background: var(--paper); }

/* ---------- Sprzedaż: kroki ---------- */

.sell-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.sell-intro p { color: var(--slate); max-width: 30em; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 56px 1fr; gap: 0 18px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--brand);
}
.steps h3 { margin: 4px 0 6px; }
.steps p { margin: 0; color: var(--slate); }
@media (max-width: 860px) { .sell-grid { grid-template-columns: 1fr; } }

/* ---------- Zespół ---------- */

.team-strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.team-strip li { display: flex; gap: 16px; align-items: center; }
.team-strip img { width: 80px; height: 80px; border-radius: 50%; flex: none; }
.team-name { font-weight: 600; margin: 0; }
.team-role { color: var(--slate); margin: 0 0 2px; font-size: .95rem; }
.team-strip a { font-weight: 500; }
@media (max-width: 860px) { .team-strip { grid-template-columns: 1fr; } }

.team-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-img); margin-bottom: 16px; }
.team-card h3 { margin: 0 0 2px; }
.team-card p { color: var(--slate); }
.team-card .team-contact { color: inherit; }
@media (max-width: 860px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- O nas ---------- */

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-media { margin: 0; position: sticky; top: 100px; }
.about-media img { border-radius: var(--radius-img); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.values { margin: 0; }
.values div { padding: 20px 0; border-top: 1px solid var(--line); }
.values dt { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 4px; }
.values dd { margin: 0; color: var(--slate); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-media { position: static; } .about-media img { aspect-ratio: 3 / 2; } }

.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { margin-bottom: .25em; }
.cta-band p { color: var(--slate); margin: 0; }

/* ---------- Lista ofert + filtry ---------- */

.listing-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }
.filters { position: sticky; top: 96px; }
.filters-form { display: grid; gap: 16px; padding: 22px; background: var(--mist); border-radius: 14px; }
.filters-form .btn { margin-top: 4px; }
.filters-toggle { display: none; }
.link-reset { font-size: .95rem; text-align: center; }

.sort-bar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 24px; }
.sort-bar label { font-weight: 600; font-size: .95rem; }
.sort-bar select { width: auto; min-width: 230px; }
.offer-grid-listing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1180px) { .offer-grid-listing { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 860px) {
  .listing-layout { grid-template-columns: 1fr; gap: 20px; }
  .filters { position: static; }
  .filters-toggle { display: inline-flex; width: 100%; }
  .filters-form { display: none; margin-top: 12px; }
  .filters-form.is-open { display: grid; }
  .no-js .filters-form { display: grid; }
  .sort-bar { justify-content: space-between; }
  .sort-bar select { min-width: 0; flex: 1; }
}
@media (max-width: 600px) { .offer-grid-listing { grid-template-columns: 1fr; } }

.empty { padding: 40px; border: 1.5px dashed var(--line); border-radius: 14px; max-width: 640px; }
.empty p { color: var(--slate); }
.empty .btn { margin-right: 12px; }

.pagination { display: flex; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
.pagination a {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: var(--radius-ctl); text-decoration: none; color: var(--ink); font-weight: 600;
}
.pagination a:hover { background: var(--mist); }
.pagination a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Szczegóły oferty ---------- */

.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; padding: 22px 0 0; font-size: .95rem; color: var(--slate); }
.breadcrumbs a { color: var(--slate); }

.offer-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 18px 0 24px; }
.offer-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 18em; margin-bottom: .25em; }
.offer-loc { color: var(--slate); margin: 0; font-size: 1.05rem; }
.offer-price { text-align: right; }
.offer-price .price { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; line-height: 1; margin: 0 0 6px; }
.offer-price .ppm { color: var(--slate); margin: 0; }
@media (max-width: 700px) { .offer-price { text-align: left; } }

.gallery { margin-bottom: 40px; }
.gallery-main { position: relative; margin: 0; border-radius: var(--radius-img); overflow: hidden; background: var(--mist); }
.gallery-main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 4px;
}
.gallery-nav:hover { background: #fff; }
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-count { position: absolute; right: 16px; bottom: 16px; padding: 4px 10px; border-radius: 6px; background: rgba(35, 32, 27, .75); color: #fff; font-size: .9rem; }
.gallery-thumbs { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 10px; overflow-x: auto; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; display: block; opacity: .7; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--brand); opacity: 1; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs img { width: 120px; height: 80px; object-fit: cover; }

.offer-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
@media (max-width: 960px) { .offer-layout { grid-template-columns: 1fr; } }

.key-facts { list-style: none; padding: 0 0 24px; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px 28px; border-bottom: 1px solid var(--line); }
.key-facts li { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }

.offer-section { padding: 28px 0 8px; }
.offer-section h2 { font-size: 1.45rem; }
.prose { max-width: 40em; }
.prose p { margin-bottom: 1.1em; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 24px; }
.features li { display: flex; gap: 10px; align-items: center; }
.features li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%238a6834'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.features li:first-letter { text-transform: uppercase; }

.details { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.details dt { color: var(--slate); }
.details dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 600px) { .details { grid-template-columns: 1fr; } }

.map { border-radius: var(--radius-img); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; }

.offer-aside { position: sticky; top: 96px; }
.agent-box { border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.agent { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.agent img { width: 60px; height: 60px; border-radius: 50%; }
.agent-name { font-weight: 600; margin: 0; font-size: 1.1rem; }
.agent-role { color: var(--slate); margin: 0; font-size: .92rem; }
.aside-title { font-size: 1.2rem; margin: 26px 0 14px; }
@media (max-width: 960px) { .offer-aside { position: static; } }

/* ---------- Formularz kontaktowy ---------- */

.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.offer-aside .field-row { grid-template-columns: 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.form-alert { padding: 12px 14px; border-radius: var(--radius-ctl); background: #fdecea; color: var(--error); font-weight: 500; }
.form-success { display: flex; gap: 14px; padding: 20px; border-radius: 12px; background: var(--brand-soft); }
.form-success svg { width: 28px; height: 28px; color: var(--brand); flex: none; }
.form-success-title { font-weight: 700; font-size: 1.1rem; margin: 0 0 4px; }
.form-success p:last-child { margin: 0; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-bottom: clamp(48px, 7vw, 96px); }
.contact-list { margin: 0 0 28px; display: grid; gap: 22px; }
.contact-list dt { font-size: .92rem; color: var(--slate); margin-bottom: 2px; }
.contact-list dd { margin: 0; }
.big-link { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; text-decoration: none; color: var(--ink); word-break: break-word; }
.big-link:hover { color: var(--brand); text-decoration: underline; }
.map-contact iframe { height: 300px; }
.contact-form-wrap { background: var(--mist); padding: clamp(22px, 4vw, 40px); border-radius: 16px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.page-404 { padding-bottom: clamp(64px, 10vw, 140px); }
.actions .btn { margin: 0 10px 10px 0; }

/* ---------- Stopka ---------- */

.site-footer { background: var(--ink); color: #c9d3d0; padding: 64px 0 28px; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #bfe0d5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-mark { color: #8fc9b6; }
.brand-light .brand-name small { color: #a9b6b2; }
.footer-brand p { margin-top: 16px; max-width: 26em; }
.footer-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 12px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.hours { margin: 0; }
.hours div { margin-bottom: 8px; }
.hours dt { color: #fff; }
.hours dd { margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; line-height: 2; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .88rem; color: #a9b6b2; }
.footer-bottom p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Ograniczony ruch ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Agent przy ofercie ---------- */

.offer-card-agent { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--slate); }
.offer-card-agent img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.agent-label { font-size: .9rem; color: var(--slate); margin: 0 0 10px; }
.agent img { object-fit: cover; }
.agent-contact { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: .95rem; word-break: break-word; }
.team-strip { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.team-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 340px)); }
.team-strip img, .team-card img { object-fit: cover; }


/* ---------- Ostoja: logo i akcenty ---------- */

.brand { gap: 12px; }
.brand-mark { width: auto; height: 46px; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; letter-spacing: .06em; text-transform: uppercase; }
.brand-name small { font-family: var(--font-display); font-weight: 400; font-size: .62rem; letter-spacing: .32em; color: var(--brand); margin-top: 4px; }
h1, h2, h3 { letter-spacing: -0.015em; }
.hero-copy h1 { font-weight: 600; letter-spacing: -0.03em; }
.offer-card-price, .offer-price .price, .key-facts li { letter-spacing: -0.01em; }
.steps li::before { color: var(--gold); font-weight: 500; }
.main-nav ul a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--gold); }

.hero { position: relative; }
.hero-media { position: relative; }
.hero-media::after {
  content: ""; position: absolute; right: -14px; top: -14px; width: 42%; height: 46%;
  border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); border-top-right-radius: 18px;
  pointer-events: none;
}
@media (max-width: 860px) { .hero-media::after { right: -8px; top: -8px; } }

.section-tint { background: var(--mist); }
.site-footer { background: var(--ink); color: #cfc8bc; }
.site-footer a:hover { color: var(--gold); }
.footer-logo { display: inline-block; }
.footer-logo img { width: 150px; height: auto; }
.footer-bottom { color: #a59d90; }

.cta-band { padding: clamp(28px, 4vw, 44px); background: var(--gold); border-radius: 16px; color: var(--ink); }
.cta-band p { color: #3d342a; }
.cta-band .btn { background: var(--ink); }
.cta-band .btn:hover { background: #000; }

/* ---------- Opis oferty ---------- */
.prose h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: 0; margin: 1.6em 0 .5em; }
.prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .3em; }
.prose li::marker { color: var(--gold); }
.js .prose.is-long.is-clamped { max-height: 560px; overflow: hidden; position: relative; }
.js .prose.is-long.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(rgba(255,255,255,0), var(--paper)); }
.desc-toggle { margin-top: 12px; }
.search-title { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; margin: 6px 8px 14px; }
