/* ============================================================
   3DCenter — styles.css
   Design: "Blueprint Foundry" — technický výkres, co se sám vytiskne.
   Výchozí SVĚTLÝ režim (papír) + přepínatelný TMAVÝ (CAD-inverz).
   Bez frameworku, bez build kroku.
   ============================================================ */

/* ---------- Palety (light = default) ---------- */
:root {
  --bg:            #F4F1EA;
  --surface:       #FCFBF7;
  --surface-alt:   #EDE8DD;
  --text:          #14181F;
  --muted:         #5C6470;
  --border:        #D6D0C2;
  --border-strong: #C3BCA9;
  --accent:        #FF7800;  /* brand – velký text / plochy / UI */
  --accent-text:   #A84400;  /* malý oranžový text (WCAG AA i na surface-alt) */
  --focus:         #A84400;  /* focus ring: značka má na papíře jen 2,35:1, WCAG 2.2 chce 3:1 */
  --on-accent:     #1A0E08;  /* tmavý text na oranžové ploše tlačítek */
  --accent2:       #1D4E6B;  /* výkresová modrá */
  --wygly:         #FF7800;
  --wygly-ink:     #1A0E08;
  --grid-line:     rgba(31,75,107,0.10);
  --shadow:        0 20px 50px -30px rgba(20,24,31,0.28);
  --press:         0 1px 0 rgba(255,255,255,0.6); /* letterpress ve světle */

  --radius:    6px;
  --radius-sm: 4px;
  --maxw:      1120px;
  --ease:      cubic-bezier(.22,.61,.36,1);
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

[data-theme="dark"] {
  --bg:            #0C0F14;
  --surface:       #141922;
  --surface-alt:   #10151D;
  --text:          #ECEFF4;
  --muted:         #8A94A6;
  --border:        #242C39;
  --border-strong: #33405A;
  --accent:        #FF7800;
  --accent-text:   #FF9455;
  --focus:         #FF9455;  /* na tmavém pozadí by prošla i značka (7,3:1), ale držíme jeden zdroj */
  --on-accent:     #160B05;
  --accent2:       #6FA0FF;
  --wygly:         #FF7800;
  --wygly-ink:     #160B05;
  --grid-line:     rgba(111,160,255,0.12);
  --shadow:        0 24px 60px -30px rgba(0,0,0,0.7);
  --press:         0 0 0 rgba(0,0,0,0);
}

* { box-sizing: border-box; }
/* Pojistka: autorské display (flex/grid/inline-flex u komponent) jinak přebije
   UA pravidlo pro [hidden] a "skryté" prvky zůstanou vidět (a blokují klikání).
   JS na webu používá el.hidden výhradně pro skutečné skrytí. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "ss01", "cv05";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* barevný přechod pouze při přepnutí režimu (přidá JS třídu .theme-anim) */
html.theme-anim * {
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, fill .3s ease, box-shadow .3s ease !important;
}

h1, h2, h3, h4, .brand-name {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
/* konstrukční rám — hairline rails jako u výkresu */
main .container { border-inline: 1px solid var(--border); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 0 0 6px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Focus (a11y) ---------- */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s, border-color .2s, color .2s;
  font-family: inherit; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--accent) 70%, transparent); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-text); transform: translateY(-2px); }

/* ---------- KOMPONENTA: výběrová pilulka ----------
   JEDEN styl pro všechny volby/filtry (materiálový finder, technologie,
   wizard, blog filtr). Nová volba kdekoli = použij jednu z těchto tříd,
   nevytvářej další variantu. Přehled komponent: komponenty.html */
