/* Tesla od vás – styl podle návrhu (Bootstrap 5 + vlastní) */
:root { --ink: #111; --muted: #6b6f76; --line: #e6e7ea; --soft: #f3f4f6; }
body { font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: #fff; }
h1, h2 { letter-spacing: -0.02em; }
a { color: var(--ink); }

/* navigace */
.site-nav { border-bottom: 1px solid var(--line); background: #fff; padding: .85rem 0 0; position: sticky; top: 0; z-index: 10; }
.brand { font-size: 1.7rem; text-decoration: none; letter-spacing: -0.02em; font-weight: 300; }
.brand b { font-weight: 800; }
.menu a { text-decoration: none; color: var(--ink); padding: .5rem 1rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.menu a.active { font-weight: 700; border-bottom-color: var(--ink); }
.menu-mobile { gap: .25rem; overflow-x: auto; padding: .25rem 0 0; justify-content: center; }
.menu-mobile a { padding: .5rem .6rem; font-size: .9rem; white-space: nowrap; }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-prispet { border-radius: .6rem; font-weight: 600; padding-left: 1.4rem; padding-right: 1.4rem; }
.site-nav .btn-prispet { margin-bottom: .85rem; }

/* hero */
.hero { padding: 3.2rem 0 0; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 800; line-height: 1.05; margin-bottom: .6rem; }
.hero-sub { font-size: clamp(1.3rem, 3vw, 1.9rem); color: #50545b; margin-bottom: 1.2rem; }
.hero-text { color: #3a3d42; max-width: 34rem; }
.hero-auto { width: 100%; height: auto; }
.qr-odkaz { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); font-size: .95rem; }

/* ukazatel sbírky */
.cil { display: flex; align-items: center; gap: 1.5rem; padding: 1.6rem 0 2rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cil-stitek { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; }
.cil-castka b { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; }
.cil-castka span { color: var(--muted); font-size: 1.05rem; }
.cil-pruh { flex: 1 1 260px; height: 14px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.cil-pruh div { height: 100%; background: #2b2f36; border-radius: 99px; min-width: 6px; transition: width .6s ease; }
.cil-procenta { color: #50545b; font-size: 1.1rem; }

/* obsah */
.obsah { padding: 2.2rem 0 3rem; }
.obsah h2 { font-size: 1.9rem; font-weight: 800; margin: 0; }
.vse { color: #50545b; text-decoration: none; font-size: .95rem; }
.vse:hover { color: var(--ink); text-decoration: underline; }

/* příspěvky */
.prispevek { display: grid; grid-template-columns: 150px 210px 1fr; gap: 1rem; align-items: center; border: 1px solid var(--line); border-radius: 1rem; padding: .9rem 1.1rem; margin-bottom: .8rem; background: #fff; }
.p-jmeno { font-weight: 600; }
.p-castka { font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.p-datum { color: var(--muted); font-size: .85rem; }
.p-dil { display: flex; align-items: center; gap: .8rem; padding-left: 1rem; border-left: 1px solid var(--line); }
.p-dil img { width: 64px; height: 58px; object-fit: contain; flex: none; }
.p-na { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.p-text { border-left: 1px solid var(--line); padding-left: 1rem; min-width: 0; overflow-wrap: anywhere; }
.p-zprava { font-style: italic; margin-bottom: .45rem; }
.p-prazdna { color: var(--muted); }
.p-ai { display: flex; gap: .6rem; align-items: baseline; background: var(--soft); border-radius: .6rem; padding: .5rem .8rem; font-size: .95rem; }
.ai-ico { flex: none; }
.prazdno { border: 1px dashed #cfd1d6; border-radius: 1rem; padding: 2rem; text-align: center; color: var(--muted); }

/* TOP dárci */
.top-box { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.top-box h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.top-seznam { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.top-seznam li { display: flex; gap: .8rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.top-seznam .poradi { width: 1.6rem; color: #50545b; }
.top-seznam .jmeno { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-seznam .castka { white-space: nowrap; }
.top-velky li { font-size: 1.15rem; padding: .8rem 0; }

/* modální okno s QR */
.qr-box { display: inline-block; padding: .5rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; }
.qr-box svg { display: block; width: 100%; max-width: 180px; height: auto; }
.ucet-cislo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }

.site-foot { border-top: 1px solid var(--line); padding: 1.4rem 0; color: var(--muted); font-size: .85rem; }

@media (max-width: 991.98px) {
  .top-box { border-left: 0; padding-left: calc(var(--bs-gutter-x) * .5); border-top: 1px solid var(--line); padding-top: 1.5rem; }
  .prispevek { grid-template-columns: 1fr 1fr; }
  .p-text { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}
@media (max-width: 575.98px) {
  .prispevek { grid-template-columns: 1fr; }
  .p-dil { border-left: 0; padding-left: 0; }
  .site-nav .btn-prispet { padding-left: .9rem; padding-right: .9rem; font-size: .85rem; }
  .brand { font-size: 1.3rem; }
}
