/* ============================================================
   OZE SERVIS s.r.o. — moderní responzivní web
   ============================================================ */

:root {
  --green:       #15803d;
  --green-600:   #16a34a;
  --green-700:   #15803d;
  --green-800:   #166534;
  --green-900:   #14532d;
  --lime:        #84e635;
  --lime-soft:   #d8f7be;
  --ink:         #0e1a13;
  --slate:       #44524a;
  --muted:       #6b7a72;
  --line:        #e4ebe6;
  --bg:          #ffffff;
  --bg-soft:     #f3f8f4;
  --bg-mint:     #eef7f0;
  --white:       #ffffff;

  --radius:      16px;
  --radius-lg:   24px;
  --shadow-sm:   0 1px 2px rgba(16,40,25,.06), 0 4px 14px rgba(16,40,25,.05);
  --shadow:      0 10px 30px -12px rgba(16,50,30,.25);
  --shadow-lg:   0 24px 60px -20px rgba(16,50,30,.35);
  --container:   1160px;
  --ease:        cubic-bezier(.22,.61,.36,1);

  --font:        'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:   'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--green-700);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font); font-weight: 700; font-size: .98rem;
  padding: .8em 1.5em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn-lg { padding: .95em 1.9em; font-size: 1.02rem; }
.btn-sm { padding: .55em 1.05em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 8px 20px -8px rgba(21,128,61,.6); }
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(21,128,61,.7); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--green-800); border-color: var(--line); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); border-color: var(--green-600); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; }
.brand-mark { width: 182px; height: auto; }
.bm-top { font-family: var(--font); font-weight: 800; font-size: 26px; letter-spacing: -.5px; fill: var(--ink); }
.bm-sub { font-size: 11px; font-weight: 700; fill: var(--green-700); letter-spacing: 0; }
.bm-bottom { font-family: var(--font); font-weight: 700; font-size: 9.7px; letter-spacing: 1.45px; fill: var(--slate); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) {
  font-family: var(--font); font-weight: 600; font-size: .96rem; color: var(--ink);
  padding: .55em .85em; border-radius: 9px; transition: color .2s, background .2s; position: relative;
}
.nav > a:not(.btn):hover { color: var(--green-700); background: var(--bg-mint); }
.nav-cta { margin-left: 6px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: var(--bg-mint); border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 90px); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 78% -10%, var(--lime-soft) 0%, transparent 55%),
    radial-gradient(700px 480px at 8% 10%, #e7f5ec 0%, transparent 60%),
    linear-gradient(180deg, #f6fbf7 0%, #ffffff 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font); font-weight: 700; font-size: .85rem; color: var(--green-800);
  background: #fff; border: 1px solid var(--line); padding: .45em 1em; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); box-shadow: 0 0 0 4px rgba(22,163,74,.18); }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.8rem); margin: .5em 0 .35em; }
.grad { background: linear-gradient(100deg, var(--green-600), #5cb800 55%, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--slate); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.4em; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-badges li { display: inline-flex; align-items: center; gap: .45em; font-size: .92rem; font-weight: 600; color: var(--green-800); }
.ic { width: 18px; height: 18px; fill: none; stroke: var(--green-600); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.hero-card { position: relative; }
.stat-card {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 8px; box-shadow: var(--shadow); margin-bottom: -28px; width: 88%; margin-left: auto;
}
.stat { text-align: center; padding: 4px; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line); }
.stat .num { font-family: var(--font); font-weight: 800; font-size: clamp(1.7rem, 3vw, 2.2rem); color: var(--green-700); line-height: 1; }
.stat .plus { font-family: var(--font); font-weight: 800; font-size: 1.3rem; color: var(--lime); vertical-align: top; }
.stat small { display: block; font-size: .76rem; color: var(--muted); margin-top: 6px; font-weight: 500; }
.hero-photo {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); background-size: cover; background-position: center;
  box-shadow: var(--shadow-lg); border: 6px solid #fff;
}

/* ---------- trust strip ---------- */
.trust { background: var(--green-900); color: #cfe9d6; }
.trust-inner { display: flex; align-items: center; gap: 18px 28px; flex-wrap: wrap; padding: 18px 22px; justify-content: center; text-align: center; }
.trust-inner > span { font-size: .9rem; opacity: .85; }
.trust-logos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { font-family: var(--font); font-weight: 700; font-size: .85rem; color: #eafff0; border: 1px solid rgba(255,255,255,.22); padding: .4em 1em; border-radius: 999px; background: rgba(255,255,255,.06); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.kicker { font-family: var(--font); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green-600); }
.kicker-light { color: var(--lime); }
.section-head h2, .section h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: .35em 0 .4em; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.muted { color: var(--muted); }

/* ---------- service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--green-600), var(--lime)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--bg-mint); margin-bottom: 18px; }
.card-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--green-700); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { font-size: .96rem; color: var(--slate); }

.card-cta { background: linear-gradient(160deg, var(--green-700), var(--green-900)); border-color: transparent; color: #eafff0; display: flex; flex-direction: column; }
.card-cta::after { display: none; }
.card-cta h3 { color: #fff; }
.card-cta p { color: #cfe9d6; }
.card-ic-light { background: rgba(255,255,255,.14); }
.card-ic-light svg { stroke: var(--lime); }
.card-cta-link { margin-top: auto; padding-top: 14px; font-family: var(--font); font-weight: 700; color: var(--lime); }
.card-cta:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ---------- dotace ---------- */
.dotace-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.dotace-grid h2 { margin-top: .3em; }
.dotace-list { display: grid; gap: 16px; margin: 28px 0; }
.dotace-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.badge-leaf { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--lime-soft); display: grid; place-items: center; }
.badge-leaf svg { width: 18px; height: 18px; fill: none; stroke: var(--green-700); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dotace-item strong { font-family: var(--font); color: var(--ink); display: block; margin-bottom: 2px; }
.dotace-item p { font-size: .93rem; color: var(--muted); }

.cert-card { background: linear-gradient(165deg, #ffffff, var(--bg-mint)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3vw, 38px); box-shadow: var(--shadow); position: relative; }
.cert-card::before { content: "✓"; position: absolute; top: -18px; right: 26px; width: 48px; height: 48px; border-radius: 14px; background: var(--green-700); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; box-shadow: var(--shadow); }
.cert-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.cert-text { font-size: .96rem; color: var(--slate); margin-bottom: 12px; }
.cert-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cert-tags span { font-size: .76rem; font-weight: 600; color: var(--green-800); background: #fff; border: 1px solid var(--line); padding: .35em .8em; border-radius: 8px; }

/* ---------- proč my ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why { text-align: center; padding: 18px 14px; }
.why-ic { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-mint); border: 1px solid var(--line); }
.why-ic svg { width: 30px; height: 30px; fill: none; stroke: var(--green-700); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.why h3 { font-size: 1.12rem; margin-bottom: 6px; }
.why p { font-size: .93rem; color: var(--muted); }

/* ---------- postup ---------- */
.section-dark { background: radial-gradient(800px 400px at 80% -10%, #1c6e3b 0%, transparent 60%), var(--green-900); color: #d6ecdd; }
.section-dark h2 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 26px 22px; position: relative; transition: transform .3s var(--ease), background .3s; }
.step:hover { transform: translateY(-5px); background: rgba(255,255,255,.09); }
.step-n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(150deg, var(--lime), var(--green-600)); color: var(--green-900); font-family: var(--font); font-weight: 800; font-size: 1.2rem; margin-bottom: 16px; }
.step h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.step p { font-size: .92rem; color: #bfe0c9; }

/* ---------- kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-list { display: grid; gap: 14px; margin: 26px 0 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-mint); display: grid; place-items: center; }
.contact-ic svg { width: 22px; height: 22px; fill: none; stroke: var(--green-700); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.contact-list a { font-family: var(--font); font-weight: 700; color: var(--ink); font-size: 1.05rem; transition: color .2s; }
.contact-list a:hover { color: var(--green-700); }
.ico-line { display: flex; gap: 22px; flex-wrap: wrap; font-size: .9rem; color: var(--slate); margin-bottom: 20px; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-embed iframe { width: 100%; height: 260px; border: 0; }

.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-family: var(--font); font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .8em 1em; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfb;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-600); background: #fff; box-shadow: 0 0 0 4px rgba(22,163,74,.13); }
.field textarea { resize: vertical; min-height: 96px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 4px 0 18px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green-700); flex: none; }
.form-note { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem; }
.form-note.ok { background: var(--lime-soft); color: var(--green-900); }
.form-note.err { background: #fde8e8; color: #9b1c1c; }
.field input:invalid:not(:placeholder-shown) { border-color: #e3a3a3; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #aebdb4; padding-top: clamp(46px, 6vw, 72px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 36px; padding-bottom: 40px; }
.footer-mark { width: 200px; }
.logo-text { font-family: "Times New Roman", Times, Georgia, serif; font-weight: bold; fill: var(--ink); }
.logo-green-line { stroke: #00be5e; stroke-width: 3.5; stroke-linecap: square; }
.logo-black-line { stroke: var(--ink); stroke-width: 1.5; }
.logo-wave { stroke: #00be5e; stroke-width: 2.6; fill: none; stroke-linejoin: round; stroke-linecap: round; }

.logo-text-light { fill: #fff !important; }
.logo-black-line-light { stroke: rgba(255, 255, 255, 0.4) !important; }
.footer-tag { margin-top: 16px; max-width: 38ch; font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: .94rem; color: #aebdb4; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 22px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 0; font-size: .86rem; }
.to-top { font-weight: 600; color: #cdd8d1; }
.to-top:hover { color: var(--lime); }

/* ---------- floating call button (mobile) ---------- */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--green-700); display: none; place-items: center; box-shadow: var(--shadow-lg); animation: pulse 2.6s infinite; }
.fab svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.45), var(--shadow-lg); } 50% { box-shadow: 0 0 0 14px rgba(22,163,74,0), var(--shadow-lg); } }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .lead, .hero-card { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .stat-card { width: 100%; margin-left: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .dotace-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  /* mobile nav */
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 4px; background: #fff; padding: 14px 22px 22px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform .38s var(--ease); z-index: 99;
  }
  .nav.open { transform: translateY(0); }
  .nav > a:not(.btn) { padding: .85em .6em; border-radius: 10px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: flex; }
  .fab { display: grid; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .cards { grid-template-columns: 1fr; }
  .why-grid, .steps, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-mark { width: 150px; }
  .hero-badges { flex-direction: column; align-items: center; gap: 6px; }
  .stat-card { width: 100%; }
  .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
}

/* ============================================================
   STRÁNKY NABÍDKA / INZERÁT
   ============================================================ */
.nav .is-active { color: var(--green-700); background: var(--bg-mint); }

.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(20px, 3vw, 32px);
  background:
    radial-gradient(700px 360px at 85% -20%, var(--lime-soft) 0%, transparent 55%),
    linear-gradient(180deg, #f6fbf7 0%, #ffffff 100%);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .25em 0 .3em; }
.page-hero p { max-width: 52ch; margin: 0 auto; }
.section-top0 { padding-top: clamp(28px, 4vw, 44px); }
.section-top-sm { padding-top: clamp(24px, 3vw, 36px); }

/* filtr */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; justify-content: center; }
.filter-chip {
  font-family: var(--font); font-weight: 600; font-size: .9rem; color: var(--slate);
  background: #fff; border: 1px solid var(--line); padding: .5em 1.1em; border-radius: 999px; transition: .18s;
}
.filter-chip:hover { border-color: var(--green-600); color: var(--green-700); }
.filter-chip.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }

/* mřížka inzerátů */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.listing-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.listing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.listing-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-mint); overflow: hidden; }
.listing-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.listing-card:hover .listing-thumb img { transform: scale(1.05); }
.listing-noimg { width: 100%; height: 100%; display: grid; place-items: center; background: #eef3ef; }
.tag-featured { position: absolute; top: 12px; left: 12px; background: var(--lime); color: var(--green-900);
  font-family: var(--font); font-weight: 800; font-size: .72rem; padding: .3em .7em; border-radius: 7px; letter-spacing: .03em; }
.tag-sold { position: absolute; top: 12px; right: 12px; background: #b91c1c; color: #fff;
  font-weight: 700; font-size: .74rem; padding: .3em .7em; border-radius: 7px; }
.img-count { position: absolute; bottom: 12px; right: 12px; display: inline-flex; align-items: center; gap: .35em;
  background: rgba(14,26,19,.72); color: #fff; font-size: .76rem; font-weight: 600; padding: .25em .6em; border-radius: 7px; }
.listing-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.listing-cat { align-self: flex-start; font-family: var(--font); font-weight: 700; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--green-600); background: var(--bg-mint);
  padding: .3em .7em; border-radius: 6px; margin-bottom: 10px; }
.listing-body h3 { font-size: 1.12rem; line-height: 1.25; margin-bottom: 8px; }
.listing-card:hover .listing-body h3 { color: var(--green-700); }
.listing-desc { font-size: .92rem; color: var(--muted); margin-bottom: 14px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.listing-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.listing-price { font-family: var(--font); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.price-note { font-weight: 600; font-size: .8rem; color: var(--muted); }
.listing-loc { font-size: .84rem; color: var(--muted); }

/* prázdný stav */
.empty-state { text-align: center; padding: 60px 20px; max-width: 460px; margin: 0 auto; }
.empty-ic { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-mint); border: 1px solid var(--line); }
.empty-state h3 { font-size: 1.3rem; margin-bottom: 8px; }
.empty-state .btn { margin-top: 18px; }

/* detail inzerátu */
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--green-700); font-weight: 600; }
.crumbs span { margin: 0 .35em; }
.detail-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.gallery-main { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-mint); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #9fb3a6; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gthumb { padding: 0; border: 2px solid var(--line); border-radius: 11px; overflow: hidden; cursor: pointer;
  background: none; aspect-ratio: 1; transition: border-color .18s; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; }
.gthumb.active, .gthumb:hover { border-color: var(--green-600); }

.detail-info .listing-cat { margin-bottom: 14px; }
.detail-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.detail-price { font-family: var(--font); font-weight: 800; font-size: 1.9rem; color: var(--green-700); margin-bottom: 10px; }
.detail-loc { color: var(--slate); margin-bottom: 6px; }
.detail-sold { display: inline-block; background: #fde8e8; color: #9b1c1c; font-weight: 700;
  padding: .4em 1em; border-radius: 999px; margin: 8px 0; font-size: .9rem; }
.detail-cta { display: grid; gap: 12px; margin: 22px 0 14px; }
.detail-meta { font-size: .84rem; color: var(--muted); }
.detail-desc { margin-top: clamp(32px, 5vw, 52px); max-width: 820px; }
.detail-desc h2 { font-size: 1.4rem; margin-bottom: 14px; }
.prose { font-size: 1.02rem; color: var(--slate); }
.detail-back { margin-top: 32px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8,16,11,.9);
  display: grid; place-items: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 95%; max-height: 90vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 18px; right: 24px; width: 48px; height: 48px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1; border-radius: 50%; }
