/* ============================================================
   Dęborogi.pl — premium natura
   ============================================================ */

:root {
  --bg:        #0b1210;
  --bg-2:      #0f1a15;
  --surface:   #14211b;
  --surface-2: #1a2a22;
  --line:      rgba(233, 226, 208, 0.11);
  --line-2:    rgba(233, 226, 208, 0.2);
  --fg:        #eef1ea;
  --fg-2:      #c6cfc4;
  --muted:     #8f9d92;
  --gold:      #d4a94f;
  --gold-2:    #f0cf88;
  --green:     #4d8f63;
  --las:       #3f8f5f;
  --skraj:     #8fae4b;
  --otw:       #cbb26a;
  --warn:      #e0a33c;
  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1220px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--gold); color: #17110026; padding: 12px 18px;
}
.skip:focus { left: 12px; top: 12px; color: #1a1300; border-radius: 8px; }

/* ---------------- header ---------------- */

.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(11, 18, 16, 0);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.hdr.stuck {
  background: rgba(10, 17, 14, 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}
.hdr-in { display: flex; align-items: center; gap: 22px; height: 72px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--fg); flex: 0 0 auto;
}
.brand-mark { width: 26px; height: 26px; color: var(--gold); }
.brand-txt {
  font-family: var(--serif); font-size: 1.28rem; letter-spacing: -0.01em;
}
.brand-txt em { font-style: normal; color: var(--gold); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--fg-2); font-size: 0.9rem;
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.nav-contact { display: none; }

.hdr-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav + .hdr-right { margin-left: 0; }

.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.lang button {
  background: none; border: 0; padding: 6px 11px; cursor: pointer;
  font-size: 0.76rem; letter-spacing: .06em; color: var(--muted);
  transition: color .18s, background .18s;
}
.lang button:hover { color: var(--fg); }
.lang button.on { background: var(--gold); color: #1a1300; font-weight: 600; }

.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span {
  display: block; width: 22px; height: 2px; margin: 4px 0;
  background: var(--fg); transition: transform .25s, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.94rem; font-weight: 550; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-gold { background: var(--gold); color: #1a1300; }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: var(--line-2); color: var(--fg); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-solid { background: var(--surface-2); border-color: var(--line); color: var(--fg); }
.btn-solid:hover { border-color: var(--gold); color: var(--gold); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------------- hero ---------------- */

.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 70px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(11, 18, 16, 0.55) 45%, rgba(11, 18, 16, 0.35) 100%),
    linear-gradient(100deg, rgba(8, 14, 11, 0.88) 0%, rgba(8, 14, 11, 0.25) 62%);
}
.hero-in { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 18px; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold);
}
.hero-h1 {
  margin: 0; font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.3rem, 6.4vw, 4.6rem); line-height: 1.03; letter-spacing: -0.025em;
  max-width: 19ch;
}
.hero-h1 em { font-style: normal; color: var(--gold); display: block; }
.hero-h1 span { display: block; }
.hero-h1 span:last-child { font-size: 0.52em; color: var(--fg-2); margin-top: 0.35em; letter-spacing: -0.01em; }

.hero-lead {
  margin: 26px 0 0; max-width: 52ch; color: var(--fg-2); font-size: 1.06rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px; margin: 52px 0 0; padding: 0;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stats > div { background: rgba(10, 17, 14, 0.62); padding: 18px 20px; backdrop-filter: blur(6px); }
.stats dt { font-size: 0.72rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted); }
.stats dd {
  margin: 6px 0 0; font-family: var(--serif); font-size: 1.72rem; line-height: 1.1; color: var(--fg);
}
.stats dd span { font-size: 0.5em; color: var(--muted); font-family: var(--sans); }

.hero-scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; color: var(--muted); animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ---------------- sections ---------------- */

.sec { padding: 96px 0; position: relative; }
.sec-alt { background: var(--bg-2); }
.kicker {
  margin: 0 0 12px; font-size: 0.73rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.sec-h2 {
  margin: 0 0 18px; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em;
  max-width: 26ch;
}
.sec-lead { margin: 0 0 36px; max-width: 66ch; color: var(--fg-2); }
.sec-lead-warn {
  border-left: 2px solid var(--warn); padding-left: 16px; color: var(--fg-2);
}

/* ---------------- cards ---------------- */

.cards {
  display: grid; gap: 18px; margin-top: 42px;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  transition: border-color .22s ease, transform .22s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-ic {
  display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px;
  border-radius: 11px; background: rgba(212, 169, 79, 0.11); color: var(--gold);
}
.card-ic svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 1.06rem; font-weight: 600; }
.card p { margin: 0; color: var(--fg-2); font-size: 0.93rem; }

/* ---------------- map filters ---------------- */

.map-filters {
  display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: flex-end;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px;
}
.f-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.f-lab {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.f-group input[type="search"], .f-group select, .ci input, .ci select {
  background: var(--bg); border: 1px solid var(--line-2); color: var(--fg);
  border-radius: var(--radius-sm); padding: 9px 12px; font-size: 0.92rem; min-width: 120px;
}
.f-group input[type="search"]:focus-visible, .ci input:focus-visible, .ci select:focus-visible,
.f-group select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.f-range { display: flex; align-items: center; gap: 12px; }
.f-range output { font-variant-numeric: tabular-nums; font-size: 0.86rem; color: var(--fg-2); min-width: 92px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; height: 4px; width: 170px;
  background: var(--line-2); border-radius: 99px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--gold); cursor: pointer; border: 0;
}
input[type="range"]::-moz-range-thumb {
  width: 17px; height: 17px; border-radius: 50%; background: var(--gold);
  cursor: pointer; border: 0;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px;
  font-size: 0.83rem; color: var(--fg-2); user-select: none;
  transition: background .18s, border-color .18s, color .18s;
}
.chip input { accent-color: var(--gold); margin: 0; }
.chip:has(input:checked) { border-color: var(--gold); color: var(--gold); background: rgba(212, 169, 79, 0.09); }

/* ---------------- map ---------------- */

.map-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 18px; align-items: start;
}
.map-box {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 904 / 758;
}
#map-svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#map-svg.dragging { cursor: grabbing; }

.map-tools {
  position: absolute; z-index: 5; top: 12px; left: 12px; right: 12px;
  display: flex; justify-content: space-between; gap: 10px; pointer-events: none;
}
.map-tools > * { pointer-events: auto; }
.seg, .zoombar {
  display: flex; background: rgba(10, 17, 14, 0.84); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden;
}
.seg button, .zoombar button {
  background: none; border: 0; cursor: pointer; padding: 8px 15px;
  font-size: 0.83rem; color: var(--fg-2); transition: background .18s, color .18s;
}
.zoombar button { width: 38px; padding: 8px 0; font-size: 1rem; }
.seg button:hover, .zoombar button:hover { background: rgba(255, 255, 255, 0.08); color: var(--fg); }
.seg button.on { background: var(--gold); color: #1a1300; font-weight: 600; }

.map-legend {
  position: absolute; z-index: 5; left: 12px; bottom: 12px;
  display: flex; flex-wrap: wrap; gap: 6px 14px; max-width: calc(100% - 24px);
  background: rgba(10, 17, 14, 0.84); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 13px;
  font-size: 0.76rem; color: var(--fg-2);
}
.map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 13px; height: 13px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.35); }
.sw-las { background: var(--las); }
.sw-skraj { background: var(--skraj); }
.sw-otw { background: var(--otw); }
.sw-road { background: #6d757a; }
.sw-tbd { background: repeating-linear-gradient(45deg, var(--warn) 0 3px, transparent 3px 6px); border-color: var(--warn); }

.map-hint {
  position: absolute; z-index: 4; right: 12px; bottom: 12px;
  background: rgba(10, 17, 14, 0.8); border: 1px solid var(--line);
  border-radius: 8px; padding: 7px 12px; font-size: 0.76rem; color: var(--muted);
  transition: opacity .3s;
}
.map-hint.hide { opacity: 0; }

.map-tip {
  position: absolute; z-index: 8; pointer-events: none;
  background: rgba(8, 14, 11, 0.95); border: 1px solid var(--gold);
  border-radius: 9px; padding: 8px 12px; font-size: 0.82rem; line-height: 1.45;
  transform: translate(-50%, -128%); white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}
.map-tip b { color: var(--gold); }
.map-tip span { color: var(--muted); }

/* plot polygons */
.plot { cursor: pointer; transition: fill-opacity .16s, stroke .16s; }
.plot-fill { fill-opacity: 0.42; stroke: rgba(9, 15, 12, 0.85); stroke-width: 1; }
.plot-fill.s-las { fill: var(--las); }
.plot-fill.s-skraj { fill: var(--skraj); }
.plot-fill.s-otwarta { fill: var(--otw); }
.plot:hover .plot-fill { fill-opacity: 0.72; }
.plot.sel .plot-fill { fill-opacity: 0.85; stroke: var(--gold-2); stroke-width: 2.5; }
.plot.dim { opacity: 0.14; pointer-events: none; }
.plot-tbd { fill: url(#tbd-hatch); stroke: var(--warn); stroke-width: 1.6; stroke-dasharray: 6 4; }
.road-shape { fill: #6d757a; fill-opacity: 0.5; stroke: rgba(255,255,255,.35); stroke-width: 1; }
#map-svg.orto .plot-fill { fill-opacity: 0.3; stroke: rgba(255, 255, 255, 0.55); }
#map-svg.orto .plot:hover .plot-fill { fill-opacity: 0.55; }
#map-svg.orto .plot.sel .plot-fill { fill-opacity: 0.62; stroke: var(--gold-2); }
#map-svg.orto .road-shape { fill-opacity: 0.22; }
.sch-bg { fill: #0e1813; }
.plot-lab {
  fill: #f3f6f1; font-family: var(--sans); font-weight: 600; text-anchor: middle;
  paint-order: stroke; stroke: rgba(6, 11, 9, 0.75); stroke-width: 3px; pointer-events: none;
  dominant-baseline: middle;
}
.plot-lab.dim { opacity: 0.12; }

/* ---------------- panel ---------------- */

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; position: sticky; top: 92px;
  min-height: 320px;
}
.panel-empty { color: var(--muted); text-align: center; padding: 42px 8px; }
.panel-empty svg { margin: 0 auto 14px; color: var(--line-2); }
.panel-empty p { margin: 0; font-size: 0.9rem; }

.p-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.p-nr { font-family: var(--serif); font-size: 1.85rem; line-height: 1.1; }
.p-badge {
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--green); color: #7fc294; border-radius: 999px; padding: 3px 10px;
}
.p-price { margin: 14px 0 2px; font-family: var(--serif); font-size: 2.1rem; color: var(--gold); line-height: 1.05; }
.p-pm2 { margin: 0 0 18px; color: var(--muted); font-size: 0.86rem; }
.p-rows { margin: 0 0 18px; padding: 0; display: grid; gap: 1px; background: var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.p-rows > div { display: flex; justify-content: space-between; gap: 12px; background: var(--surface-2); padding: 9px 13px; }
.p-rows dt { color: var(--muted); font-size: 0.82rem; }
.p-rows dd { margin: 0; font-size: 0.87rem; text-align: right; font-variant-numeric: tabular-nums; }
.p-warn {
  display: flex; gap: 9px; background: rgba(224, 163, 60, 0.1);
  border: 1px solid rgba(224, 163, 60, 0.4); border-radius: var(--radius-sm);
  padding: 11px 13px; margin-bottom: 16px; font-size: 0.83rem; color: #f0cf9a;
}
.p-warn svg { flex: 0 0 auto; margin-top: 2px; }
.p-btns { display: grid; gap: 8px; }
.p-btns .btn { width: 100%; }
.p-links { display: flex; gap: 14px; margin: 14px 0 0; flex-wrap: wrap; }
.p-links button, .p-links a {
  background: none; border: 0; padding: 0; cursor: pointer; font-size: 0.83rem;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.p-links button:hover, .p-links a:hover { color: var(--gold); }

.map-note, .tbl-note {
  margin: 18px 0 0; font-size: 0.79rem; color: var(--muted); max-width: 80ch;
}

/* ---------------- table ---------------- */

.table-scroll {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: auto hidden;
  background: var(--surface);
}
.tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tbl thead th {
  position: relative; text-align: left; padding: 0; background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl thead th button {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 13px 14px; cursor: pointer; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); transition: color .18s;
}
.tbl thead th button:hover { color: var(--fg); }
.tbl thead th.sorted-asc button::after { content: " ↑"; color: var(--gold); }
.tbl thead th.sorted-desc button::after { content: " ↓"; color: var(--gold); }
.tbl tbody tr { border-bottom: 1px solid var(--line); cursor: pointer; transition: background .16s; }
.tbl tbody tr:last-child { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.tbl tbody tr.sel { background: rgba(212, 169, 79, 0.12); }
.tbl td { padding: 11px 14px; vertical-align: middle; font-variant-numeric: tabular-nums; }
.tbl .t-nr { font-family: var(--serif); font-size: 1.05rem; }
.tbl .t-price { color: var(--gold); font-weight: 550; white-space: nowrap; }
.th-act, .tbl td:last-child { text-align: right; }
.t-ask {
  background: none; border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 13px; font-size: 0.78rem; cursor: pointer; white-space: nowrap;
  transition: border-color .18s, color .18s;
}
.t-ask:hover { border-color: var(--gold); color: var(--gold); }

.pill {
  display: inline-block; border-radius: 999px; padding: 2px 10px; font-size: 0.75rem;
  border: 1px solid transparent; white-space: nowrap;
}
.pill-las { background: rgba(63, 143, 95, 0.16); color: #7fc294; border-color: rgba(63, 143, 95, 0.4); }
.pill-skraj { background: rgba(143, 174, 75, 0.14); color: #bcd07f; border-color: rgba(143, 174, 75, 0.38); }
.pill-otwarta { background: rgba(203, 178, 106, 0.13); color: #e0cd96; border-color: rgba(203, 178, 106, 0.36); }
.pill-road { background: rgba(77, 143, 99, 0.14); color: #8fc7a2; border-color: rgba(77, 143, 99, 0.36); }
.pill-tbd { background: rgba(224, 163, 60, 0.13); color: #f0c483; border-color: rgba(224, 163, 60, 0.42); }

.tbl-empty { padding: 34px 14px; text-align: center; color: var(--muted); }

/* ---------------- gallery ---------------- */

.gal {
  display: grid; gap: 14px; margin-top: 38px;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
}
.gal-i {
  position: relative; padding: 0; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in; display: block;
  aspect-ratio: 4 / 3; transition: border-color .22s, transform .22s;
}
.gal-i:hover { border-color: var(--gold); transform: translateY(-2px); }
.gal-lg { grid-column: span 2; aspect-ratio: 16 / 9; }
.gal-i img { width: 100%; height: 100%; object-fit: cover; }
.gal-cap {
  position: absolute; inset: auto 0 0 0; padding: 26px 16px 13px; text-align: left;
  font-size: 0.83rem; color: #eef1ea;
  background: linear-gradient(to top, rgba(6, 11, 9, 0.92), transparent);
}

/* ---------------- okolica ---------------- */

.okolica { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 52px; align-items: center; }
.okolica-txt p { color: var(--fg-2); }
.dist { list-style: none; margin: 30px 0 0; padding: 0; border-top: 1px solid var(--line); }
.dist li {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.d-name { color: var(--fg-2); font-size: 0.94rem; }
.d-val { font-family: var(--serif); font-size: 1.25rem; color: var(--gold); white-space: nowrap; }
.dist-note { margin: 12px 0 0; font-size: 0.78rem; color: var(--muted); }
.okolica-img { display: grid; gap: 14px; }
.okolica-img img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4/3; object-fit: cover; }

/* ---------------- calculator ---------------- */

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 38px; }
.calc-in, .calc-out {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
}
.ci { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.ci:last-child { margin-bottom: 0; }
.ci label { font-size: 0.8rem; letter-spacing: 0.06em; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.ci label b { color: var(--gold); font-variant-numeric: tabular-nums; }
.ci input[type="range"] { width: 100%; }
.ci input[type="number"], .ci select { width: 100%; }

.co-main { text-align: center; padding: 8px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.co-lab { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.co-big { display: block; margin-top: 8px; font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.9rem); color: var(--gold); line-height: 1.05; }
.co-rows { margin: 0; padding: 0; }
.co-rows > div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; }
.co-rows dt { color: var(--muted); font-size: 0.87rem; }
.co-rows dd { margin: 0; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.co-sum { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 11px !important; }
.co-sum dt { color: var(--fg) !important; font-weight: 600; }
.co-sum dd { color: var(--gold); font-weight: 600; }
.calc-out hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0 14px; }
.co-sub { margin: 0 0 8px; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.co-note { margin: 18px 0 0; font-size: 0.76rem; color: var(--muted); }

/* ---------------- faq ---------------- */

.faq { margin-top: 36px; border-top: 1px solid var(--line); max-width: 90ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 19px 40px 19px 0; position: relative; list-style: none;
  font-size: 1.02rem; font-weight: 550; transition: color .18s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold); }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--gold); line-height: 1; transition: transform .22s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 40px 22px 0; }
.faq details p { margin: 0; color: var(--fg-2); font-size: 0.94rem; }

/* ---------------- cta ---------------- */

.sec-cta { background: linear-gradient(160deg, #14241c 0%, #0d1813 100%); border-top: 1px solid var(--line); }
.cta-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 52px; align-items: center; }
.cta-h2 { margin: 0 0 12px; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.02em; }
.cta-p { margin: 0 0 26px; color: var(--fg-2); max-width: 52ch; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 11px; }
.cta-ph {
  margin: 20px 0 0; font-size: 0.8rem; color: var(--warn);
  border-left: 2px solid var(--warn); padding-left: 13px; max-width: 60ch;
}
.cta-facts { margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cta-facts > div { display: flex; justify-content: space-between; gap: 14px; background: rgba(10, 17, 14, 0.55); padding: 12px 16px; }
.cta-facts dt { color: var(--muted); font-size: 0.83rem; }
.cta-facts dd { margin: 0; font-size: 0.88rem; }

/* ---------------- footer ---------------- */

.ftr { background: var(--bg); border-top: 1px solid var(--line); padding: 44px 0 54px; }
.ftr-in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 34px; align-items: start; }
.ftr p { margin: 8px 0 0; color: var(--muted); font-size: 0.86rem; }
.ftr-note { font-size: 0.75rem !important; color: var(--muted); line-height: 1.6; }

/* ---------------- lightbox ---------------- */

.lbox {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(5, 9, 7, 0.94); padding: 5vh 6vw;
}
.lbox[hidden] { display: none; }
.lbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; object-fit: contain; }
.lbox p { margin: 16px 0 0; color: var(--fg-2); font-size: 0.9rem; text-align: center; }
.lbox-x, .lbox-nav {
  position: absolute; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2);
  color: var(--fg); cursor: pointer; border-radius: 50%; width: 46px; height: 46px;
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1;
}
.lbox-x { top: 22px; right: 22px; }
.lbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lbox-x:hover, .lbox-nav:hover { background: var(--gold); color: #1a1300; }

/* ---------------- toast ---------------- */

.toast {
  position: fixed; z-index: 300; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  background: var(--gold); color: #1a1300; padding: 11px 20px; border-radius: 999px;
  font-size: 0.88rem; font-weight: 550; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- responsive ---------------- */

@media (max-width: 1080px) {
  .map-layout { grid-template-columns: 1fr; }
  .panel { position: static; }
  .nav { display: none; }
  .burger { display: block; }
  .hdr.open .nav {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(9, 15, 12, 0.98); border-bottom: 1px solid var(--line);
    padding: 14px 24px 20px; gap: 2px; backdrop-filter: blur(14px);
  }
  .hdr.open .nav a { padding: 12px 8px; font-size: 1rem; }
  .nav-contact { display: block; }
  .okolica, .cta-in, .calc, .ftr-in { grid-template-columns: 1fr; gap: 34px; }
  .okolica-img { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* CTA w nagłówku nie mieści się obok języków i menu — zostaje pozycja Kontakt w menu */
  .hdr-right > .btn { display: none; }
  html { scroll-padding-top: 68px; }
  .sec { padding: 68px 0; }
  .wrap { padding: 0 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats dd { font-size: 1.45rem; }
  .hero { min-height: auto; padding: 116px 0 56px; }
  .hero-scroll { display: none; }
  .gal-lg { grid-column: span 1; aspect-ratio: 4/3; }
  .hide-sm { display: none; }
  .map-legend { font-size: 0.71rem; gap: 4px 10px; padding: 7px 10px; }
  .map-hint { display: none; }
  .map-box { aspect-ratio: 1 / 1; }
  .map-filters { padding: 16px; gap: 14px 18px; }
  input[type="range"] { width: 130px; }
  .lang button { padding: 6px 9px; font-size: 0.72rem; }
  .hdr-in { height: 64px; }
  .brand-txt { font-size: 1.12rem; }
  .btn { padding: 12px 18px; }
}

@media (max-width: 520px) {
  .hide-md { display: none; }
  .cta-btns .btn { width: 100%; }
}

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