.finder-btn, .tech-use, .wizard-opt, .copt {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--muted); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.finder-btn:hover, .tech-use:hover, .wizard-opt:hover, .copt:hover { border-color: var(--accent); color: var(--text); }
.finder-btn.is-active, .tech-use.is-active, .wizard-opt.is-active, .copt.is-active {
  background: var(--accent); color: var(--on-accent); border-color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  background: var(--bg); /* fallback bez color-mix — header nesmí prosvítat */
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { height: 32px; width: auto; max-width: none; display: block; }
.brand-name { font-size: 20px; font-weight: 700; }
.brand-accent { color: var(--accent-text); }

.brand-mark { width: 30px; height: auto; overflow: visible; }

.main-nav { display: flex; gap: 22px; flex-wrap: nowrap; }
.main-nav a { color: var(--muted); font-size: 15px; font-weight: 500; position: relative; transition: color .2s; white-space: nowrap; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a.is-active { color: var(--text); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* segmentované přepínače (téma + jazyk) */
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg-btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; font-weight: 500;
  padding: 6px 9px; background: transparent; color: var(--muted); border: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.is-active, .seg-btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.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); }

/* ---------- Eyebrow (mono štítek s indexem + rule line) ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px; width: 100%;
  font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .14em; color: var(--accent-text); margin: 0 0 18px;
}
.eyebrow-idx { color: var(--muted); text-shadow: var(--press); }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 68px 0 52px; overflow: hidden; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 40px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(120% 100% at 80% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 100% at 80% 0%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: center; }
.hero-title { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -0.04em; }
.hero-sub { color: var(--muted); font-size: clamp(16px, 2vw, 19px); margin: 22px 0 30px; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero logo mark (kreslicí animace je uvnitř assets/3dcenter-mark-anim.svg) ---------- */
.hero-visual { display: flex; justify-content: center; position: relative; z-index: 1; }
.mark-wrap { position: relative; width: min(330px, 80vw); margin: 0 auto; animation: floaty 6s var(--ease) infinite; }
.mark-glow { position: absolute; inset: -14%; background: radial-gradient(circle, rgba(255,120,0,.20), transparent 62%); filter: blur(16px); z-index: 0; }
.mark-img { position: relative; z-index: 1; width: 100%; height: auto; display: block; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) {
  .mark-wrap { animation: none !important; }
}

/* ---------- Stats jako kóty (dimension lines) ---------- */
.stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; padding-top: 38px; }
.stats::before { content: ""; position: absolute; top: 16px; left: 2%; right: 2%; height: 1px; background: var(--border-strong); }
.stats::after { content: ""; position: absolute; top: 10px; left: 2%; right: 2%; height: 13px; border-left: 1px solid var(--border-strong); border-right: 1px solid var(--border-strong); }
.stat { position: relative; text-align: center; }
.stat::before { content: ""; position: absolute; top: -22px; left: 50%; width: 1px; height: 9px; background: var(--accent); }
.stat-num { display: block; font-family: "Space Grotesk", "Inter", system-ui, sans-serif; font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; color: var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; position: relative; }
.section-alt { background: var(--surface-alt); }
.section-head { max-width: 760px; margin: 0 0 36px; }
.section-title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; text-shadow: var(--press); }
.section-lead { color: var(--muted); font-size: 18px; margin: 16px 0 0; max-width: 60ch; }

/* ---------- Karty se corner-tick hoverem ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.card { padding: 30px 26px; }
.card-idx {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted);
  position: absolute; top: 16px; right: 18px;
}
.card-icon {
  width: 50px; height: 50px; border-radius: var(--radius-sm); display: grid; place-items: center; margin-bottom: 18px;
  background: var(--surface-alt); border: 1px solid var(--border);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* corner ticks (registrační značky výkresu) */
.card::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: 0; transition: opacity .18s;
  background:
    linear-gradient(var(--accent),var(--accent)) 0 0/12px 2px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 0 0/2px 12px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 100% 0/12px 2px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 100% 0/2px 12px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 0 100%/12px 2px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 0 100%/2px 12px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 100% 100%/12px 2px no-repeat,
    linear-gradient(var(--accent),var(--accent)) 100% 100%/2px 12px no-repeat;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card { transition: transform .18s var(--ease), border-color .18s; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- Process steps ---------- */
@supports ((-webkit-text-stroke: 1px red)) { .step-num { color: transparent; -webkit-text-stroke: 1.5px var(--accent); } }

/* ---------- Panely (kalkulačka / formulář jako spec-sheet) ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.panel-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 16px; background: var(--surface-alt); border-bottom: 1px solid var(--border);
  font-size: 11px; color: var(--muted); letter-spacing: .1em;
}
.panel-bar .mono { font-size: 11px; }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.4fr .9fr; gap: 24px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span, .field > label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.field b { color: var(--accent-text); }
.field input[type="number"], .field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .crow select, .crow input[list], .field textarea {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; font-family: inherit; width: 100%;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus-visible, .field select:focus-visible, .crow select:focus-visible, .crow input[list]:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: inset 2px 0 0 var(--accent), 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.field select, .crow select { -webkit-appearance: none; -moz-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235C6470' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* Pole s našeptávačem (barva): musí být na první pohled vidět, že je tam nabídka —
   proto stejná šipka jako u výběrů. Prohlížeče u <input list> žádnou spolehlivě
   nekreslí: Chrome ji ukáže až při najetí, Safari nikdy. */
.crow input[list] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%235C6470' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
/* nativní indikátor v Chrome roztáhnout přes šipku, ať se dá kliknout na rozbalení */
.crow input[list]::-webkit-calendar-picker-indicator {
  opacity: 0; width: 34px; height: 100%; margin: 0 -12px 0 0; cursor: pointer;
}
.crow input[list]::placeholder { color: var(--muted); opacity: 1; }

/* ---------- kalkulačka = zvýrazněná zóna nástroje ----------
   Hlavní konkurenční výhoda webu — ať je při scrollu vidět na první pohled:
   jemný oranžový nádech + technická mřížka (jako hero) + čárkované ohraničení. */
.section-calc {
  background:
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 56px),
    color-mix(in srgb, var(--accent) 4%, var(--bg));
  border-top: 1px dashed var(--accent);
  border-bottom: 1px dashed var(--accent);
}
[data-theme="dark"] .section-calc {
  background:
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px 56px),
    color-mix(in srgb, var(--accent) 7%, var(--bg));
}

