/* invest.bogdan.sk – doplnky k site.css */
.logo-sub { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-left: 6px; vertical-align: middle; }
.inv-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #163a6a 100%); color: #fff; padding: 130px 0 56px; position: relative; overflow: hidden; }
.inv-hero::after { content: ""; position: absolute; inset: 0; background: url('https://bogdan.sk/assets/img/photo/invest.webp') center/cover; opacity: .14; }
.inv-hero .container { position: relative; z-index: 1; }
.inv-hero h1 { color: #fff; max-width: 860px; }
.inv-hero h1 em { font-style: normal; color: var(--gold-2); }
.inv-hero .lead { color: rgba(255, 255, 255, .85); max-width: 720px; }
.crumbs { font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 14px; }
.crumbs a { color: var(--gold-2); }
.crumbs span { margin: 0 6px; opacity: .6; }
.home .inv-hero { padding: 150px 0 70px; }

/* rozcestnik */
.calc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.calc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.calc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.calc-card .ic { width: 48px; height: 48px; border-radius: 14px; background: rgba(201, 162, 74, .14); color: var(--gold-ink); display: grid; place-items: center; }
[data-theme="dark"] .calc-card .ic { color: var(--gold-2); }
.calc-card .ic svg { width: 26px; height: 26px; }
.calc-card h3 { margin: 6px 0 0; }
.calc-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.calc-card .go { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--gold-ink); }
[data-theme="dark"] .calc-card .go { color: var(--gold-2); }
.macro { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.macro div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 14px 16px; }
.macro strong { display: block; font-family: var(--head); font-size: 1.5rem; color: var(--gold-2); }
.macro span { font-size: .82rem; color: rgba(255, 255, 255, .8); line-height: 1.35; display: block; }

