/* Radim Jakubec – styly webu */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #FBFCFB;
  --sheet: #FFFFFF;
  --alt: #F1F4F3;
  --ink: #17212B;
  --muted: #55606B;
  --line: #D6DDDB;
  --green: #0E6655;
  --green-deep: #0A4D40;
  --green-soft: #E2EFEB;
  --ochre: #9A6400;
  --ochre-soft: #F5EBD6;
  --radius: 6px;
  --wrap: 1160px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-stretch: 112%; font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
section[id] { scroll-margin-top: 72px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* Tlačítka */
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  font: inherit; font-weight: 600; padding: 13px 22px; border-radius: var(--radius); border: 2px solid var(--green);
  cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-deep); border-color: var(--green-deep); }
.btn-small { padding: 8px 14px; font-size: .95rem; }

/* Hlavička */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251,252,251,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--ink); color: var(--paper); font-weight: 800; font-stretch: 120%; font-size: .95rem; border-radius: 4px; }
.brand-name { font-weight: 650; font-stretch: 108%; font-size: 1.1rem; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--green); }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 12px; color: var(--ink); }

/* Úvod */
.hero { padding: 72px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.hero-copy { padding-top: 24px; max-width: 34rem; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink); margin-top: 1.2em; }
.lead-small { color: var(--muted); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Skladová karta – hlavní interaktivní prvek */
.stock-card {
  position: relative; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px;
  padding: 0 0 18px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(23,33,43,.35);
}
.stock-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 30px; width: 1px; background: #E7C9C2; }
.stock-head { background: var(--sheet); border-bottom: 2px solid var(--ink); padding: 20px 24px 14px 48px; border-radius: 4px 4px 0 0; position: relative; }
.stock-head h2 { font-size: 1.45rem; margin: 0 0 4px; }
.stock-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.row { border-bottom: 1px solid #EEF2F1; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; padding: 14px 24px 6px 48px; }
.row label { font-weight: 500; }
.row output { font-weight: 700; font-stretch: 108%; font-size: 1.1rem; }
.row input { grid-column: 1 / -1; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; background: var(--line); border-radius: 2px; }
input[type=range]::-moz-range-track { height: 4px; background: var(--line); border-radius: 2px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--green); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 0 0 1px var(--green); }

.days { padding: 18px 24px 4px 48px; }
.days-bar { position: relative; height: 14px; background: var(--alt); border-radius: 2px; overflow: hidden; }
.days-now { position: absolute; inset: 0 auto 0 0; background: var(--ochre); transition: width .25s ease; }
.days-goal { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--green); transition: left .25s ease; }
.days-legend { font-size: .92rem; color: var(--muted); margin: 8px 0 0; }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 5px 0 0; vertical-align: 0; }
.key-now { background: var(--ochre); }
.key-goal { background: var(--green); margin-left: 12px; width: 3px; }

.results { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 16px 24px 0 48px; border-top: 1px solid var(--ink); }
.results > div { padding: 12px 12px 4px 0; }
.results > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.results dt { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.results dd { margin: 2px 0 0; font-size: 1.7rem; font-weight: 750; font-stretch: 112%; color: var(--ochre); line-height: 1.15; }
.results > div:nth-child(2) dd { color: var(--ink); }
.note { font-size: .85rem; color: var(--muted); margin: 12px 24px 0 48px; }

/* Pás segmentů */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sheet); }
.segments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.segments li { padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 2px; }
.segments li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.segments strong { font-stretch: 108%; font-weight: 650; }
.segments span { color: var(--muted); font-size: .95rem; }