.lightbox-close:hover { background: rgba(255,255,255,.26); }

@media (max-width: 980px) {
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 560px) {
  .listing-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .detail-price { font-size: 1.6rem; }
}

/* ============================================================
   B2B REDESIGN — Energie pod kontrolou
   ============================================================ */

/* --- tmavý hero banner --- */
.hero-b2b { position: relative; overflow: hidden; color: #eaf3ee;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(132,230,53,.16) 0%, transparent 55%),
    radial-gradient(700px 500px at 0% 110%, rgba(22,163,74,.22) 0%, transparent 55%),
    linear-gradient(135deg, #0b1a13 0%, #0d2418 55%, #0a1f15 100%);
  padding: clamp(60px, 9vw, 130px) 0 clamp(56px, 8vw, 110px); }
.hero-b2b-bg { position: absolute; inset: 0; z-index: 0; opacity: .7; }
.hero-grid { width: 100%; height: 100%; }
.hero-b2b-inner { position: relative; z-index: 1; max-width: 820px; }
.eyebrow-dark { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #cdeccd; box-shadow: none; }
.hero-b2b-h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; color: #fff; margin: .35em 0 .35em; letter-spacing: -.03em; }
.hero-b2b-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #b9d2c3; max-width: 60ch; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.5em 0; }
.tech-chip { font-family: var(--font); font-weight: 700; font-size: .9rem; color: #d9f7bf;
  background: rgba(132,230,53,.10); border: 1px solid rgba(132,230,53,.32); padding: .5em 1.1em; border-radius: 999px; transition: .18s; }
a.tech-chip:hover { background: rgba(132,230,53,.2); transform: translateY(-2px); }
.btn-ghost-dark { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.hero-b2b-stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid rgba(255,255,255,.12); }
.hero-b2b-stats li { display: flex; flex-direction: column; }
.hero-b2b-stats strong { font-family: var(--font); font-size: clamp(1.4rem, 2.4vw, 1.9rem); color: var(--lime); line-height: 1; }
.hero-b2b-stats span { font-size: .86rem; color: #9fbcab; margin-top: 4px; }

/* --- pilíře --- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); overflow: hidden; }
.pillar-n { font-family: var(--font); font-weight: 800; font-size: 2.4rem; color: var(--lime-soft);
  -webkit-text-stroke: 1px var(--green-600); display: block; margin-bottom: 10px; }
.pillar h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pillar p { color: var(--slate); font-size: .98rem; }

/* --- odkazy v kartách --- */
.card { display: flex; flex-direction: column; }
.card-link { margin-top: auto; padding-top: 14px; font-family: var(--font); font-weight: 700; color: var(--green-700); }
.card:hover .card-link { color: var(--green-800); }

/* --- tmavá sekce: pro firmy band --- */
.business-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.band-lead { color: #bfe0c9; font-size: 1.1rem; max-width: 42ch; margin: .5em 0 1.6em; }
.band-list { display: grid; gap: 12px; }
.band-list li { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 14px 18px; font-weight: 600; color: #eafff0; }
.band-list .ic { stroke: var(--lime); }

/* --- duo karty (akademie + poradna) --- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card { display: flex; flex-direction: column; background: linear-gradient(160deg, #fff, var(--bg-mint));
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.duo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.duo-ic { width: 60px; height: 60px; border-radius: 16px; background: var(--green-700); display: grid; place-items: center; margin-bottom: 18px; }
.duo-ic svg { width: 30px; height: 30px; fill: none; stroke: var(--lime); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.duo-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.duo-card p { color: var(--slate); margin-bottom: 14px; }

/* --- CTA sekce --- */
.section-cta { background: linear-gradient(135deg, var(--green-800), var(--green-900)); color: #d9efe0; }
.cta-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cta-inner h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: .4em; }
.cta-inner p { color: #bfe0c9; margin-bottom: 1.6em; }
.cta-inner .hero-actions { justify-content: center; }

/* --- tmavý page-hero (vnitřní stránky) --- */
.page-hero-dark { text-align: left; color: #eaf3ee;
  background:
    radial-gradient(700px 360px at 88% -30%, rgba(132,230,53,.16) 0%, transparent 55%),
    linear-gradient(135deg, #0b1a13 0%, #0d2418 100%); }
.page-hero-dark h1 { color: #fff; }
.muted-light { color: #b9d2c3; max-width: 56ch; }
.page-hero-dark .tech-tags { margin-top: 1.4em; }

/* --- služby: detailní řádky --- */
.svc-list { display: grid; gap: 28px; }
.svc-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 3.5vw, 44px);
  box-shadow: var(--shadow-sm); scroll-margin-top: 90px; }
.svc-row:nth-child(even) { background: var(--bg-soft); }
.svc-num { font-family: var(--font); font-weight: 800; color: var(--lime); font-size: 1rem; }
.svc-sub { display: block; font-family: var(--font); font-weight: 700; color: var(--green-600); font-size: .82rem;
  text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 6px; }
.svc-text h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 12px; }
.svc-text p { color: var(--slate); margin-bottom: 20px; }
.svc-points { display: grid; gap: 12px; }
.svc-points li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink);
  background: var(--bg-mint); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }

/* --- benefit grid (pro firmy) --- */
.benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.benefit h3 { font-size: 1.25rem; margin-bottom: 8px; }
.benefit p { color: var(--slate); }

/* --- akademie --- */
.academy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.academy-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.academy-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.academy-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.academy-card > p { color: var(--slate); margin-bottom: 16px; }
.mini-points { display: grid; gap: 8px; }
.mini-points li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--slate); }
.mini-points .ic { width: 16px; height: 16px; }

/* --- poradna: témata --- */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
a.topic-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.topic-card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.topic-card p { color: var(--muted); font-size: .95rem; }

/* --- kalkulačka --- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.calc-inputs { padding: clamp(24px, 3vw, 38px); display: grid; gap: 16px; align-content: start; }
.calc-inputs .f label { display: block; font-family: var(--font); font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.calc-inputs .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.calc-inputs input { width: 100%; padding: .72em 1em; border: 1px solid var(--line); border-radius: 12px; font-size: 1rem; font-family: var(--font-body); background: #fbfdfb; }
.calc-inputs input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(22,163,74,.12); background: #fff; }
.calc-result { padding: clamp(24px, 3vw, 38px); background: linear-gradient(160deg, var(--green-800), var(--green-900)); color: #d9efe0; display: flex; flex-direction: column; }
.calc-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.calc-row span { color: #bfe0c9; font-size: .95rem; }
.calc-row strong { font-family: var(--font); font-weight: 800; font-size: 1.15rem; color: #fff; }
.calc-row.big strong { font-size: 1.8rem; color: var(--lime); }
.calc-note { margin-top: auto; padding-top: 18px; font-size: .8rem; color: #9fbcab; }

/* --- responsive --- */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .business-band { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 1fr; }
  .benefit-grid, .academy-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topic-grid { grid-template-columns: 1fr; }
  .hero-b2b-stats { gap: 14px 24px; }
}

/* --- aktivní chip (přepínač oblastí) --- */
.tech-chip.active { background: var(--lime); color: var(--green-900); border-color: var(--lime); }

/* --- FAQ akordeon --- */
.faq { display: grid; gap: 12px; max-width: 840px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 0; font-family: var(--font); font-weight: 700;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--green-600); font-weight: 500; flex: none; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 0 18px; margin: 0; color: var(--slate); }

/* --- parametry (key/value) --- */
.spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.spec div { background: var(--bg-mint); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.spec dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--green-600); font-weight: 700; margin-bottom: 4px; }
.spec dd { margin: 0; font-family: var(--font); font-weight: 700; color: var(--ink); font-size: 1.05rem; }