/* kalkulacka */
.calc { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 26px; align-items: start; }
.calc-in { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.calc-in h2, .calc-in h3 { font-size: 1.1rem; margin-bottom: 14px; }
.calc-out { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.cf { margin-bottom: 16px; }
.cf label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.cf-row { display: flex; gap: 12px; align-items: center; }
.cf-row input[type=range] { flex: 1; accent-color: var(--gold); min-width: 0; }
.cf-num { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); padding: 0 10px; }
.cf-num input { width: 92px; border: 0; background: transparent; color: var(--text); font: inherit; font-weight: 700; padding: 8px 0; text-align: right; }
.cf-num input:focus { outline: none; }
.cf-num:focus-within { border-color: var(--gold); }
.cf-num em { font-style: normal; color: var(--muted); font-size: .85rem; margin-left: 4px; white-space: nowrap; }
.cf-hint { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; line-height: 1.35; }
.cf-check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; margin: 6px 0 14px; }
.cf-check input { margin-top: 4px; accent-color: var(--gold); }
.cf-sel { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.presets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.presets button { border: 1.5px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.presets button.on, .presets button:hover { border-color: var(--gold); background: rgba(201, 162, 74, .12); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi span { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.kpi strong { display: block; font-family: var(--head); font-size: 1.35rem; font-weight: 800; margin-top: 2px; word-break: break-word; }
.kpi.main { background: var(--navy); border-color: var(--navy); color: #fff; }
.kpi.main span { color: rgba(255, 255, 255, .75); }
.kpi.main strong { color: var(--gold-2); font-size: 1.6rem; }
.calc-note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 12px 16px; margin: 0; font-size: .95rem; }
.calc-note:empty { display: none; }
.warn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.warn-list li { background: rgba(214, 69, 69, .08); border: 1px solid rgba(214, 69, 69, .3); border-radius: 10px; padding: 10px 14px; font-size: .92rem; }
.warn-list li.ok { background: rgba(31, 157, 85, .08); border-color: rgba(31, 157, 85, .3); }
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 10px; }
.chart-box h3 { font-size: 1rem; margin: 0 0 8px; }
.g-wrap { position: relative; }
.g-wrap svg { display: block; overflow: visible; }
.g-grid { stroke: var(--line); stroke-width: 1; }
.g-lab { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.g-hover { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.g-tip { position: absolute; top: 6px; min-width: 180px; max-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 8px 10px; font-size: .8rem; pointer-events: none; z-index: 2; }
.g-tip strong { display: block; margin-bottom: 4px; }
.g-tip i, .g-legend i, .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.g-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .82rem; color: var(--muted); margin-top: 8px; }
.calc-table summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.inv-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.inv-table th, .inv-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.inv-table th:first-child, .inv-table td:first-child { text-align: left; }
.inv-table th { background: var(--surface-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.inv-table tr:last-child td { border-bottom: 0; }
.inv-table td small { display: block; color: var(--muted); font-size: .76rem; white-space: normal; }
.inv-table td.name { white-space: normal; min-width: 220px; }
.inv-table .pos { color: var(--ok); font-weight: 700; }
.inv-table .neg { color: var(--err); }
.inv-table input[type=number] { width: 64px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; text-align: right; }
.inv-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--gold); }
.sortable th[data-sort] { cursor: pointer; user-select: none; }
.sortable th.asc::after { content: " ▲"; }
.sortable th.desc::after { content: " ▼"; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; align-items: center; }
.chips button { border: 1.5px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.chips button.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.chips input[type=search] { flex: 1; min-width: 180px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; }
.cmp-params { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; }
.cmp-params .cf { margin: 0; }
.cmp-params .cf-num input { width: 110px; }
.btn.disabled { opacity: .5; pointer-events: none; }
.inv-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; background: linear-gradient(135deg, var(--navy), var(--navy-3)); color: #fff; border-radius: var(--radius); padding: 24px 28px; margin-top: 30px; }
.inv-cta h3 { color: #fff; margin: 0 0 4px; }
.inv-cta p { margin: 0; color: rgba(255, 255, 255, .8); }
.inv-disc { font-size: .8rem; color: var(--muted); margin-top: 22px; line-height: 1.5; }
.prose > * { max-width: 820px; }
.invest .nav-links a { white-space: nowrap; }
.invest .logo-text { white-space: nowrap; }
.prose h2 { font-size: 1.5rem; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.src-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.soon { background: var(--surface); border: 1px dashed var(--gold); border-radius: var(--radius); padding: 30px; }
.soon ul { columns: 2; gap: 30px; }
@media (max-width: 1000px) {
  .calc { grid-template-columns: 1fr; }
  .calc-in { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .calc-cards { grid-template-columns: repeat(2, 1fr); }
  .macro { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .calc-cards { grid-template-columns: 1fr; }
  .inv-cta { flex-direction: column; align-items: flex-start; }
  .kpi strong { font-size: 1.15rem; }
  .kpi.main strong { font-size: 1.3rem; }
  .soon ul { columns: 1; }
  .cf-num input { width: 80px; }
}

/* menu "Ďalšie" (dalsie kalkulacky) */
.nav-more { position: relative; display: flex; }
.nav-more-btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 10px; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; font-size: .9rem; border-radius: 8px; cursor: pointer; opacity: .9; white-space: nowrap; }
.nav-more-btn svg { transition: transform .15s; }
.nav-more.open .nav-more-btn svg { transform: rotate(180deg); }
.nav-more-btn:hover, .nav-more.on .nav-more-btn, .nav-more.open .nav-more-btn { background: rgba(201, 162, 74, .14); opacity: 1; }
.nav-more-list { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 230px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; flex-direction: column; z-index: 50; }
.nav-more.open .nav-more-list { display: flex; }
.nav-more-list a { padding: 9px 12px; border-radius: 8px; color: var(--text); }
@media (max-width: 1200px) {
  .nav-more { flex-direction: column; }
  .nav-more-btn { display: none; }
  .nav-more-list { display: flex; position: static; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 6px 0 0; margin-top: 6px; min-width: 0; background: transparent; }
  .nav-more-list a { padding: 12px 14px; font-size: 1rem; }
}

/* sparkline v tabulkach */
.spark { display: block; margin-left: auto; }
.spark polyline { stroke: var(--ok); }
.spark.down polyline { stroke: var(--err); }
.inv-table td.sp { padding-top: 4px; padding-bottom: 4px; }

/* priklad z historie na uvode */
.hist-ex { display: flex; gap: 18px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 20px 24px; margin-top: 26px; box-shadow: var(--shadow-sm); }
.hist-ex p { margin: 0; font-size: 1.05rem; }
.hist-ex strong.big { font-family: var(--head); font-size: 1.25rem; color: var(--gold-ink); }
[data-theme="dark"] .hist-ex strong.big { color: var(--gold-2); }
.hist-ex small { display: block; color: var(--muted); margin-top: 6px; font-size: .8rem; }

/* poplatky, dotaznik */
.var-h { display: flex; align-items: center; gap: 4px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.mifid { background: rgba(201, 162, 74, .1); border: 1px solid rgba(201, 162, 74, .45); border-radius: 12px; padding: 14px 18px; margin: 0 0 22px; font-size: .92rem; }
.quiz .q { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.quiz legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.quiz legend span { color: var(--gold-ink); }
[data-theme="dark"] .quiz legend span { color: var(--gold-2); }
.quiz label { display: flex; gap: 8px; align-items: flex-start; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; font-size: .9rem; background: var(--bg); }
.quiz label:has(input:checked) { border-color: var(--gold); background: rgba(201, 162, 74, .12); }
.quiz input { margin-top: 3px; accent-color: var(--gold); }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
.risk-scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.risk-scale span { padding: 12px 10px; border-radius: 10px; background: var(--surface-2); text-align: center; opacity: .55; border: 2px solid transparent; }
.risk-scale span:nth-child(1) { background: rgba(47, 111, 214, .12); }
.risk-scale span:nth-child(2) { background: rgba(46, 158, 107, .14); }
.risk-scale span:nth-child(3) { background: rgba(201, 162, 74, .18); }
.risk-scale span:nth-child(4) { background: rgba(208, 86, 63, .16); }
.risk-scale span.on { opacity: 1; border-color: var(--navy); font-weight: 700; }
[data-theme="dark"] .risk-scale span.on { border-color: var(--gold-2); }
.risk-scale b { display: block; font-size: .9rem; }
.risk-scale small { color: var(--muted); font-size: .78rem; }
.profile-res { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.profile-res h3 { margin: 0 0 8px; }
.profile-res .links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }

/* zdielanie vysledku */
.calc-share { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.calc-share .btn { display: inline-flex; align-items: center; gap: 6px; }
[data-result] .calc-share { margin-top: 16px; }
.print-only { display: none; }
@media (max-width: 640px) {
  .hist-ex { flex-direction: column; align-items: flex-start; }
  .kpis-3 { grid-template-columns: 1fr 1fr; }
  .risk-scale { grid-template-columns: repeat(2, 1fr); }
  .calc-share { justify-content: flex-start; }
}

/* tlac / PDF: len vysledok kalkulacky */
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #000 !important; }
  .navbar, .footer, .cookie, #kontakt, .contact, .mbar, .totop, .sx, .dovera-band, .calc-in, .calc-share, .inv-cta, .crumbs, .g-tip, .g-hover, .cmp-params, [data-pick], .chips { display: none !important; }
  .print-only { display: block !important; }
  .print-sum { border: 1px solid #ccc; border-radius: 8px; padding: 8px 12px; margin: 0 auto 12px; width: min(1200px, 100% - 40px); font-size: 10pt; word-break: break-all; }
  .print-sum p { margin: 2px 0; }
  .inv-hero { background: none !important; color: #000 !important; padding: 0 0 8px !important; }
  .inv-hero::after { display: none; }
  .inv-hero h1, .inv-hero .lead { color: #000 !important; }
  .inv-hero h1 em { color: #7a5a16 !important; }
  .inv-hero .lead { font-size: 10pt; }
  .section { padding: 8px 0 !important; }
  .calc { display: block; }
  .kpis { grid-template-columns: repeat(4, 1fr) !important; }
  .kpi, .kpi.main { background: #fff !important; border: 1px solid #ccc !important; color: #000 !important; break-inside: avoid; }
  .kpi.main strong, .kpi.main span { color: #000 !important; }
  .chart-box, .calc-note, .profile-res, .tbl-wrap { break-inside: avoid; background: #fff !important; }
  .calc-table:not([open]) { display: none; }
  .prose > :not(.inv-disc) { display: none !important; }
  .prose .inv-disc { color: #333; font-size: 8pt; }
  .g-grid { stroke: #ddd; } .g-lab { fill: #444; }
  a { color: #000; text-decoration: none; }
}
.calc-in.quiz { position: static; }