/* ---------- kalkulačka: spec-sheet řádky s pilulkami ---------- */
.calc-rows { padding: 20px 24px 24px; display: grid; gap: 16px; }
.crow { display: grid; gap: 9px; }
.crow-label { display: flex; align-items: baseline; gap: 9px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--muted); }
.crow-label i { font-style: normal; color: var(--accent-text); letter-spacing: .05em; }
.crow-note { font-style: normal; letter-spacing: .06em; opacity: .75; }
.copt-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.copt-2l { display: grid; justify-items: start; gap: 1px; text-align: left; padding: 8px 13px 9px; }
.copt-name { font-weight: 600; }
.copt-sub { font-family: "Inter", system-ui, sans-serif; font-size: 11px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); transition: color .2s; }
.copt.is-active .copt-sub { color: color-mix(in srgb, var(--on-accent) 72%, transparent); }
.copt-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--border-strong)); border: 1px solid rgba(0, 0, 0, .2); margin-right: 8px; vertical-align: -1px; }
/* Zarovnání na HORNÍ hranu: má-li jedno pole pod sebou vysvětlivku (barva), při
   zarovnání na spodní hranu by se samo vytáhlo nahoru a se sousedem by nelícovalo. */
.crow-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cnum-row { display: flex; gap: 10px; }
.crow-hint { font-size: 11.5px; color: var(--muted); }
.cnum { display: inline-flex; align-items: center; width: fit-content; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.cnum input { width: 92px; border: none; background: transparent; padding: 10px 4px 10px 14px; font-family: var(--mono); font-size: 15px; color: var(--text); text-align: right; }
.cnum input:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-sm); }
.cnum i { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: 0 13px 0 5px; text-transform: uppercase; letter-spacing: .06em; }
.crush { display: flex; position: relative; }
.crush input { position: absolute; opacity: 0; pointer-events: none; }
.crush-pill { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 12px; letter-spacing: .06em; padding: 10px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.crush-pill b { letter-spacing: .1em; font-weight: 600; }
.crush-pill:hover { border-color: var(--accent); color: var(--text); }
.crush input:checked + .crush-pill { background: var(--accent); border: 1px solid var(--accent); color: var(--on-accent); }
.crush input:focus-visible + .crush-pill { outline: 2px solid var(--accent); outline-offset: 2px; }

.calc-result { display: flex; flex-direction: column; }
.calc-result-body { padding: 20px 20px 16px; }
.calc-price { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; font-size: clamp(26px, 4vw, 36px); font-weight: 700; color: var(--text); margin: 0 0 18px; font-variant-numeric: tabular-nums; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.calc-cur { color: var(--accent-text); }
.calc-cursor { display: inline-block; width: 9px; height: 22px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.calc-breakdown { list-style: none; padding: 0; margin: 0 0 18px; }
.calc-breakdown li { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 5px 0; border-bottom: 1px dashed var(--border); }
.calc-breakdown li b { color: var(--text); font-weight: 600; }
.calc-note { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.perf-edge { height: 12px; background: radial-gradient(circle at 6px 0, transparent 5px, var(--surface-alt) 5px) repeat-x; background-size: 16px 12px; border-top: 1px dashed var(--border); }

/* ---------- WYGLY sticker ---------- */
.wygly-section .container { border-inline: none; }
.wygly-sticker {
  position: relative; background: var(--wygly); color: var(--wygly-ink);
  border-radius: 10px; padding: 46px 40px; transform: rotate(-0.3deg);
  box-shadow: 10px 16px 40px -18px rgba(120,50,0,.55), 0 2px 0 rgba(0,0,0,.06);
  overflow: hidden;
}
.wygly-sticker::before {
  content: ""; position: absolute; inset: 10px; border: 1.5px dashed color-mix(in srgb, var(--wygly-ink) 35%, transparent);
  border-radius: 6px; pointer-events: none;
}
.wygly-sticker::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wygly-tape {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; letter-spacing: .16em; color: var(--wygly-ink);
  background: rgba(255,255,255,.5); background: color-mix(in srgb, #fff 45%, transparent); padding: 4px 12px; border-radius: 3px;
  white-space: nowrap;
}
.wygly-inner { position: relative; display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: center; margin-top: 14px; }
.wygly-logo-img { width: 100%; height: auto; display: block; }
.wygly-section .section-title { color: var(--wygly-ink); }
.wygly-section .section-lead { color: var(--wygly-ink); color: color-mix(in srgb, var(--wygly-ink) 82%, transparent); }
.wygly-badge { display: grid; place-items: center; }
.wygly-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.btn-wygly { background: var(--wygly-ink); color: #fff; }
.btn-wygly:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); }
.btn-wygly-ghost { border-color: color-mix(in srgb, var(--wygly-ink) 40%, transparent); color: var(--wygly-ink); }
.btn-wygly-ghost:hover { background: color-mix(in srgb, var(--wygly-ink) 10%, transparent); }


/* ---------- fotopás farmy (pod videem) ---------- */
.farm-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.farm-shot { margin: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.farm-shot img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.farm-shot figcaption { font-size: 10px; letter-spacing: .1em; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--border); }
@media (max-width: 760px) {
  .farm-strip { grid-template-columns: 1fr 1fr; }
  .farm-shot:last-child { display: none; }  /* na mobilu stačí dvě z farmy */
}

/* ---------- Cesta zakázky (journey) — linka se kreslí při scrollu ---------- */
.journey-wrap { position: relative; margin-top: 12px; }
.j-line {
  position: absolute; top: 31px; left: 12.5%; right: 12.5%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 7px, transparent 7px 14px);
}
.j-line i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
:where(html.js) .j-line i { transition: transform .25s linear; }
.journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.j-step { text-align: center; }
.j-node {
  position: relative; width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface);
  border: 1.5px solid var(--border-strong); color: var(--muted);
  transition: border-color .35s var(--ease), color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
:where(html.js) .j-node { transform: scale(.9); }
.j-icon { width: 26px; height: 26px; }
.j-num {
  position: absolute; top: -7px; right: -13px; font-size: 10px; letter-spacing: .08em;
  background: var(--bg); border: 1px solid var(--border); border-radius: 3px; padding: 1px 5px; color: var(--muted);
  transition: color .35s, border-color .35s;
}
.j-step h3 { font-size: 17px; margin: 0 0 6px; }
.j-step p { font-size: 14px; color: var(--muted); margin: 0 auto; max-width: 26ch; line-height: 1.5; }
.j-step.on .j-node { border-color: var(--accent); color: var(--accent-text); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); transform: scale(1); }
.j-step.on .j-num { color: var(--accent-text); border-color: var(--accent); }
.j-sample {
  display: flex; gap: 14px; align-items: flex-start; max-width: 680px; margin: 42px auto 0;
  padding: 16px 20px; border: 1px dashed var(--accent); border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface)); font-size: 15px; line-height: 1.55;
}
.j-gift { flex: none; width: 26px; height: 26px; color: var(--accent-text); margin-top: 2px; }
@media (max-width: 760px) {
  .j-line { display: none; }
  .journey { grid-template-columns: 1fr; gap: 20px; }
  .j-step { display: grid; grid-template-columns: 62px 1fr; column-gap: 16px; row-gap: 2px; text-align: left; align-items: start; }
  .j-node { grid-row: 1 / span 2; margin: 0; }
  .j-step p { margin: 0; max-width: none; }
}