/* --- mini ilustrace (peak shaving) --- */
.illus { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.illus svg { width: 100%; height: auto; }
.illus figcaption { margin-top: 12px; font-size: .88rem; color: var(--muted); text-align: center; }

@media (max-width: 700px) { .spec { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .spec { grid-template-columns: 1fr; } }

/* --- articles listing --- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.article-cat { align-self: flex-start; font-family: var(--font); font-weight: 700; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--green-600); background: var(--bg-mint);
  padding: .3em .7em; border-radius: 6px; margin-bottom: 12px; display: inline-block; }
.article-card h3 { font-size: 1.18rem; line-height: 1.25; margin-bottom: 8px; }
.article-card:hover h3 { color: var(--green-700); }
.article-card p { font-size: .93rem; color: var(--muted); margin-bottom: 14px; flex: 1; }
.article-meta { display: flex; gap: 16px; font-size: .82rem; color: var(--muted); margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

/* --- article detail hero --- */
.page-hero-sm { padding-bottom: clamp(28px, 4vw, 42px); }
.article-hero-meta { display: flex; gap: 10px; margin-top: 14px; font-size: .9rem; color: #9fbcab; }
.page-hero-dark .article-cat { background: rgba(132,230,53,.12); color: #d9f7bf; }

/* --- prose article --- */
.prose-article { max-width: 780px; margin: 0 auto; font-size: 1.05rem; color: var(--slate); line-height: 1.75; }
.prose-article h2 { font-size: 1.6rem; margin: 2em 0 .6em; padding-top: .5em; border-top: 1px solid var(--line); }
.prose-article h2:first-child { border-top: 0; margin-top: 0; }
.prose-article h3 { font-size: 1.2rem; margin: 1.5em 0 .4em; }
.prose-article p { margin-bottom: 1em; }
.prose-article strong { color: var(--ink); }
.prose-article a { color: var(--green-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose-article a:hover { color: var(--green-800); }
.prose-article code { background: var(--bg-mint); padding: .15em .45em; border-radius: 5px; font-size: .92em; }
.prose-article ul, .prose-article ol { margin: 0 0 1em 1.3em; }
.prose-article li { margin-bottom: .4em; }
.prose-article ul li { list-style: disc; }
.prose-article ol li { list-style: decimal; }

/* prose table */
.prose-article .table-wrap { overflow-x: auto; margin: 1.2em 0; }
.prose-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose-table th { text-align: left; font-weight: 700; color: var(--ink); padding: 12px 16px;
  background: var(--bg-mint); border-bottom: 2px solid var(--green-600); white-space: nowrap; }
.prose-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.prose-table tr:last-child td { border-bottom: 0; }
.prose-table tr:hover td { background: #fafdfb; }

/* article nav (prev/next) */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 42px; }
.article-nav-link { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 20px; transition: border-color .2s, box-shadow .2s; }
.article-nav-link:hover { border-color: var(--green-600); box-shadow: var(--shadow-sm); }
.article-nav-link small { font-size: .78rem; color: var(--muted); }
.article-nav-link span { font-family: var(--font); font-weight: 700; color: var(--ink); }
.article-nav-link.next { text-align: right; }

@media (max-width: 900px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .article-grid { grid-template-columns: 1fr; } .article-nav { grid-template-columns: 1fr; } }

/* --- price board (sledování cen) --- */
.priceboard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.pb-head { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.pb-date-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pb-date { font-family: var(--font); font-weight: 600; color: var(--muted); font-size: .92rem; }
.pb-date-selector form { display: inline-flex; align-items: center; gap: 8px; }
.pb-date-btn {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-family: var(--font);
  font-weight: 700;
  font-size: .88rem;
  color: var(--slate);
  padding: .5em 1.2em;
  border-radius: 999px;
  cursor: pointer;
  transition: .15s;
}
.pb-date-btn:hover { background: var(--bg-mint); border-color: var(--green-600); }
.pb-date-btn.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.pb-date-input-wrap { display: inline-flex; align-items: center; position: relative; }
#pb-date-input {
  font-family: var(--font);
  font-weight: 600;
  font-size: .88rem;
  color: var(--slate);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: .45em .8em;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: .15s;
}
#pb-date-input:focus, #pb-date-input:hover { border-color: var(--green-600); background: var(--bg-mint); }

@media (max-width: 768px) {
  .pb-date-wrap { width: 100%; justify-content: space-between; }
}
@media (max-width: 480px) {
  .pb-date-wrap { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .pb-date { text-align: center; }
  .pb-date-selector form { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pb-date-btn { text-align: center; width: 100%; }
  .pb-date-input-wrap { grid-column: span 2; width: 100%; }
  #pb-date-input { width: 100%; text-align: center; }
}
.pb-toggle { display: inline-flex; background: var(--bg-mint); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.pb-toggle button { border: 0; background: none; font-family: var(--font); font-weight: 700; font-size: .9rem; color: var(--slate); padding: .5em 1.2em; border-radius: 999px; cursor: pointer; transition: .15s; }
.pb-toggle button.active { background: var(--green-700); color: #fff; }
.pb-body { padding: 24px 26px; }
.pb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.pb-stat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pb-stat small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; margin-bottom: 5px; }
.pb-stat strong { font-family: var(--font); font-size: 1.3rem; color: var(--ink); line-height: 1.1; }
.pb-stat.cur strong { color: var(--green-700); }
.pb-stat .unit { display: block; font-size: .76rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.pb-chart-container { display: flex; gap: 12px; height: 230px; align-items: stretch; position: relative; }
.pb-y-axis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: .74rem; color: var(--muted); font-family: var(--font); font-weight: 600; padding-top: 10px; flex-shrink: 0; width: 90px; }
.pb-chart { flex-grow: 1; display: flex; align-items: flex-end; gap: 2px; height: 100%; padding-top: 10px; }
.pb-bar { flex: 1 1 0; min-width: 0; border-radius: 3px 3px 0 0; background: #c2d2c8; align-self: flex-end; transition: opacity .15s; cursor: pointer; }
.pb-bar.charge { background: #16a34a; }
.pb-bar.discharge { background: #e0792b; }
.pb-bar.neutral { background: #c2d2c8; }
.pb-bar.now { outline: 2px solid var(--ink); outline-offset: 1px; }
.pb-bar.selected { outline: 2px solid var(--green-700); outline-offset: 1px; opacity: 1 !important; }
.pb-bar:hover { opacity: .65; }
.pb-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: .76rem; color: var(--muted); margin-left: calc(90px + 12px); }
.pb-legend { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 20px; font-size: .86rem; color: var(--slate); }
.pb-legend span { display: inline-flex; align-items: center; gap: 8px; }
.pb-legend i { width: 14px; height: 14px; border-radius: 4px; flex: none; }
.pb-windows { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.pb-window { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.pb-window svg { flex: none; }
.pb-window.cheap { background: #eefbf0; border-color: #bbe8c4; }
.pb-window.exp { background: #fdf2ec; border-color: #f3d2bd; }
.pb-window small { display: block; color: var(--muted); font-size: .8rem; margin-bottom: 2px; }
.pb-window strong { font-family: var(--font); font-size: 1.05rem; color: var(--ink); }

/* --- prázdný stav: ceny pro zítřek zatím nezveřejněny --- */
.pb-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 46px 22px; }
.pb-empty svg { margin-bottom: 10px; }
.pb-empty h3 { font-size: 1.3rem; color: var(--ink); }
.pb-empty p { color: var(--muted); max-width: 48ch; margin: 0 0 10px; }
.pb-empty .btn { margin-top: 8px; }

@media (max-width: 640px) {
  .pb-stats { grid-template-columns: 1fr 1fr; }
  .pb-windows { grid-template-columns: 1fr; }
  .pb-chart-container { height: 180px; }
  .pb-y-axis { width: 80px; font-size: .7rem; }
  .pb-axis { margin-left: calc(80px + 12px); }
}

/* --- chart tooltip (vyskakovací okno u kurzoru) --- */
.pb-tooltip {
  position: absolute;
  background: rgba(14, 26, 19, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.85rem;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translate(-50%, -100%) translateY(-10px);
  transition: opacity 0.1s ease, transform 0.1s ease;
}

.pb-tooltip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(14, 26, 19, 0.96);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.pb-tooltip-time {
  font-weight: 700;
  color: var(--lime);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pb-tooltip-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.pb-tooltip-price small {
  font-size: 0.8rem;
  font-weight: 600;
  color: #bfe0c9;
  margin-left: 4px;
}

.pb-tooltip-action {
  font-size: 0.75rem;
  color: #9fbcab;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.pb-tooltip-action i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}


/* --- veřejný přehrávač článku (audio) --- */
.audio-listen { display: flex; align-items: center; gap: 16px; max-width: 780px; margin: 0 auto 30px;
  background: var(--bg-mint); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.audio-listen-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.audio-listen-body { flex: 1; min-width: 0; }
.audio-listen-body strong { display: block; font-family: var(--font); color: var(--ink); font-size: .95rem; margin-bottom: 8px; }
.audio-listen audio { width: 100%; height: 40px; }
.audio-speed { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.audio-speed > span { font-size: .82rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.audio-speed button { font-family: var(--font); font-weight: 700; font-size: .8rem; color: var(--slate);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3em .75em; cursor: pointer; transition: .15s; }
.audio-speed button:hover { border-color: var(--green-600); color: var(--green-700); }
.audio-speed button.active { background: var(--green-700); color: #fff; border-color: var(--green-700); }
@media (max-width: 560px) {
  /* na telefonu skryjeme ikonu, aby přehrávač a posuvník zabraly plnou šířku */
  .audio-listen { padding: 14px 16px; gap: 0; }
  .audio-listen-ic { display: none; }
}
