/* ============================================================
   Strony landing / treściowe — wspólne style (oba portale)
   Wymaga: otoauta.css (tokeny) + listing.css (slim header)
   ============================================================ */
body { background: var(--bg); }
.ld-container { max-width: 1180px; margin: 0 auto; padding-inline: 16px; }
.ld-narrow { max-width: 880px; }

/* Hero */
.ld-hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(135deg, var(--navy-900), var(--navy-950)); }
.ld-hero--img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,18,40,.92), rgba(8,18,40,.6)); z-index: 1; }
.ld-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: .5; }
.ld-hero__in { position: relative; z-index: 2; padding: 56px 0 60px; }
.ld-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-400); background: rgba(245,99,30,.12); border: 1px solid rgba(245,99,30,.3); padding: .35rem .8rem; border-radius: 999px; }
.ld-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.03em; line-height: 1.04; margin: 16px 0 12px; color: #fff; max-width: 760px; }
.ld-hero p { font-size: clamp(1rem, 2.2vw, 1.2rem); color: #c4cee0; max-width: 600px; margin: 0 0 22px; }
.ld-hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ld-hero__stats { display: flex; gap: 30px; flex-wrap: wrap; margin-top: 32px; }
.ld-hero__stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -.02em; }
.ld-hero__stat span { font-size: .82rem; color: #aab8d2; }

/* Sekcje */
.ld-sec { padding: 50px 0; }
.ld-sec--alt { background: #fff; border-block: 1px solid var(--line); }
.ld-sec__h { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.ld-sec__h .k { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-600); }
.ld-sec__h h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3.6vw, 2.2rem); letter-spacing: -.02em; margin: 8px 0 8px; }
.ld-sec__h p { color: var(--muted); font-size: 1rem; }

/* Feature grid */
.ld-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px){ .ld-feats { grid-template-columns: 1fr; } }
.ld-feat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-sm); transition: .16s; }
.ld-feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ld-feat__ic { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; font-size: 1.4rem; background: var(--navy-50); color: var(--navy-700); margin-bottom: 14px; }
.ld-feat h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin: 0 0 7px; }
.ld-feat p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.6; }

/* Kroki (jak to działa) */
.ld-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 820px){ .ld-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){ .ld-steps { grid-template-columns: 1fr; } }
.ld-step { text-align: center; position: relative; }
.ld-step__n { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(155deg, var(--orange-400), var(--orange-600)); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: 0 8px 20px rgba(245,99,30,.3); }
.ld-step h3 { font-family: var(--font-display); font-weight: 800; font-size: 1rem; margin: 0 0 6px; }
.ld-step p { color: var(--muted); font-size: .86rem; margin: 0; }