/* ---------- KOMPONENTA: callout (zvýrazněný pruh s ikonou) ----------
   Pro důležité sdělení pod obsahem sekce (certifikace u služeb ap.).
   Stejná rodina jako .j-sample; viz komponenty.html. */
.callout {
  display: flex; gap: 18px; align-items: flex-start; margin: 26px 0 0;
  padding: 22px 26px; border: 1px dashed var(--accent); border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}
.callout-ic { flex: none; width: 34px; height: 34px; color: var(--accent-text); margin-top: 2px; }
.callout-t { font-size: 18px; margin: 0 0 5px; }
.callout p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.55; max-width: 78ch; }
@media (max-width: 620px) { .callout { flex-direction: column; gap: 12px; padding: 20px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 4px; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.contact-list a, .contact-list span:not(.contact-k) { color: var(--text); font-weight: 500; }
.contact-list a:hover { color: var(--accent-text); }

.contact-form-body { padding: 26px; display: grid; gap: 18px; }
.contact-form label { font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
/* instrukce po předvyplnění z kalkulačky — ať je jasné, že se ještě odesílá */
.form-notice { display: flex; gap: 10px; align-items: baseline; margin: 0; padding: 12px 14px;
  border: 1px dashed var(--accent); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  font-size: 13.5px; line-height: 1.5; color: var(--text); }
.form-notice b { color: var(--accent-text); }
/* kotvy přistávají POD lepivou hlavičkou (66 px) — jinak ji sekce podjede */
main section[id], #contactForm { scroll-margin-top: 80px; }

.form-status { font-size: 14px; margin: 0; min-height: 20px; font-family: var(--mono); }
.form-status.ok { color: #1f7a45; }
.form-status.err { color: #c02626; }
[data-theme="dark"] .form-status.ok { color: #34d399; }
[data-theme="dark"] .form-status.err { color: #f87171; }
.form-fineprint { font-size: 12px; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface-alt); padding: 56px 0 26px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer-brand .brand-name { font-size: 22px; }
.footer-logo { height: 34px; width: auto; max-width: none; display: block; }
.footer-brand p { color: var(--muted); margin: 12px 0 0; max-width: 30ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.footer-cols h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.footer-cols p { margin: 6px 0; font-size: 14.5px; }
.footer-cols a:hover { color: var(--accent-text); }
/* nápověda pod tlačítkem tisku kalkulace — tlačítko otevírá tiskový dialog,
   ne přímé stažení; bez vysvětlení to mate (zpětná vazba zákazníka) */
.print-hint { display: block; text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* geografická věta nad spodním řádkem patičky (SEO: plné znění ČR/Evropa) */
.footer-geo { text-align: center; font-size: 12.5px; color: var(--muted); margin: 0 auto 14px; }

.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; flex-wrap: wrap; }

/* ---------- WYGLY popup (centrovaný modal, viz komponenty.html) ----------
   Délka animace linky = POP_MS v js/main.js (10 s) — měnit spolu! */
.wygly-pop-overlay {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center; padding: 20px;
  background: rgba(10, 16, 24, .5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .35s var(--ease);
}
[data-theme="dark"] .wygly-pop-overlay { background: rgba(0, 0, 0, .62); }
.wygly-pop-overlay.show { opacity: 1; }
.wygly-pop {
  position: relative; width: min(430px, 100%); text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--wygly);
  border-radius: 12px; box-shadow: var(--shadow); padding: 34px 30px 36px;
  overflow: hidden;
  transform: translateY(16px) scale(.96); transition: transform .35s var(--ease);
}
.wygly-pop-overlay.show .wygly-pop { transform: none; }
.wygly-pop-logo { width: min(220px, 68%); height: auto; display: block; margin: 2px auto 18px; }
.wygly-pop-title { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; font-weight: 700; font-size: 21px; margin: 0 0 8px; letter-spacing: -.02em; }
.wygly-pop-text { font-size: 14.5px; color: var(--muted); margin: 0 0 20px; line-height: 1.5; }
.wygly-pop-close {
  position: absolute; top: 10px; right: 12px; background: none; border: none; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted); padding: 6px;
}
.wygly-pop-close:hover { color: var(--text); }
.wygly-pop-timer { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: color-mix(in srgb, var(--wygly) 16%, transparent); }
.wygly-pop-timer i { display: block; height: 100%; background: var(--wygly); transform-origin: left center; }
.wygly-pop-overlay.show .wygly-pop-timer i { animation: wyglyPopTimer 10s linear forwards; }
@keyframes wyglyPopTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .wygly-pop-timer { display: none; } }


/* ---------- Nový obsah v0.4 (hero micro, obory, finder, proč, sklad, reference) ---------- */
.hero-micro { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 14px 0 0; letter-spacing: .02em; }

/* Obory */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ind { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.ind:hover { border-color: var(--accent); transform: translateY(-2px); }
.ind-idx { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.ind h3 { font-size: 16px; margin: 8px 0 6px; }
.ind p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* Material finder */
.finder-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.finder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.mat:hover { border-color: var(--accent); transform: translateY(-2px); }
.mat[hidden] { display: none; }
.mat-name { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 700; font-size: 18px; }
.mat-t { font-family: var(--mono); font-size: 11px; color: var(--accent-text); font-weight: 500; }
.mat-desc { display: block; color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.finder-empty { text-align: center; color: var(--muted); font-family: var(--mono); font-size: 13px; margin: 24px 0 0; }
.finder-more { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 20px; letter-spacing: .04em; }

/* Proč 3DCenter */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; transition: border-color .2s var(--ease); }
.why-card:hover { border-color: var(--accent); }
.why-mk { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-alt); color: var(--accent-text); font-weight: 700; margin-bottom: 14px; }
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* Digitální sklad */
.warehouse-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; }
.warehouse-copy .btn { margin-top: 24px; }
.warehouse-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.warehouse-points li { display: flex; gap: 14px; align-items: baseline; font-size: 15px; padding: 15px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.wh-n { font-family: var(--mono); font-size: 12px; color: var(--accent-text); flex: none; }

/* Reference */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); overflow: hidden; color: inherit; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-left-color: var(--accent-text); }
.case:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.case-img { display: block; aspect-ratio: 16 / 10; background: var(--surface-alt); overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.case:hover .case-img img { transform: scale(1.04); }
.case-body { padding: 20px 22px; }
.case-tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); display: block; margin-bottom: 8px; }
.case p { font-size: 14.5px; color: var(--text); margin: 0; line-height: 1.55; }
/* cenový indikátor: méně € = levnější (na rozdíl od hodnotících kostiček) */
.price-lvl { display: inline-flex; align-items: center; gap: 1px; font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: 1px; }
.price-lvl i { font-style: normal; color: var(--border-strong); }
.price-lvl i.on { color: var(--accent-text); }
.cases-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }
/* Dokud nejsou fotky konkrétních zakázek — ať prázdné místo nepůsobí jako chyba.
   Až dlaždice přibydou (blog/NAVOD.md), tenhle odstavec z index.html zmizí. */
.cases-empty {
  max-width: 620px; margin: 0 auto; padding: 28px 24px; text-align: center;
  font-size: 15.5px; line-height: 1.7; color: var(--text);
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 3%, transparent);
}

/* Kalkulačka — poznámka o sérii */
.calc-series-note { text-align: center; font-size: 14.5px; color: var(--muted); margin: 24px auto 0; max-width: 60ch; }

/* ---------- v0.8: tabulka cen podle množství ---------- */
/* pravý sloupec: cenový panel (sticky) + kompaktní tabulka množství pod ním */
.calc-side { display: flex; flex-direction: column; gap: 16px; min-width: 0;
  position: sticky; top: 84px; /* cena + tabulka drží při scrollu POHROMADĚ */ }
.calc-side .qty-wrap { margin: 0; padding: 14px 18px 16px; }
.calc-side .qty-title { font-family: var(--mono); font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 10px; }
.calc-side .qty-scroll { border: 1px solid var(--border); }
.calc-side .qty-table th { padding: 7px 10px; font-size: 9.5px; }
.calc-side .qty-table td { padding: 7px 10px; font-size: 12.5px; }
.calc-side .qty-note { font-size: 10.5px; margin: 8px 2px 0; }
.qty-title { font-size: 19px; margin-bottom: 14px; }
.qty-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.qty-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.qty-table th { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--surface-alt); border-bottom: 1px solid var(--border); padding: 10px 16px; text-align: right; }
.qty-table th:first-child, .qty-table td:first-child { text-align: left; }
.qty-table td { padding: 11px 16px; font-size: 14.5px; border-bottom: 1px solid var(--border); text-align: right; }
.qty-table tr:last-child td { border-bottom: none; }
.qty-table tr.is-current td { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-weight: 600; }
.qty-table .qty-save { color: var(--accent-text); font-weight: 600; }
.qty-note { font-size: 12px; color: var(--muted); margin: 10px 2px 0; }

.btn-print { margin-top: 10px; }

/* pole přílohy + auto-attach poznámka */
.field input[type="file"] { background: var(--bg); border: 1px dashed var(--border-strong); color: var(--muted); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; width: 100%; }
.attach-note { font-family: var(--mono); font-size: 12px; color: #1f7a45; margin: 6px 0 0; }
[data-theme="dark"] .attach-note { color: #34d399; }

/* ---------- v0.9: měna, dodání, FAQ, mapa ---------- */
.cur-switch { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.cur-btn { font-family: var(--mono); font-size: 11px; padding: 4px 10px; background: transparent; color: var(--muted); border: none; cursor: pointer; transition: background .2s, color .2s; }
.cur-btn:hover { color: var(--text); }
.cur-btn.is-active { background: var(--accent); color: var(--on-accent); }

.calc-lead { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: -8px 0 16px; letter-spacing: .02em; }
.calc-lead b { color: var(--text); font-weight: 600; }
/* doprava zdarma — nenápadná dokud ne, zvýrazněná jakmile na ni odhad dosáhne */
.calc-ship { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: -10px 0 16px; letter-spacing: .02em; }
.calc-ship.is-free { color: var(--accent-text); font-weight: 600; }

.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 16.5px; list-style: none;
  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-family: var(--mono); font-size: 20px; color: var(--accent-text); flex: none; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-text); }
.faq-item p { margin: 0; padding: 0 22px 18px; color: var(--muted); font-size: 15px; line-height: 1.6; }

.map-card { position: relative; grid-column: 1 / -1; margin-top: 34px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.map-embed { aspect-ratio: 16 / 8; background: var(--surface-alt); display: grid; place-items: center; }
.map-load { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 22px; }
.map-load small { font-size: 11px; color: var(--muted); font-weight: 400; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; padding: 16px 20px; border-top: 1px solid var(--border); }
.map-k { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-text); }
.map-info strong { font-size: 15px; font-weight: 600; }
.map-links { display: flex; gap: 10px; margin-left: auto; }

/* ---------- v0.8: tiskový list kalkulace ---------- */
.print-sheet { display: none; }
@media print {
  body > *:not(.print-sheet) { display: none !important; }
  .print-sheet { display: block !important; color: #000; background: #fff; font: 12pt/1.55 "Inter", system-ui, sans-serif; padding: 10mm 4mm; }
  .pr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 3px solid #FF7800; padding-bottom: 8px; margin-bottom: 18px; flex-wrap: wrap; }
  .pr-brand { font-size: 20pt; font-weight: 700; }
  .pr-doc { font-size: 12pt; }
  .pr-date { font-size: 10pt; color: #444; }
  .pr-params { border-collapse: collapse; width: 100%; margin-bottom: 16px; }
  .pr-params th, .pr-params td { border: 1px solid #bbb; padding: 6px 10px; font-size: 10.5pt; text-align: left; }
  .pr-params th { background: #f2f2f2; font-weight: 600; width: 40%; }
  .pr-model { font-size: 10.5pt; margin: 0 0 12px; }
  .pr-price { font-size: 16pt; font-weight: 700; margin: 8px 0 4px; }
  .pr-lead { font-size: 11pt; margin: 0 0 12px; }
  .pr-note { font-size: 9.5pt; color: #444; margin: 0 0 18px; }
  .pr-contact { font-size: 9.5pt; color: #222; border-top: 1px solid #bbb; padding-top: 8px; }
}


/* hlavička: 7 položek menu — postupné zhušťování místo lámání na 2 řádky */
@media (max-width: 1250px) {
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 14px; }
  .header-actions { gap: 10px; }
  .brand-logo { height: 27px; } /* proporčně menší, nikdy stlačené */
}
@media (max-width: 1090px) {
  .header-actions .btn-primary { display: none; }
}
@media (max-width: 920px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 28px; gap: 18px; z-index: 101;
  }
}

@media (max-width: 960px) {
  .ind-grid, .finder-grid, .why-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .warehouse-inner { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 620px) {
  .ind-grid, .finder-grid, .why-grid, .cases-grid { grid-template-columns: 1fr; }
}

/* ---------- v0.5: Průvodce materiálem (wizard) ---------- */
.wizard { margin-top: 44px; }
.wizard-body { padding: 26px; }
.wizard-title { font-size: 22px; margin-bottom: 22px; }
.wizard-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.wizard-q { margin-bottom: 20px; }
.wizard-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.wizard-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.wizard-result { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.wizard-result-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.wizard-mat { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; font-weight: 700; font-size: 30px; letter-spacing: -.02em; margin: 0 0 6px; color: var(--accent-text); }
.wizard-desc { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.wizard-result .btn { width: 100%; margin-bottom: 12px; }
.wizard-note { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- v0.5: Porovnání technologií ---------- */
.tech-toggle { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 26px; }
.tech-q { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-right: 6px; }

.tech-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tech-head, .tech-row { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr .9fr; gap: 12px; align-items: center; padding: 14px 20px; }
.tech-head { background: var(--surface-alt); border-bottom: 1px solid var(--border); }
.tech-head span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.tech-row { border-bottom: 1px solid var(--border); transition: background .25s, opacity .25s; position: relative; }
.tech-row:last-child { border-bottom: none; }
.tech-name { display: flex; flex-direction: column; gap: 2px; position: relative; }
.tech-name b { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; font-size: 17px; letter-spacing: -.01em; }
.tech-name span { font-size: 12.5px; color: var(--muted); }
.tech-badge { display: none; font-style: normal; font-size: 9.5px; letter-spacing: .12em; color: var(--accent-text); margin-top: 4px; }
.tech-row.is-reco { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.tech-row.is-reco .tech-badge { display: block; }
.tech-row.is-dim { opacity: .45; }
.rate { display: inline-flex; gap: 3px; }
.rate i { width: 12px; height: 12px; border-radius: 2px; background: var(--surface-alt); border: 1px solid var(--border); }
.rate i.on { background: var(--accent); border-color: var(--accent); }
.tech-tol { font-size: 12px; color: var(--text); }
.tech-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 18px; letter-spacing: .04em; }

/* ---------- v0.7: video (facade — YouTube až po kliknutí) ---------- */
.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: #000;
}
.video-frame img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .3s, transform .6s var(--ease); }
.video-frame:hover img { opacity: 1; transform: scale(1.015); }
.video-play { position: absolute; inset: 0; display: grid; place-items: center; background: none; border: none; cursor: pointer; }
.video-play-ic {
  width: 86px; height: 86px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; box-shadow: 0 18px 44px -12px rgba(0,0,0,.55);
  transition: transform .25s var(--ease);
}
.video-play-ic::after {
  content: ""; border-style: solid; border-width: 15px 0 15px 25px;
  border-color: transparent transparent transparent var(--on-accent); margin-left: 6px;
}
.video-play:hover .video-play-ic, .video-play:focus-visible .video-play-ic { transform: scale(1.09); }
.video-tag {
  position: absolute; top: 14px; left: 16px; font-size: 11px; letter-spacing: .12em;
  color: #fff; background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 4px;
}
.video-tag::before { content: "●"; color: #ff4d3d; margin-right: 7px; animation: recBlink 1.6s steps(1) infinite; }
@keyframes recBlink { 50% { opacity: .25; } }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame.is-playing { cursor: default; }
.video-note { text-align: center; font-size: 11px; color: var(--muted); margin-top: 12px; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .video-tag::before { animation: none; } }

/* ---------- v0.5: 3D náhled STL ---------- */
.viewer { margin: 4px 26px 26px; }
.viewer-drop {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  padding: 22px 18px; color: var(--muted); font-size: 14px; cursor: pointer; text-align: center;
  transition: border-color .2s, background .2s, color .2s;
}
.viewer-drop:hover, .viewer-drop.is-over { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.viewer-ic { font-size: 18px; color: var(--accent-text); }
.viewer-stage { text-align: center; margin-top: 14px; }
#viewerCanvas { width: 100%; height: auto; max-height: 380px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); cursor: grab; touch-action: none; }
#viewerCanvas:active { cursor: grabbing; }
.viewer-readout { font-size: 12px; color: var(--muted); margin: 10px 0 4px; letter-spacing: .04em; }
.viewer-applied { font-size: 12.5px; color: #1f7a45; margin: 0 0 12px; }
[data-theme="dark"] .viewer-applied { color: #34d399; }
.viewer-err { font-size: 13px; color: #c02626; margin: 10px 0 0; }
[data-theme="dark"] .viewer-err { color: #f87171; }

@media (max-width: 960px) {
  .wizard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tech-head { display: none; }
  .tech-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px; }
  .rate, .price-lvl { align-items: center; }
  .rate::before, .price-lvl::before { content: attr(data-label); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); width: 84px; }
  .tech-tol::before { content: "Tolerance "; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .viewer { margin: 4px 18px 22px; }
}

/* ---------- Reveal + Print-in stagger ---------- */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
:where(html.js) .reveal { opacity: 0; transform: translateY(24px); }
.reveal.in { opacity: 1; transform: none; }

:where(html.js) .stagger { opacity: 0; clip-path: inset(100% 0 0 0); }

/* Pojistka z theme.js: main.js se do 3 s neozval (nenačetl se / spadl) → ukázat
   všechno. Bez tohohle by prohlížeč zůstal na prázdné stránce. */
html.no-reveal .reveal, html.no-reveal .stagger {
  opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important;
}
.stagger.in { animation: printIn .55s var(--ease) forwards; animation-delay: calc(var(--s) * .07s); }
@keyframes printIn { from { opacity: 0; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
/* běžící tisková linka po náběžné hraně */
.stagger.in::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  animation: scanline .55s var(--ease) forwards; animation-delay: calc(var(--s) * .07s);
}
@keyframes scanline { 0% { bottom: 0; opacity: 1; } 88% { opacity: 1; } 100% { bottom: 100%; opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
  .stagger.in::after, .calc-cursor { animation: none !important; }
  html.theme-anim * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .calc { grid-template-columns: 1fr; }
  .calc-side { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .wygly-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .wygly-actions { justify-content: center; }
}

@media (max-width: 760px) {
  main .container { border-inline: none; }
  .wygly-sticker { transform: none; padding: 40px 24px; }
  .cards-3, .stats, .field-row { grid-template-columns: 1fr; }
  .crow-inline { grid-template-columns: 1fr; }
  .stats { gap: 28px; }
  .stats::before, .stats::after { display: none; }
  .stat::before { display: none; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .section { padding: 44px 0; }
  .hero { padding: 44px 0 36px; }
}

@media (max-width: 420px) {
  .seg-btn { padding: 6px 7px; font-size: 10px; }
  .header-actions { gap: 8px; }
  .container { padding: 0 20px; }
  }

/* ---------- v0.10: odkaz na blog u referencí ---------- */
.cases-more { text-align: center; margin: 28px 0 0; }

/* ---------- v0.11.1: plné logo v hlavičce ---------- */
