/* =========================================================
   SAMIZOL – styly
   Barvy vycházejí z loga: královská modrá + černá na bílé.
   ========================================================= */
:root {
  --blue-700: #0b33b8;
  --blue-600: #1244e6;
  --blue-500: #2f62ff;
  --blue-400: #6a90ff;
  --blue-100: #e7eeff;
  --blue-50: #f3f6ff;
  --navy-950: #060b1c;
  --navy-900: #0a1330;
  --navy-800: #101d47;
  --navy-700: #1a2a5e;
  --ink: #0d1324;
  --text: #2b3347;
  --muted: #5d6679;
  --line: #e2e7f0;
  --bg: #ffffff;
  --bg-tint: #f5f7fc;
  --hot: #ff5a1f;
  --warm: #ffb020;
  --ins: #f3e3a1;
  --ok: #19a974;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(13, 28, 80, .28);
  --shadow-sm: 0 6px 20px -10px rgba(13, 28, 80, .25);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue-600); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.12; margin: 0; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 750; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
sup { font-size: .6em; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: .8rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 10px 24px -10px rgba(18, 68, 230, .7); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-500); color: var(--blue-600); }
.btn-lg { padding: 16px 26px; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; white-space: normal; text-align: center; }

/* ---------- hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(226, 231, 240, .8);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { height: 40px; width: auto; }
.brand-word { height: 19px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--text);
  font-weight: 600; font-size: .95rem; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--blue-50); color: var(--blue-600); }
.header-call { padding: 10px 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; border-radius: 12px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.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(36px, 6vw, 80px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(47, 98, 255, .16), transparent 60%),
    radial-gradient(700px 420px at -5% 30%, rgba(47, 98, 255, .08), transparent 60%),
    linear-gradient(#fff, var(--bg-tint));
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 .accent { color: var(--blue-600); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); color: var(--muted); margin-top: 22px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-size: clamp(1.35rem, 2.3vw, 1.9rem); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.hero-stats span { display: block; font-size: .9rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }

.hero-visual { position: relative; min-height: 480px; }
.hero-photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy-800); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-main { width: 78%; aspect-ratio: 4 / 5; margin-left: auto; }
.hero-photo-side { position: absolute; left: 0; bottom: -4%; width: 42%; aspect-ratio: 3 / 4; border: 6px solid #fff; border-radius: 24px; }
.hero-badge {
  position: absolute; display: flex; gap: 12px; align-items: center; background: #fff;
  padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow-sm); max-width: 250px;
  font-size: .86rem; line-height: 1.35;
}
.hero-badge strong { display: block; color: var(--ink); font-size: .95rem; }
.hero-badge small { color: var(--muted); font-size: .82rem; }
.hero-badge svg { width: 34px; height: 34px; flex-shrink: 0; fill: #fff; background: var(--ok); border-radius: 50%; padding: 7px; }
.hero-badge-a { top: 7%; left: -2%; }
.hero-badge-b { right: -3%; bottom: 12%; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.dot-hot { background: var(--hot); box-shadow: 0 0 0 6px rgba(255, 90, 31, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(255, 90, 31, 0); } }

.benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(40px, 6vw, 72px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.benefits li { display: flex; border-right: 1px solid var(--line); }
.benefits a {
  display: flex; gap: 14px; align-items: center; flex: 1; min-width: 0; padding: 22px 18px 22px 24px;
  text-decoration: none; color: inherit; transition: background .2s ease;
}
.benefits a:focus-visible { outline-offset: -3px; border-radius: 14px; }
.benefits li:last-child { border-right: 0; }
.benefits svg { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--blue-100); fill: var(--blue-600); flex-shrink: 0; transition: background .2s ease, fill .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1); }
.benefits .benefit-go {
  width: 18px; height: 18px; padding: 0; margin-left: auto; border-radius: 0; background: none; fill: none;
  stroke: #b3bccf; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .2s ease, transform .25s cubic-bezier(.2, .8, .2, 1);
}
.benefits a > div { min-width: 0; }
.benefits a:hover, .benefits a:focus-visible { background: var(--blue-50); }
.benefits a:hover > svg:first-child, .benefits a:focus-visible > svg:first-child { background: var(--blue-600); fill: #fff; transform: scale(1.08) rotate(-4deg); }
.benefits a:hover .benefit-go, .benefits a:focus-visible .benefit-go { stroke: var(--blue-600); background: none; fill: none; transform: translateX(4px); }
.benefits a:hover strong { color: var(--blue-700); }
.benefits a:active > svg:first-child { transform: scale(.96); }
.benefits strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.25; }
.benefits span { font-size: .88rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }

/* ---------- sekce ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--bg-tint); }
.section-follow { padding-top: 0; } /* navazuje na předchozí sekci se stejným pozadím */
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin-top: 16px; }
.section-head-left { text-align: left; margin-inline: 0; }
.section-head-dark h2 { color: #fff; }
.section-head-dark p:not(.eyebrow) { color: #b9c4e4; }
.section-head-dark .eyebrow { color: var(--blue-400); }

/* ---------- služby ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-800); }
.service-img img, .service-img svg { width: 100%; height: 100%; object-fit: cover; }
.service-img-top img { object-position: 50% 22%; }
.service-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-body p { color: var(--muted); font-size: .98rem; }
.tag { align-self: flex-start; font-size: .76rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-600); background: var(--blue-100); padding: 5px 10px; border-radius: 999px; }
.ticks li { position: relative; padding-left: 28px; margin-top: 8px; font-size: .96rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231244e6' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.variants { margin-top: clamp(48px, 6vw, 80px); }
.variants-title { text-align: center; font-size: 1.5rem; margin-bottom: 28px; }
.variants-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.variant { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; }
.variant img { width: 112px; height: 112px; object-fit: cover; border-radius: 16px; }
.variant p { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ---------- kalkulačka ---------- */
.calc {
  padding: clamp(64px, 9vw, 120px) 0; color: #dbe3f7;
  background:
    radial-gradient(900px 600px at 20% 20%, rgba(47, 98, 255, .22), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(47, 98, 255, .14), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.calc-left { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }

.stage {
  position: relative; height: clamp(360px, 52vh, 540px); border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #1b2c66 0%, #0b1433 60%, #070c20 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
}
.stage.is-dragging { cursor: grabbing; }
.stage-canvas { position: absolute; inset: 0; }
.stage-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; padding: 24px; }
.stage.is-3d .stage-fallback { display: none; }
.stage-fallback .fb-ins { opacity: 0; transition: opacity .5s ease; }
.stage[data-puda="1"] .fb-ins-puda,
.stage[data-fasada="1"] .fb-ins-fasada,
.stage[data-sklep="1"] .fb-ins-sklep { opacity: 1; }
.stage[data-cellar="0"] .fb-cellar, .stage[data-cellar="0"] .fb-ins-sklep { display: none; }
.stage-fallback .fb-ceil, .stage-fallback .fb-wall, .stage-fallback .fb-floor { transition: fill .5s ease; }
.stage[data-puda="0"] .fb-ceil { fill: #ff7a3d; }
.stage[data-fasada="0"] .fb-wall { fill: #ff9a5a; }
.stage[data-sklep="0"][data-cellar="1"] .fb-floor { fill: #ff9a5a; }

.hotspot {
  position: absolute; left: 0; top: 0; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(10, 19, 48, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: .86rem; font-weight: 650; white-space: nowrap;
  transform: translate(-50%, -50%); transition: background .2s, border-color .2s, opacity .3s;
  will-change: left, top;
}
.hotspot i { width: 20px; height: 20px; border-radius: 50%; background: var(--hot); position: relative; flex-shrink: 0; box-shadow: 0 0 0 5px rgba(255, 90, 31, .22); }
.hotspot i::before, .hotspot i::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px; transform: translate(-50%, -50%); }
.hotspot i::before { width: 10px; height: 2px; }
.hotspot i::after { width: 2px; height: 10px; transition: transform .2s; }
.hotspot b { color: #ffc9a8; font-weight: 750; }
.hotspot:hover { border-color: #fff; }
.hotspot[aria-pressed="true"] { background: rgba(18, 68, 230, .9); border-color: rgba(255, 255, 255, .5); }
.hotspot[aria-pressed="true"] i { background: #fff; box-shadow: none; }
.hotspot[aria-pressed="true"] i::before { background: var(--blue-600); width: 10px; transform: translate(-50%, -50%); }
.hotspot[aria-pressed="true"] i::after { transform: translate(-50%, -50%) scaleY(0); }
.hotspot[aria-pressed="true"] b { color: #d7e2ff; }
.hotspot[hidden] { display: none; }
/* výchozí rozmístění, než 3D model převezme pozice (a pro náhradní obrázek) */
#hsPuda { left: 50%; top: 22%; }
#hsFasada { left: 82%; top: 44%; }
#hsSklep { left: 50%; top: 76%; }

.stage-legend { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 16px; font-size: .78rem; color: #aab7dc; z-index: 2; }
.stage-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg-hot { background: var(--hot); box-shadow: 0 0 8px var(--hot); }
.lg-ins { background: var(--ins); }
.stage-hint { position: absolute; right: 16px; bottom: 14px; font-size: .78rem; color: #8494c2; z-index: 2; }
.stage:not(.is-3d) .stage-hint { display: none; }

.results { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; }
.result {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 18px; padding: 16px 18px; min-width: 0;
}
.result-main { background: linear-gradient(135deg, var(--blue-600), #3d6dff); border-color: transparent; }
.result-label { display: block; font-size: .78rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: #a9b7e0; }
.result-main .result-label { color: #dbe5ff; }
.result strong { display: block; color: #fff; font-size: clamp(1.25rem, 2.2vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.result-main strong { font-size: clamp(1.7rem, 3vw, 2.6rem); }

.calc-panel { display: grid; gap: 16px; }
.panel-block { background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); border-radius: 22px; padding: 22px; }
.panel-block h3 { color: #fff; font-size: 1.08rem; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.step { width: 26px; height: 26px; border-radius: 50%; background: var(--blue-600); color: #fff; font-size: .85rem; display: inline-grid; place-items: center; font-weight: 750; }

.field { display: block; margin-top: 16px; }
.field:first-of-type { margin-top: 0; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .93rem; color: #c5cfeb; margin-bottom: 8px; }
.field output { color: #fff; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.field small { display: block; color: #8d9bc4; font-size: .8rem; margin-top: 8px; line-height: 1.4; }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; margin: 0; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--blue-500) var(--fill), rgba(255, 255, 255, .16) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--blue-500); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .45), 0 0 0 5px rgba(47, 98, 255, .28); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .45), 0 0 0 5px rgba(47, 98, 255, .28); cursor: pointer; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: rgba(255, 255, 255, .07); padding: 4px; border-radius: 14px; }
.seg button { border: 0; background: transparent; color: #c5cfeb; padding: 10px 8px; border-radius: 10px; font-weight: 650; font-size: .93rem; transition: background .15s, color .15s; }
.seg button:hover { color: #fff; }
.seg button[aria-checked="true"] { background: #fff; color: var(--navy-900); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }

.measure {
  display: grid; grid-template-columns: auto 1fr auto; gap: 4px 14px; align-items: center;
  padding: 14px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08); margin-top: 10px;
  transition: background .2s, border-color .2s, opacity .2s;
}
.measure:first-of-type { margin-top: 0; }
.measure.is-on { background: rgba(47, 98, 255, .16); border-color: rgba(106, 144, 255, .55); }
.measure.is-disabled { opacity: .45; }
.measure-text strong { display: block; color: #fff; font-size: .98rem; }
.measure-text span { display: block; color: #9aa8d0; font-size: .84rem; }
.measure-val { color: #ffc9a8; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.measure.is-on .measure-val { color: #9fd0ff; }
.field-inline { grid-column: 2 / -1; margin-top: 8px; display: none; }
.measure.is-on .field-inline { display: block; }

.switch { width: 50px; height: 30px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .2); position: relative; padding: 0; transition: background .2s; flex-shrink: 0; }
.switch span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.switch[aria-checked="true"] { background: var(--blue-500); }
.switch[aria-checked="true"] span { transform: translateX(20px); }
.switch:disabled { cursor: not-allowed; }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 46px; gap: 10px; align-items: center; font-size: .84rem; color: #c5cfeb; }
.bar { height: 22px; border-radius: 7px; background: rgba(255, 255, 255, .07); display: flex; gap: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; transition: flex-basis .6s cubic-bezier(.2, .8, .2, 1); flex: 0 0 0%; min-width: 0; }
.bar-pct { text-align: right; color: #fff; font-weight: 750; font-variant-numeric: tabular-nums; }
.bar-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; font-size: .8rem; color: #aab7dc; }
.bar-legend li { display: inline-flex; align-items: center; gap: 6px; }
.bar-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bar-legend b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

.subsidy-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.subsidy strong { display: block; color: #fff; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.subsidy p { font-size: .84rem; color: #9aa8d0; margin-top: 10px; line-height: 1.45; }
.link-arrow { color: #a9c0ff; font-size: .88rem; font-weight: 650; white-space: nowrap; }
.method { font-size: .84rem; color: #8d9bc4; }
.method summary { cursor: pointer; color: #a9c0ff; font-weight: 650; padding: 4px 0; }
.method p { margin-top: 8px; line-height: 1.55; }

/* ---------- dotace ---------- */
.grant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grant-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.grant-card h3 { margin-bottom: 14px; }
.grant-card p { font-size: .98rem; }
.grant-card .small { font-size: .88rem; color: var(--muted); margin-top: 16px; }
.grant-card-rates { background: var(--navy-900); border-color: var(--navy-900); color: #cfd8f2; }
.grant-card-rates h3 { color: #fff; }
.grant-card-rates .small { color: #a9b7e0; }
.rates div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.rates dt { font-size: .98rem; }
.rates dd { margin: 0; color: #fff; font-weight: 800; font-size: 1.3rem; white-space: nowrap; letter-spacing: -0.01em; }
.source { font-size: .84rem; color: var(--muted); margin-top: 22px; max-width: 900px; }
.grant-cta {
  margin-top: 36px; display: flex; gap: 28px; align-items: center; justify-content: space-between;
  background: linear-gradient(120deg, var(--blue-600), #3d6dff); color: #e6edff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
}
.grant-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.grant-cta p { max-width: 640px; }
.grant-cta .btn-primary { background: #fff; color: var(--blue-700); box-shadow: none; }
.grant-cta .btn-primary:hover { background: var(--blue-50); }

/* ---------- postup ---------- */
/* Časová osa: výchozí stav je hotový (vyplněná linka i kolečka),
   rozkreslení běží jen tam, kde JS přidá .reveal a pak .is-in. */
.steps { --node: 68px; --pad: 26px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps::before, .steps::after {
  content: ""; position: absolute; z-index: 1; left: 12.5%; right: 12.5%;
  top: calc(var(--pad) + var(--node) / 2 - 1.5px); height: 3px; border-radius: 3px;
}
.steps::before { background: var(--line); }
.steps::after {
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transform-origin: left center; transition: transform 1.5s cubic-bezier(.4, 0, .2, 1) .25s;
}
.steps.reveal:not(.is-in)::after { transform: scaleX(0); }
.steps li { --step-bg: var(--bg); padding: var(--pad) 22px 28px; text-align: center; background: var(--step-bg); }
.steps li.step-opt { --step-bg: var(--blue-50); }
.steps li:nth-child(2) { border-radius: var(--radius) 0 0 var(--radius); }
.steps li:nth-child(3) { border-radius: 0 var(--radius) var(--radius) 0; }
.step-node {
  position: relative; z-index: 2; display: grid; place-items: center; width: var(--node); height: var(--node);
  margin: 0 auto 22px; border-radius: 50%; background: var(--blue-600); color: #fff;
  box-shadow: 0 0 0 8px var(--step-bg), 0 14px 26px -10px rgba(18, 68, 230, .6);
  transition: background .45s ease, color .45s ease, box-shadow .45s ease, transform .45s cubic-bezier(.2, .9, .3, 1.4);
}
.steps li:nth-child(1) .step-node { transition-delay: .25s; }
.steps li:nth-child(2) .step-node { transition-delay: .7s; }
.steps li:nth-child(3) .step-node { transition-delay: 1.2s; }
.steps li:nth-child(4) .step-node { transition-delay: 1.65s; }
.steps.reveal:not(.is-in) .step-node {
  background: var(--step-bg); color: var(--blue-400); transform: scale(.86);
  box-shadow: 0 0 0 8px var(--step-bg), inset 0 0 0 2px var(--line);
}
.step-node svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-node b {
  position: absolute; top: -4px; right: -4px; display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 800; border: 3px solid var(--step-bg);
}
.step-kicker { font-size: .74rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.step-kicker em { font-style: normal; color: var(--blue-600); }
.step-kicker em::before { content: "· "; color: var(--muted); }
.steps h3 { font-size: 1.22rem; }
.step-body > p:not([class]) { color: var(--muted); font-size: .96rem; margin-top: 10px; }
@media (min-width: 1101px) {
  .steps li { display: flex; flex-direction: column; }
  .step-body { flex: 1; display: flex; flex-direction: column; }
  .step-body > p:not([class]) { flex: 1; }
  .step-tag { align-self: center; }
}
.step-you { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #cfd7e6; font-size: .93rem; color: var(--ink); font-weight: 600; }
.step-you span { display: block; font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.step-tag {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: #e8f7f1; color: #0b6b49; font-size: .82rem; font-weight: 700; line-height: 1.2;
}
.step-tag::before {
  content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.steps-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: .98rem; }
.steps-note strong { color: var(--ink); }
.steps-note a { font-weight: 700; white-space: nowrap; }

/* svislá osa pro tablet a mobil */
@media (max-width: 1100px) {
  .steps { --node: 56px; --pad: 22px; grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .steps::before, .steps::after { display: none; }
  .steps li { position: relative; }
  .steps li::before {
    content: ""; position: absolute; z-index: 1; left: calc(18px + var(--node) / 2 - 1.5px); width: 3px; top: 0; bottom: 0;
    background: var(--blue-500); transform-origin: center top; transition: transform .5s ease;
  }
  .steps li:first-child::before { top: calc(var(--pad) + var(--node) / 2); }
  .steps li:last-child::before { bottom: auto; height: calc(var(--pad) + var(--node) / 2); }
  .steps li:nth-child(1)::before { transition-delay: .3s; }
  .steps li:nth-child(2)::before { transition-delay: .7s; }
  .steps li:nth-child(3)::before { transition-delay: 1.15s; }
  .steps li:nth-child(4)::before { transition-delay: 1.6s; }
  .steps.reveal:not(.is-in) li::before { transform: scaleY(0); }
  .steps li { display: grid; grid-template-columns: var(--node) minmax(0, 1fr); gap: 20px; padding: var(--pad) 18px 24px; text-align: left; }
  .steps li:nth-child(2) { border-radius: var(--radius) var(--radius) 0 0; }
  .steps li:nth-child(3) { border-radius: 0 0 var(--radius) var(--radius); }
  .step-node { margin: 0; }
  .step-node svg { width: 24px; height: 24px; }
  .step-body { padding-top: 4px; }
  .steps-note { max-width: 640px; margin-inline: auto; text-align: left; padding-inline: 18px; }
}

.progress-demo { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.progress-copy h3 { font-size: 1.7rem; }
.progress-copy > p { color: var(--muted); margin-top: 12px; }
.progress-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.progress-tabs button, .filters button {
  border: 1.5px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 650; font-size: .94rem; color: var(--text);
  transition: background .15s, color .15s, border-color .15s;
}
.progress-tabs button:hover, .filters button:hover { border-color: var(--blue-500); color: var(--blue-600); }
.progress-tabs button[aria-selected="true"], .filters button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.progress-cap { margin-top: 18px !important; color: var(--ink) !important; font-weight: 600; min-height: 3.2em; }
.progress-photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--navy-800); }
.progress-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease; }
.progress-photo img.is-swapping { opacity: 0; }

/* ---------- galerie ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.gallery { columns: 4 240px; column-gap: 16px; }
.g-item {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0; background: var(--navy-800);
  border-radius: 16px; overflow: hidden; position: relative; break-inside: avoid; cursor: zoom-in;
}
.g-item img { width: 100%; transition: transform .5s ease; }
.g-item:hover img { transform: scale(1.04); }
.g-item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; color: #fff; font-size: .84rem; font-weight: 600; text-align: left;
  background: linear-gradient(transparent, rgba(6, 11, 28, .82)); line-height: 1.3;
}
.g-item[hidden] { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(6, 11, 28, .94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 20px 0; }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; border-radius: 12px; }
.lightbox figcaption { color: #dbe3f7; font-size: .95rem; text-align: center; padding: 0 12px; }
.lb-nav, .lb-close { background: rgba(255, 255, 255, .1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: grid; place-items: center; justify-self: center; }
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, .22); }
.lb-close { position: absolute; top: 16px; right: 16px; }

/* ---------- o nás ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about-photo { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-media { position: relative; margin-bottom: 44px; }
.about-photo-2 {
  position: absolute; right: -18px; bottom: -44px; width: 66%; margin: 0; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 20px; border: 6px solid #fff; box-shadow: var(--shadow); background: var(--navy-800);
}
.about-photo-2 img { width: 100%; height: 100%; object-fit: cover; }
.partners { margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.partners-label { font-size: .8rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.partners ul { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 40px; }
/* Běžící pás: výchozí stav je obyčejná řada, pohyb přidá až JS třídou .is-running. */
.marquee { flex: 1 1 320px; min-width: 0; }
.marquee.is-running {
  overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.marquee.is-running ul { flex-wrap: nowrap; gap: clamp(36px, 5vw, 72px); width: max-content; animation: partnersRun 20s linear infinite; will-change: transform; }
.marquee.is-running li { flex: none; }
.marquee.is-paused ul, .marquee:focus-within ul { animation-play-state: paused; }
@media (hover: hover) { .marquee:hover ul { animation-play-state: paused; } }
@keyframes partnersRun { to { transform: translateX(var(--shift, -50%)); } }
.marquee-toggle {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--muted); cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.marquee-toggle[hidden] { display: none; }
.marquee-toggle:hover { color: var(--blue-600); border-color: var(--blue-500); }
.marquee-toggle .ico-play, .marquee-toggle[aria-pressed="true"] .ico-pause { display: none; }
.marquee-toggle[aria-pressed="true"] .ico-play { display: block; }
@media (max-width: 700px) {
  .partners { justify-content: space-between; }
  .marquee { order: 3; flex-basis: 100%; }
  .marquee.is-running { margin-inline: -20px; -webkit-mask-image: none; mask-image: none; }
}
/* Partneři v jednotné šedé: loga jako jednobarevná silueta, bez dlaždic. */
.partner {
  display: flex; align-items: center; justify-content: center; height: 56px; padding: 0 6px;
  text-decoration: none; white-space: nowrap;
}
.partner img { width: auto; height: 34px; filter: brightness(0); opacity: .5; transition: opacity .2s ease; }
.partner img[src$="arboservis.png"] { height: 26px; }
a.partner:hover img, a.partner:focus-visible img { opacity: .8; }
.partner-text { color: #6b7280; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }

/* ---------- mapa realizací ---------- */
.map-block { margin-top: clamp(44px, 6vw, 80px); display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.map-copy h3 { font-size: 1.7rem; }
.map-copy p { color: var(--muted); margin-top: 12px; }
.map-copy .map-note { font-size: .95rem; }
.map-copy .btn { margin-top: 26px; }
.map-card {
  position: relative; border-radius: 28px; padding: clamp(40px, 4vw, 52px) clamp(16px, 3vw, 36px) clamp(20px, 3vw, 36px);
  background: radial-gradient(110% 130% at 25% 0%, #1a2f7a 0%, var(--navy-900) 62%); box-shadow: var(--shadow);
}
.map-svg svg { display: block; width: 100%; height: auto; overflow: visible; }
.kraje path { fill: #1c2f73; stroke: #4563c9; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pin { outline: none; }
.pin-dot { fill: rgba(106, 144, 255, .5); transform-box: fill-box; transform-origin: center; transition: fill .15s ease, transform .15s ease; }
.pin-core { fill: #fff; }
.pin-pulse {
  fill: none; stroke: var(--blue-400); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: pinPulse 3.2s ease-out infinite; animation-delay: var(--d, 0s);
}
@keyframes pinPulse { 0% { transform: scale(.7); opacity: .9; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
.pin:focus-visible .pin-dot, .pin.is-on .pin-dot { fill: var(--blue-500); transform: scale(1.7); }
.map-tip {
  position: absolute; z-index: 2; transform: translate(-50%, -100%); margin-top: -10px; pointer-events: none; white-space: nowrap;
  background: #fff; color: var(--ink); font-weight: 700; font-size: .88rem; line-height: 1.2; padding: 7px 11px; border-radius: 10px; box-shadow: var(--shadow-sm);
}
.map-badge {
  position: absolute; left: 16px; top: 14px; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; line-height: 1.3;
  background: rgba(255, 176, 32, .14); color: #ffd58a; border: 1px solid rgba(255, 176, 32, .45);
}
@media (max-width: 940px) {
  .map-block { grid-template-columns: minmax(0, 1fr); }
  .partner { height: 48px; }
  .partner img { height: 28px; }
  .partner img[src$="arboservis.png"] { height: 22px; }
  .partner-text { font-size: 1.02rem; }
}
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; margin-top: 18px; }
.about-points { margin: 26px 0 30px; display: grid; gap: 14px; }
.about-points li { padding-left: 20px; border-left: 3px solid var(--blue-500); }
.about-points strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; color: var(--ink); position: relative; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; font-size: 1.2rem; font-weight: 500; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* ---------- kontakt ---------- */
.contact { padding: clamp(64px, 9vw, 120px) 0; background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #cfd8f2; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact h2 { color: #fff; }
.contact .eyebrow { color: var(--blue-400); }
.contact-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1.08rem; max-width: 30em; }
.contact-phone { display: block; margin-top: 30px; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.02em; line-height: 1.1; }
.contact-phone:hover { color: var(--blue-400); }
.contact-mail { display: inline-block; margin-top: 10px; color: #a9c0ff; font-size: 1.15rem; font-weight: 600; }
.company { margin: 36px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.company div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: .96rem; }
.company dt { color: #8d9bc4; }
.company dd { margin: 0; color: #fff; }

.form { background: #fff; color: var(--text); border-radius: 28px; padding: clamp(22px, 3.5vw, 36px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6); display: grid; gap: 16px; }
.form h3 { font-size: 1.45rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: block; font-size: .9rem; font-weight: 650; color: var(--ink); }
.form .opt { color: var(--muted); font-weight: 500; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg-tint); transition: border-color .15s, background .15s;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--blue-500); background: #fff; }
.form input.is-invalid { border-color: #d92d20; background: #fff5f4; }
.form textarea { resize: vertical; min-height: 88px; }
.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checks legend { font-size: .9rem; font-weight: 650; color: var(--ink); margin-bottom: 8px; padding: 0; }
.checks label { position: relative; }
.checks input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.checks span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 650; transition: background .15s, border-color .15s, color .15s; }
.checks input:checked + span { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.checks input:focus-visible + span { outline: 3px solid var(--blue-500); outline-offset: 2px; }
.form-calc { background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 14px; padding: 14px 16px; font-size: .88rem; }
.form-calc-check { display: flex !important; align-items: center; gap: 8px; }
.form-calc-check input { width: 18px; height: 18px; accent-color: var(--blue-600); }
.form-calc p { color: var(--muted); margin-top: 6px; line-height: 1.45; }
.form-error { color: #b42318; font-size: .92rem; font-weight: 600; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; }

/* ---------- patička ---------- */
.site-footer { background: var(--navy-950); color: #9aa8d0; padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr 1.5fr; gap: 40px; }
.brand-footer .brand-mark { height: 46px; }
.brand-footer .brand-word { height: 21px; }
.footer-brand p { margin-top: 14px; }
.footer-nav { display: grid; gap: 8px; align-content: start; }
.site-footer a { color: #cfd8f2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal p + p { margin-top: 12px; }
.footnotes { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: #7483ad; display: grid; gap: 10px; }

.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none; align-items: center; gap: 8px;
  background: var(--blue-600); color: #fff; padding: 14px 20px; border-radius: 999px; font-weight: 750; text-decoration: none;
  box-shadow: 0 14px 30px -8px rgba(18, 68, 230, .8);
}
.call-fab svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responzivita ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; font-size: .9rem; }
  .header-inner { gap: 14px; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefits li:nth-child(2) { border-right: 0; }
  .benefits li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .variants-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 940px) {
  :root { --header-h: 64px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; flex-direction: column; gap: 0; margin: 0;
    padding: 8px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .header-call { margin-left: auto; }
  .hero-grid, .calc-grid, .about, .faq-wrap, .contact-grid, .progress-demo { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; max-width: 520px; margin-inline: auto; width: 100%; }
  .calc-left { position: static; }
  .stage { height: clamp(320px, 48vh, 440px); }
  .services, .grant-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .faq-wrap .section-head { position: static; }
  .grant-cta { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-media { max-width: 420px; }
  .about-photo { aspect-ratio: 4 / 3; }
  .about-photo-2 { right: -8px; width: 56%; }
  .call-fab { display: inline-flex; }
  .site-footer { padding-bottom: 90px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-call span { display: none; }
  .header-call { padding: 11px; }
  .brand-mark { height: 34px; }
  .brand-word { height: 16px; }
  .hero-stats { grid-template-columns: 1fr; gap: 14px; }
  .hero-stats li { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; }
  .hero-stats span { margin: 0; }
  .hero-badge-a { left: 0; top: 4%; }
  .hero-badge-b { right: 0; bottom: 6%; }
  .hero-badge { max-width: 210px; padding: 10px 12px; }
  .benefits { grid-template-columns: 1fr; }
  .benefits li { border-right: 0; border-bottom: 1px solid var(--line); }
  .benefits a { padding: 16px 18px; }
  .benefits li:last-child { border-bottom: 0; }
  .results { grid-template-columns: 1fr 1fr; }
  .result-main { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .g-item { margin-bottom: 10px; border-radius: 12px; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: 18px; }
  .lb-prev { left: 24%; } .lb-next { right: 24%; }
  .variant { grid-template-columns: 84px 1fr; }
  .variant img { width: 84px; height: 84px; }
  .panel-block { padding: 18px; }
  .bar-row { grid-template-columns: 78px 1fr 42px; }
  .hotspot { font-size: .8rem; padding: 6px 10px 6px 6px; }
  .stage { height: clamp(300px, 42vh, 380px); border-radius: 22px; }
  .stage-hint { bottom: auto; top: 12px; right: 14px; }
  .seg button { font-size: .86rem; padding-inline: 4px; white-space: nowrap; }
  .company div { grid-template-columns: 80px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Podstránky (zateplení půdy, fasády, sklepa, dotace…)
   ========================================================= */
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-weight: 700; text-decoration: none; color: var(--blue-600); }
.more::after { content: "→"; transition: transform .2s ease; }
.more:hover::after { transform: translateX(4px); }

.page-hero {
  padding: clamp(28px, 5vw, 64px) 0 clamp(36px, 5vw, 64px);
  background:
    radial-gradient(900px 480px at 90% -20%, rgba(47, 98, 255, .16), transparent 60%),
    linear-gradient(#fff, var(--bg-tint));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 20em; }
.page-hero .lead { max-width: 40em; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }

.page-section { padding-top: clamp(40px, 6vw, 72px); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.page-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.aside-card { background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside-card h2 { font-size: 1.15rem; margin-bottom: 10px; }
.aside-card p { font-size: .95rem; color: var(--muted); }
.aside-card-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); border-color: transparent; color: #cfd8f2; }
.aside-card-dark h2 { color: #fff; }
.aside-card-dark p { color: #b9c4e4; }
.aside-phone { display: block; margin: 14px 0 16px; font-size: 1.9rem; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -0.02em; }
.aside-links li { border-top: 1px solid var(--line); }
.aside-links li:first-child { border-top: 0; }
.aside-links a { display: block; padding: 11px 0; text-decoration: none; font-weight: 650; color: var(--ink); }
.aside-links a:hover { color: var(--blue-600); }

.prose { max-width: 760px; min-width: 0; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 52px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin-top: 34px; }
.prose p, .prose li { font-size: 1.04rem; }
.prose .ticks li { margin-top: 10px; }
.prose .source { margin-top: 28px; font-size: .84rem; }
.note { background: var(--blue-50); border-left: 4px solid var(--blue-500); border-radius: 0 12px 12px 0; padding: 14px 18px; font-size: .98rem !important; color: var(--ink); }
.num-list { counter-reset: n; display: grid; gap: 14px; }
.num-list li { counter-increment: n; position: relative; padding-left: 52px; min-height: 36px; }
.num-list li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 11px; background: var(--blue-600); color: #fff; font-weight: 800; display: grid; place-items: center; }
.prose-split { display: grid; grid-template-columns: 1fr 240px; gap: 24px; align-items: start; }
.prose-split > div > * + * { margin-top: 14px; }
.prose-fig { margin: 0; }
.prose-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: var(--navy-800); }
.prose-fig figcaption { font-size: .84rem; color: var(--muted); margin-top: 8px; }
.prose-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.prose-gallery .prose-fig img { aspect-ratio: 3 / 4; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.data-table th, .data-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table thead th { background: var(--navy-900); color: #fff; font-weight: 700; white-space: nowrap; }
.data-table tbody th { font-weight: 700; color: var(--ink); background: var(--bg-tint); white-space: nowrap; }
.data-table-compare { min-width: 560px; }

/* bezúročný úvěr na úvodní stránce */
.loan { margin-top: 24px; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 48px); align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); }
.loan-copy { display: flex; flex-direction: column; gap: 12px; }
.loan-copy h3 { font-size: 1.5rem; }
.loan-copy p { color: var(--muted); }
.loan-facts { margin: 0; }
.loan-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.loan-facts div:last-child { border-bottom: 0; }
.loan-facts dt { font-size: .96rem; }
.loan-facts dd { margin: 0; font-weight: 800; color: var(--ink); white-space: nowrap; font-size: 1.1rem; }
.source-after-loan { margin-top: 18px; }
.loan-line { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 10px; color: #c5cfeb !important; }
.loan-line b { color: #fff; }
.footer-adr { font-size: .8rem; color: #7483ad; }

@media (max-width: 940px) {
  .page-grid { grid-template-columns: minmax(0, 1fr); }
  .page-aside { position: static; grid-template-columns: 1fr 1fr; }
  .loan { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-aside { grid-template-columns: 1fr; }
  .prose-split { grid-template-columns: 1fr; }
  .prose-gallery { grid-template-columns: 1fr 1fr; }
  .loan-facts div { flex-direction: column; gap: 2px; }
}

/* =========================================================
   Recenze
   ========================================================= */
.reviews { padding: clamp(56px, 8vw, 104px) 0; background: linear-gradient(135deg, var(--blue-700), var(--blue-600) 45%, #3d6dff); color: #e6edff; }
.reviews[hidden] { display: none; }
.reviews-head h2 { color: #fff; }
.reviews-head .eyebrow { color: #cfdcff; }
.reviews-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.reviews-grid[data-count="1"] { grid-template-columns: minmax(0, 680px); justify-content: center; }
.reviews-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; }
.review { margin: 0; background: #fff; color: var(--text); border-radius: var(--radius); padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 24px 50px -28px rgba(4, 12, 48, .7); position: relative; }
.review::before { content: "“"; position: absolute; top: 6px; right: 22px; font-size: 5rem; line-height: 1; color: var(--blue-100); font-family: Georgia, "Times New Roman", serif; }
.review blockquote { margin: 0; font-size: 1.04rem; line-height: 1.6; color: var(--ink); position: relative; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-100); color: var(--blue-600); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; }
.review-who strong { display: block; color: var(--ink); line-height: 1.25; }
.review-who small { display: block; color: var(--muted); font-size: .86rem; }
.review.is-demo { outline: 2px dashed rgba(255, 255, 255, .7); outline-offset: 4px; }
.review.is-demo blockquote { color: var(--muted); font-style: italic; }
.reviews-demo { text-align: center; background: rgba(6, 11, 28, .35); border-radius: 12px; padding: 10px 16px; margin: -16px auto 28px; max-width: 640px; font-size: .92rem; font-weight: 650; color: #fff; }
.reviews-foot { margin-top: 32px; display: flex; gap: 20px 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.reviews-verify { font-size: .86rem; color: #cfdcff; max-width: 680px; }
@media (max-width: 940px) {
  .reviews-grid, .reviews-grid[data-count="2"] { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}

/* atribut hidden musí vyhrát i nad prvky s vlastním display (tlačítka apod.) */
[hidden] { display: none !important; }

/* =========================================================
   Ceník, čísla o firmě, cena v kalkulačce
   ========================================================= */
.pricing { margin-top: clamp(48px, 6vw, 80px); background: var(--navy-900); color: #cfd8f2; border-radius: 28px; padding: clamp(24px, 4vw, 44px); }
.pricing-head { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; justify-content: space-between; margin-bottom: 26px; }
.pricing-head h2 { color: #fff; font-size: 1.6rem; font-weight: 750; }
.container > .pricing:first-child { margin-top: 0; }
.pricing-head p { color: #a9b7e0; font-size: .98rem; max-width: 560px; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.price { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.price h4 { color: #dbe3f7; font-size: .95rem; font-weight: 650; line-height: 1.3; min-height: 2.6em; }
.price-val { color: #fff; font-size: clamp(1.35rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.price-val small { font-size: .55em; font-weight: 650; color: #a9b7e0; margin-left: 2px; }
.price-note { font-size: .86rem; color: #9fd0ff; line-height: 1.4; }
.pricing-foot { margin-top: 20px; font-size: .88rem; color: #a9b7e0; }
.pricing-foot a { color: #cfdcff; }

.about-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.about-stats li { background: var(--bg-tint); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px; }
.about-stats strong { display: block; color: var(--ink); font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.about-stats span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.section-tint .about-stats li { background: #fff; }

.money { margin: 0; }
.money div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.money dt { font-size: .93rem; color: #c5cfeb; }
.money dt small { color: #8d9bc4; margin-left: 4px; }
.money dt .link-arrow { margin-left: 6px; font-size: .8rem; }
.money dd { margin: 0; color: #fff; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.money-main dd { font-size: 1.35rem; font-weight: 800; }
.money-main dt { color: #fff; font-weight: 650; }
.subsidy .money + p { margin-top: 12px; }
.seg-sm button { padding: 8px 6px; font-size: .86rem; }

@media (max-width: 1080px) { .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .pricing-grid { grid-template-columns: minmax(0, 1fr); }
  .price h4 { min-height: 0; }
  .about-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .money div { flex-wrap: wrap; }
}

/* =========================================================
   Telefon s předvolbou a tlačítka pro zavolání
   ========================================================= */
.cc { font-style: normal; }
.hero-call { margin-top: 16px; font-size: .98rem; color: var(--muted); }
.hero-call a { color: var(--ink); font-weight: 750; text-decoration: none; white-space: nowrap; }
.hero-call a:hover { color: var(--blue-600); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.contact-mail { margin-top: 18px; }
.aside-phone { font-size: 1.55rem; white-space: nowrap; }
.aside-card-dark .btn + .btn { margin-top: 10px; }
@media (max-width: 1180px) { .header-call .cc { display: none; } }

/* =========================================================
   3D scéna – větší plátno, teploměr, legenda
   ========================================================= */
.stage { height: clamp(420px, 62vh, 640px); }
.stage-hint { bottom: auto; top: 14px; right: 16px; }
.stage-temp { position: absolute; left: 16px; top: 14px; z-index: 2; display: flex; gap: 8px; font-size: .78rem; color: #c5cfeb; }
.stage-temp span { background: rgba(10, 19, 48, .6); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 5px 10px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stage-temp b { color: #fff; font-weight: 750; }
.stage-temp span:first-child b { color: #9fd0ff; }
.stage-temp span:last-child b { color: #ffc9a8; }
.stage:not(.is-3d) .stage-temp, .stage:not(.is-3d) .lg-wide { display: none; }
.stage-legend { flex-wrap: wrap; gap: 6px 16px; right: 16px; }
.lg-snow { background: #f2f6ff; }
.result-wide { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.result-wide small { display: block; color: #8d9bc4; font-size: .78rem; margin-top: 3px; line-height: 1.35; }
.result-wide strong { margin-top: 0; color: #9fe0b8; }

/* =========================================================
   Test nároku na dotaci
   ========================================================= */
.check { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(20px, 3vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); align-items: start; }
.check-form h3 { font-size: 1.5rem; margin-top: 12px; }
.check-lead { color: var(--muted); font-size: .96rem; margin: 10px 0 18px; max-width: 46em; }
.q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.q-text { font-weight: 650; color: var(--ink); font-size: .98rem; line-height: 1.35; }
.q-text small { font-weight: 500; color: var(--muted); }
.q-stack { flex-direction: column; align-items: stretch; gap: 10px; }
.yn { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 4px; background: var(--bg-tint); border: 1px solid var(--line); padding: 3px; border-radius: 12px; flex-shrink: 0; }
.yn button { border: 0; background: transparent; padding: 8px 0; border-radius: 9px; font-weight: 700; font-size: .92rem; color: var(--muted); transition: background .15s, color .15s; }
.yn button[aria-checked="true"] { background: var(--blue-600); color: #fff; box-shadow: 0 4px 10px -4px rgba(18, 68, 230, .7); }
.counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.counters label { display: grid; gap: 6px; font-size: .86rem; color: var(--muted); font-weight: 600; }
.counter { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; background: var(--bg-tint); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.counter button { border: 0; background: transparent; height: 40px; font-size: 1.2rem; font-weight: 700; color: var(--blue-600); }
.counter button:hover { background: var(--blue-100); }
.counter output { text-align: center; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.money-input { display: grid; grid-template-columns: 1fr auto; align-items: center; background: var(--bg-tint); border: 1.5px solid var(--line); border-radius: 12px; padding-right: 14px; max-width: 280px; }
.money-input:focus-within { border-color: var(--blue-500); background: #fff; }
.money-input input { border: 0; background: transparent; padding: 12px 14px; font: inherit; font-weight: 700; color: var(--ink); width: 100%; outline: 0; min-width: 0; }
.money-input span { color: var(--muted); font-weight: 650; }

.check-result { position: sticky; top: calc(var(--header-h) + 20px); background: var(--bg-tint); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 12px; transition: background .25s, border-color .25s; }
.check-badge { justify-self: start; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: #e2e7f0; color: var(--muted); }
.check-result h4 { font-size: 1.2rem; }
.check-result > p { font-size: .95rem; color: var(--text); }
.check-facts { margin: 0; border-top: 1px solid var(--line); }
.check-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.check-facts dd { margin: 0; font-weight: 750; color: var(--ink); white-space: nowrap; }
.check-note { font-size: .78rem !important; color: var(--muted) !important; line-height: 1.45; }
.check-result[data-state="ok"] { background: #ecf9f2; border-color: #b7e4cb; }
.check-result[data-state="ok"] .check-badge { background: #19a974; color: #fff; }
.check-result[data-state="loan"] { background: var(--blue-50); border-color: #c9d7ff; }
.check-result[data-state="loan"] .check-badge { background: var(--blue-600); color: #fff; }
.check-result[data-state="maybe"] { background: #fff8e8; border-color: #f3dfaa; }
.check-result[data-state="maybe"] .check-badge { background: #c98500; color: #fff; }
.check-result[data-state="no"] .check-badge { background: #5d6679; color: #fff; }

@media (max-width: 940px) {
  .check { grid-template-columns: minmax(0, 1fr); }
  .check-result { position: static; }
}
@media (max-width: 600px) {
  .stage { height: clamp(320px, 46vh, 400px); }
  .stage-legend .lg-wide { display: none; }
  .q { flex-wrap: wrap; }
  .counters { grid-template-columns: minmax(0, 1fr); }
  .counters label { grid-template-columns: 1fr 140px; align-items: center; }
  .result-wide { flex-direction: row; }
}
@media (max-width: 600px) { .stage-hint { display: none; } }