/* Kalkulator */
.ld-calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
@media (max-width: 760px){ .ld-calc { grid-template-columns: 1fr; } }
.ld-calc__form { padding: 28px; }
.ld-calc__form h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin: 0 0 18px; }
.ld-ctrl { margin-bottom: 18px; }
.ld-ctrl label { display: flex; justify-content: space-between; font-size: .86rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.ld-ctrl label b { color: var(--ink); font-family: var(--font-display); }
.ld-ctrl input[type=range] { width: 100%; accent-color: var(--orange-500); }
.ld-calc__res { background: linear-gradient(160deg, var(--navy-800), var(--navy-950)); color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.ld-calc__res .lbl { font-size: .82rem; color: #aab8d2; }
.ld-calc__big { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.02em; line-height: 1; margin: 6px 0 4px; }
.ld-calc__big small { font-size: .35em; color: #aab8d2; font-weight: 700; }
.ld-calc__row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.ld-calc__row span { color: #aab8d2; }
.ld-calc__row b { font-family: var(--font-display); }

/* CTA band */
.ld-cta { background: linear-gradient(120deg, var(--orange-600), var(--orange-500)); color: #fff; border-radius: 22px; padding: 40px; text-align: center; }
.ld-cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 0 0 8px; color: #fff; }
.ld-cta p { color: rgba(255,255,255,.9); margin: 0 0 20px; }
.btn-white { background: #fff; color: var(--navy-800); }
.btn-white:hover { filter: brightness(.96); }

/* Aukcje grid */
.auc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1080px){ .auc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px){ .auc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .auc-grid { grid-template-columns: 1fr; } }
.auc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: .16s; }
.auc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.auc-card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--bg-2); }
.auc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.auc-card__timer { position: absolute; left: 8px; bottom: 8px; background: rgba(8,18,40,.82); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); color: #fff; font-weight: 800; font-size: .82rem; padding: .3rem .6rem; border-radius: 8px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.auc-card__timer.ending { background: var(--orange-600); }
.auc-card__live { position: absolute; right: 8px; top: 8px; background: #e3342f; color: #fff; font-size: .64rem; font-weight: 800; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px; display: inline-flex; align-items: center; gap: 5px; }
.auc-card__live .d { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: aucpulse 1.2s infinite; }
@keyframes aucpulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.auc-card__b { padding: 13px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.auc-card__t { font-family: var(--font-display); font-weight: 700; font-size: .95rem; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.auc-card__bid { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.auc-card__bid .lbl { font-size: .72rem; color: var(--muted); }
.auc-card__bid .v { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--navy-800); }
.auc-card__min { font-size: .7rem; font-weight: 700; padding: .2rem .45rem; border-radius: 6px; }
.min-ok { background: var(--green-100); color: var(--green-600); }
.min-no { background: var(--gold-100); color: var(--gold-600); }
.min-none { background: var(--navy-50); color: var(--navy-700); }
.auc-card__foot { display: flex; gap: 7px; }
.auc-card__foot .btn-oa { flex: 1; padding: .5rem; font-size: .82rem; }

/* Inwestycje */
.inv-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: .16s; }
.inv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.inv-card__media { position: relative; aspect-ratio: 16/10; }
.inv-card__media img { width: 100%; height: 100%; object-fit: cover; }
.inv-card__stage { position: absolute; top: 10px; left: 10px; background: var(--navy-700); color: #fff; font-size: .68rem; font-weight: 800; padding: .25rem .6rem; border-radius: 6px; }
.inv-card__b { padding: 16px 18px; }
.inv-card__t { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.inv-card__loc { font-size: .84rem; color: var(--muted); margin: 3px 0 10px; }
.inv-card__row { display: flex; justify-content: space-between; font-size: .85rem; padding: 6px 0; border-top: 1px solid var(--line-2); }
.inv-card__row b { font-family: var(--font-display); color: var(--navy-800); }

/* Treść / FAQ / docs */
.doc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: var(--shadow-sm); }
.doc h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; margin: 26px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.7; font-size: .95rem; }
.doc ul { padding-left: 20px; }
.faq-item { border: 1px solid var(--line); border-radius: 13px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.faq-q { padding: 15px 18px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq-q i { transition: transform .2s; color: var(--orange-500); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a__in { padding: 0 18px 16px; color: var(--muted); line-height: 1.65; font-size: .9rem; }

/* Pricing */
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px){ .pr-grid { grid-template-columns: 1fr; } }

/* ===== Auth ===== */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1.1fr .9fr; }
@media (max-width: 820px){ .auth-wrap { grid-template-columns: 1fr; } }
.auth-side { position: relative; background: linear-gradient(155deg, var(--navy-800), var(--navy-950)); color: #fff; overflow: hidden; display: flex; align-items: center; }
.auth-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.auth-side__in { position: relative; z-index: 2; padding: 48px; }
.auth-side h2 { font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -.02em; color: #fff; }
.auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 14px; }
.auth-side li { display: flex; gap: 11px; align-items: flex-start; color: #c4cee0; font-size: .95rem; }
.auth-side li i { color: var(--orange-400); font-size: 1.2rem; }
@media (max-width: 820px){ .auth-side { display: none; } }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -.02em; margin: 0 0 4px; }
.auth-card .sub { color: var(--muted); font-size: .92rem; margin: 0 0 22px; }
.auth-soc { display: flex; flex-direction: column; gap: 9px; }
.auth-sbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 11px; padding: .7rem; font-weight: 700; font-size: .9rem; color: var(--ink); cursor: pointer; transition: .14s; }
.auth-sbtn:hover { border-color: var(--navy-500); background: var(--navy-50); }
.auth-sbtn svg { width: 20px; height: 20px; }
.auth-div { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted-2); font-size: .8rem; }
.auth-div::before, .auth-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-field { margin-bottom: 13px; }
.auth-field label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.auth-switch a { color: var(--navy-700); font-weight: 700; }
.auth-seg { display: flex; gap: 6px; background: var(--bg-2); border-radius: 11px; padding: 4px; margin-bottom: 16px; }
.auth-seg button { flex: 1; border: 0; background: transparent; font-weight: 700; font-size: .85rem; color: var(--muted); padding: .55rem; border-radius: 8px; cursor: pointer; }
.auth-seg button.active { background: #fff; color: var(--navy-700); box-shadow: var(--shadow-sm); }

/* ===== Inwestycja — detal ===== */
.invd-hero { position: relative; aspect-ratio: 21/8; border-radius: 18px; overflow: hidden; }
@media (max-width: 700px){ .invd-hero { aspect-ratio: 16/10; } }
.invd-hero img { width: 100%; height: 100%; object-fit: cover; }
.invd-hero__ov { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,18,40,.82), transparent 55%); }
.invd-hero__c { position: absolute; left: 24px; bottom: 20px; right: 24px; color: #fff; }
.invd-hero__c h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem,3.4vw,2.2rem); color: #fff; margin: 0 0 6px; }
.invd-units { width: 100%; border-collapse: collapse; }
.invd-units th, .invd-units td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line-2); font-size: .88rem; }
.invd-units th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); }
.invd-units td b { font-family: var(--font-display); color: var(--navy-800); }
.invd-units .av { font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: 6px; }
.av-yes { background: var(--green-100); color: var(--green-600); }
.av-no { background: var(--bg-2); color: var(--muted); }