/* Sekce */
.section { padding: 96px 0; }
.section-alt { background: var(--alt); }
.section-head { max-width: 44rem; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Služby jako rozbalovací řádky */
.services { border-top: 2px solid var(--ink); }
.service { border-bottom: 1px solid var(--line); }
.service summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(220px, 1fr) 1.4fr 32px; gap: 24px; align-items: baseline; padding: 22px 0; }
.service summary::-webkit-details-marker { display: none; }
.service summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--green); justify-self: end; transition: transform .2s; }
.service[open] summary::after { transform: rotate(45deg); }
.service summary h3 { margin: 0; }
.service summary p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.service summary:hover h3 { color: var(--green); }
.service-body { display: grid; grid-template-columns: minmax(220px, 1fr) 1.4fr 32px; gap: 24px; padding: 0 0 28px; }
.service-body p { grid-column: 2; max-width: 40rem; }
.service-body ul { grid-column: 2; margin: 0; padding-left: 1.1em; }
.service-body li { margin-bottom: 4px; }
.service-body li::marker { color: var(--green); }

/* Záložky kalkulaček */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 0; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 600; background: none; border: 1px solid transparent; border-bottom: none; padding: 12px 18px; color: var(--muted); cursor: pointer; border-radius: var(--radius) var(--radius) 0 0; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { background: var(--sheet); color: var(--ink); border-color: var(--line); }
.panel { background: var(--sheet); border: 1px solid var(--line); border-top: none; padding: 32px; border-radius: 0 0 var(--radius) var(--radius); }
#panel-be { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
#panel-be[hidden] { display: none; }
.be-form { display: flex; flex-direction: column; gap: 16px; }
.be-form label, .contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.unit { font-weight: 400; color: var(--muted); font-size: .88rem; }
input[type=number], input:not([type]), input[type=email], textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid #BCC6C3; border-radius: var(--radius); padding: 10px 12px; width: 100%;
}
input:focus, textarea:focus { border-color: var(--green); outline: 2px solid var(--green-soft); }
.be-out .results { margin: 16px 0 0; }
.be-out .note { margin: 12px 0 0; font-size: .95rem; }
.results-3 { grid-template-columns: repeat(3, 1fr); }
.results-3 dd { color: var(--ink) !important; font-size: 1.45rem; }
.results-3 dd.neg { color: #A23B2A !important; }
.results-3 dd.pos { color: var(--green) !important; }
#be-chart { width: 100%; height: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; }
#be-chart text { font-family: var(--font); font-size: 12px; fill: var(--muted); }

/* Dotazník */
.dz-intro { color: var(--muted); }
.dz-list { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.dz-list li { counter-increment: q; padding: 16px 0; border-top: 1px solid var(--line); }
.dz-list fieldset { border: 0; margin: 0; padding: 0; }
.dz-list legend { font-weight: 600; padding: 0; margin-bottom: 10px; }
.dz-list legend::before { content: counter(q) ". "; color: var(--green); }
.dz-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.dz-opts label { position: relative; }
.dz-opts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.dz-opts span { display: inline-block; padding: 6px 12px; border: 1px solid #BCC6C3; border-radius: 999px; font-size: .93rem; cursor: pointer; }
.dz-opts input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.dz-opts input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.dz-result { margin-top: 24px; padding: 24px; background: var(--green-soft); border-left: 4px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; }
.dz-result h3 { margin-bottom: .3em; }
.dz-score { font-weight: 750; font-stretch: 112%; font-size: 1.1rem; color: var(--green-deep); }
.dz-result p:last-child { margin-bottom: 0; }

/* Postup */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.steps li { counter-increment: s; padding: 24px 24px 8px 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s); display: block; font-size: 2.6rem; font-weight: 800; font-stretch: 120%; color: var(--green); line-height: 1; margin-bottom: 14px; }
.steps p { color: var(--muted); }

/* O mně */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.about-copy p { max-width: 36rem; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; border-left: 2px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 26px 26px; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; background: var(--paper); border: 2px solid var(--green); border-radius: 50%; }
.timeline li:first-child::before { background: var(--green); }
.tl-year { font-size: .9rem; color: var(--green); font-weight: 650; }
.timeline strong { font-stretch: 108%; font-weight: 650; }
.timeline span:last-child { color: var(--muted); font-size: .95rem; }

/* Kontakt */
.contact { background: var(--ink); color: #E8EDEC; }
.contact h2 { color: #fff; }
.contact a { color: #8FD3C2; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.contact-direct { margin-top: 24px; }
.contact-form { background: var(--sheet); color: var(--ink); padding: 32px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 16px; }
.contact-form a { color: var(--green); }
.contact-form .btn { align-self: flex-start; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-weight: 500; min-height: 1.5em; }
.form-status.err { color: #A23B2A; }
.form-status.ok { color: var(--green); }
.hp { position: absolute; left: -9999px; }
textarea { resize: vertical; }

/* Patička */
.site-footer { background: var(--ink); color: #AEB8B6; border-top: 1px solid #2B3742; }
.footer-inner { display: flex; justify-content: space-between; padding: 22px 24px; font-size: .92rem; }
.footer-inner p { margin: 0; }
.site-footer a { color: #AEB8B6; }

/* Textová stránka */
.page { padding: 64px 0 96px; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 1.4rem; margin-top: 1.8em; }

/* Responzivita */
@media (max-width: 980px) {
  .hero-grid, .about, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 40px 0 64px; }
  .hero-copy { padding-top: 0; }
  .segments { grid-template-columns: 1fr 1fr; }
  .segments li:nth-child(3) { padding-left: 0; border-left: 0; }
  .segments li:nth-child(n+3) { border-top: 1px solid var(--line); }
  #panel-be { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .dz-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; }
  .section { padding: 64px 0; }
  .service summary, .service-body { grid-template-columns: 1fr 24px; gap: 6px 12px; }
  .service summary p { grid-column: 1; grid-row: 2; }
  .service summary::after { grid-column: 2; grid-row: 1; }
  .service-body p, .service-body ul { grid-column: 1 / -1; }
  .panel { padding: 20px; }
  .results-3 { grid-template-columns: 1fr; }
  .results-3 > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .contact-form { padding: 22px; }
  .footer-inner { flex-direction: column; gap: 6px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .row, .days { padding-left: 40px; padding-right: 16px; }
  .stock-head { padding-left: 40px; padding-right: 16px; }
  .stock-card::before { left: 24px; }
  .results, .note { margin-left: 40px; margin-right: 16px; }
  .results dd { font-size: 1.3rem; }
  .stock-head h2 { font-size: 1.3rem; }
  .segments { grid-template-columns: 1fr; }
  .segments li, .segments li + li { padding: 16px 0; border-left: 0; }
  .segments li + li { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 20px 0 4px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
}

/* ===== Podstránky a pilíře ===== */
.nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.page-hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.page-hero .lead { max-width: 36rem; }
.page-hero--text .wrap { grid-template-columns: 1fr; max-width: 860px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.pillar { padding: 28px 28px 32px 0; display: flex; flex-direction: column; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar h3 { font-size: 1.45rem; }
.pillar p { color: var(--muted); }
.pillar ul { margin: 0 0 20px; padding-left: 1.1em; }
.pillar li { margin-bottom: 4px; }
.pillar li::marker { color: var(--green); }
.pillar .btn { margin-top: auto; align-self: flex-start; }

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts li { padding: 22px 20px 22px 0; }
.facts li + li { padding-left: 20px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-size: 1.9rem; font-weight: 750; font-stretch: 112%; line-height: 1.1; color: var(--ink); }
.facts span { color: var(--muted); font-size: .95rem; }

.cta-band { background: var(--ink); color: #E8EDEC; padding: 56px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 1.7rem; }
.cta-band p { margin: 0; color: #C2CCCA; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--green-soft); border-color: var(--green-soft); color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li { padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 7px; border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg); }
.checklist--pain li::before { border: 0; width: 12px; height: 2.5px; top: 25px; background: var(--ochre); transform: none; }
.list-title { font-size: 1.2rem; margin-bottom: 12px; }

/* Přechod Excel -> aplikace */
.morph { position: relative; height: 330px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--sheet); box-shadow: 0 18px 40px -26px rgba(23,33,43,.4); font-size: .82rem; }
.morph-pane { position: absolute; inset: 0; }
.morph-xl { font-family: Consolas, "Courier New", monospace; background: #fff; }
.morph-xl table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.morph-xl td { border: 1px solid #E1E5E4; padding: 6px 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #4A5560; }
.morph-xl tr:first-child td, .morph-xl td:first-child { background: #F2F4F3; color: #8B959E; text-align: center; }
.morph-xl td:first-child { width: 30px; }
.morph-xl .err { color: #A23B2A; background: #FBEAE7; }
.morph-xl .file { color: #8B959E; font-style: italic; }
.morph-app { background: var(--alt); padding: 16px 18px; font-family: var(--font); }
.morph-bar { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.morph-bar span { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.morph-bar span.on { background: var(--green); border-color: var(--green); color: #fff; }
.morph-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.morph-kpis div { background: #fff; border-radius: 4px; padding: 8px 10px; color: var(--muted); }
.morph-kpis b { display: block; font-size: 1.25rem; font-weight: 750; font-stretch: 110%; color: var(--ink); }
.morph-row { display: grid; grid-template-columns: 1.5fr 1fr .9fr; gap: 8px; background: #fff; border-radius: 4px; padding: 8px 10px; margin-bottom: 5px; align-items: center; color: var(--ink); }
.tag { justify-self: start; font-size: .74rem; padding: 2px 8px; border-radius: 999px; }
.tag-ok { background: var(--green-soft); color: var(--green-deep); }
.tag-wait { background: var(--ochre-soft); color: #6E4800; }
.morph-edge { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--ink); pointer-events: none; }
.morph-edge::after { content: ""; position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(255,255,255,.9); }
.morph-control { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 14px; font-size: .92rem; color: var(--muted); }

/* Případová studie */
.case { background: var(--sheet); border: 1px solid var(--line); border-radius: 6px; padding: 40px; }
.case-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; margin-bottom: 32px; }
.case-head p { color: var(--muted); }
.case-meta { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 2px solid var(--ink); align-self: start; }
.case-meta div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.case-meta dt { font-size: .88rem; color: var(--muted); }
.case-meta dd { margin: 0; font-size: 1.5rem; font-weight: 750; font-stretch: 112%; }
.modules { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.modules li { padding: 12px 0; border-top: 1px solid var(--line); }
.modules strong { display: block; font-stretch: 108%; }
.modules span { color: var(--muted); font-size: .95rem; }
.case-note { margin-top: 24px; font-size: .9rem; color: var(--muted); }

/* Kalkulačky – obecné */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--sheet); border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
.calc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; align-content: start; }
.calc-form label { justify-content: space-between; }
.calc-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.calc-out .results { margin: 0; }
.calc-out .results dd { color: var(--ink); }
.calc-out .results .accent { color: var(--green); }
.calc-out .note { margin: 14px 0 0; font-size: .95rem; }
.bar-split { display: flex; height: 18px; border-radius: 3px; overflow: hidden; margin: 18px 0 6px; background: var(--alt); }
.bar-split span { display: block; height: 100%; transition: width .25s ease; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }

/* Cesta produktu */
.journey { list-style: none; margin: 0; padding: 0; counter-reset: j; border-top: 2px solid var(--ink); }
.journey li { counter-increment: j; display: grid; grid-template-columns: 64px minmax(200px, 1fr) 1.6fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.journey li::before { content: counter(j); font-size: 2rem; font-weight: 800; font-stretch: 120%; color: var(--green); line-height: 1; }
.journey h3 { margin: 0; }
.journey p { margin: 0; color: var(--muted); }

.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-stretch: 105%; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.6rem; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 46rem; }

@media (max-width: 980px) {
  .page-hero .wrap, .two-col, .case-head, .calc { grid-template-columns: 1fr; gap: 32px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 24px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .case, .calc { padding: 22px; }
  .calc-form { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .journey li { grid-template-columns: 44px 1fr; gap: 6px 14px; }
  .journey li p { grid-column: 2; }
  .morph { height: 360px; }
  .morph-row { grid-template-columns: 1.4fr 1fr; }
  .morph-row span:nth-child(2) { display: none; }
}
