/* RaZaProduct – styly v2
   Světlý, jasný vzhled. Roboto 300/400/500, Roboto Mono jen pro data v ukázkové tabulce.
   Menu a tlačítka bez zaoblení. Barevné přechody a paralax přes pevnou vrstvu .bgfx. */

:root {
  --bg: #ffffff;
  --soft: #f5f8fc;
  --ink: #1b2433;
  --muted: #5f6b7a;
  --line: #e4e9f0;

  /* světlá paleta: akvamarín, levandulová modř, broskev, mango */
  --aqua: #2dd4bf;
  --peri: #8b9cff;
  --peach: #ff9a76;
  --mango: #ffcf5c;
  --aqua-t: #e6faf6;
  --peri-t: #eef0ff;
  --peach-t: #fff1eb;
  --mango-t: #fff8e3;

  /* textové a tlačítkové barvy (dostatečný kontrast) */
  --green: #0b7a74;
  --blue: #4a4fd6;
  --violet: #8a4fd0;
  --hl: #fff1b8;

  --grad: linear-gradient(100deg, #0b7a74 0%, #4a4fd6 60%, #8a4fd0 100%);
  --grad-soft: linear-gradient(100deg, #2dd4bf 0%, #8b9cff 50%, #ff9a76 100%);

  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --hh: 76px;
  --sp: 112px;
  --wrap: 1160px;
  --gutter: 24px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3 { font-weight: 300; margin: 0; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 500; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip:focus { top: 12px; }

/* ---------- Pevná barevná vrstva (paralax) ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #f3f1ff; pointer-events: none; }
.bgfx .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75; will-change: transform; }
.bgfx .b1 { width: 62vw; height: 62vw; left: -14vw; top: -18vw; background: #8ef0e0; }
.bgfx .b2 { width: 58vw; height: 58vw; right: -16vw; top: 8vh; background: #b8c1ff; }
.bgfx .b3 { width: 50vw; height: 50vw; left: 22vw; top: 58vh; background: #ffc6ae; }
.bgfx .gridlines {
  position: absolute; inset: -20% 0; will-change: transform;
  background-image:
    linear-gradient(to right, rgba(20,33,48,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,33,48,.06) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* ---------- Tlačítka (hranatá) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px; border: 0; border-radius: 0;
  background: var(--grad); background-size: 140% 100%; background-position: 0 0;
  color: #fff; font: 400 16px/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-position .35s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background-position: 100% 0; color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(26,98,214,.7); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--blue); box-shadow: 0 10px 28px -12px rgba(0,0,0,.45); }

/* ---------- Horní lišta a hlavička (styl Zafido, bez zaoblení) ---------- */
.topbar { background: var(--ink); color: #dfe7f1; font-size: 13.5px; position: relative; z-index: 51; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad-soft); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 20px; }
.topbar-contact { display: flex; gap: 28px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-note { margin: 0; color: #b8c6d6; }

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--hh);
  background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px -22px rgba(20,33,48,.5); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 26px; height: 26px; background: var(--grad); position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: #fff; }
.brand-mark::before { left: 12px; top: 0; width: 2px; height: 26px; }
.brand-mark::after { top: 12px; left: 0; height: 2px; width: 26px; }
.brand-name { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; margin: 0; }
.brand-name span { font-weight: 300; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: stretch; height: 100%; margin: 0 auto; }
.nav a:not(.btn) {
  white-space: nowrap; display: flex; align-items: center; padding: 0 18px; position: relative;
  color: var(--ink); text-decoration: none; font-size: 15.5px; font-weight: 400;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 3px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--blue); }
.nav .nav-cta { display: none; }
.header-cta { flex: none; min-height: 46px; padding: 0 24px; }

.nav-toggle {
  display: none; width: 46px; height: 46px; flex: none; padding: 0; cursor: pointer; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: 0;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px; text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.7) 55%, #fff 100%);
}
.hero-inner { display: grid; justify-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-inner > * { min-width: 0; max-width: 100%; }
.hero h1 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.035em; line-height: 1.05; }
.lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 40em; margin: 24px auto 0; }
.hero .lead { color: #3d4c5c; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.sheet {
  margin: 64px 0 0; width: 100%; max-width: 940px; text-align: left;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(26,98,214,.45), 0 12px 30px -20px rgba(20,33,48,.25);
}
.sheet-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--soft); }
.sheet-dot { width: 9px; height: 9px; border-radius: 50%; background: #cfd8e3; }
.sheet-dot:nth-child(1) { background: #ff6b6b; }
.sheet-dot:nth-child(2) { background: #ffc94d; }
.sheet-dot:nth-child(3) { background: #3ccf8e; }
.sheet-file { margin-left: 10px; font: 400 13px/1 var(--mono); color: var(--muted); }
.sheet-count { margin-left: auto; font-size: 13px; color: var(--muted); }
.sheet-count b { font-weight: 500; color: var(--green); }
.sheet-grid { overflow-x: auto; }
.sheet .row {
  display: grid; grid-template-columns: 96px minmax(180px, 1.8fr) minmax(100px, .8fr) minmax(90px, .7fr) minmax(170px, 1.1fr);
  border-bottom: 1px solid var(--line); min-width: 640px;
}
.sheet .row:last-child { border-bottom: 0; }
.sheet .row > span { padding: 14px 14px; font-size: 14.5px; line-height: 1.35; border-right: 1px solid var(--line); transition: background-color .6s ease, color .3s ease; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.sheet .row > span:last-child { border-right: 0; }
.sheet .head > span { font-size: 12.5px; font-weight: 400; color: var(--muted); padding-top: 10px; padding-bottom: 10px; }
.sheet .mono { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.sheet [data-raw] { font-family: var(--mono); font-size: 12.5px; color: #8796a6; }
.sheet [data-raw].is-missing { color: #d0453a; }
.sheet [data-raw].is-done { font-family: var(--font); font-size: 14.5px; color: var(--ink); }
.sheet [data-raw].is-ok { color: var(--green); }
.sheet [data-raw].is-flash { background: var(--hl); }
.sheet .row.is-active > span:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.chip { display: inline-block; padding: 3px 8px; font-size: 12px; font-weight: 400; color: #fff; line-height: 1.3; }
.chip-eshop { background: var(--green); }
.chip-allegro { background: #f25c05; }
.chip-kaufland { background: #d6202f; }
.sheet-status { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.sheet.is-running .pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- Fakta ---------- */
.facts { background: #fff; padding: 8px 0 72px; }
.facts-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-inner > div { padding: 32px 12px; display: grid; gap: 4px; }
.facts-inner > div + div { border-left: 1px solid var(--line); }
.facts b { font-size: clamp(26px, 3vw, 36px); font-weight: 300; letter-spacing: -0.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { font-size: 14.5px; color: var(--muted); }

/* ---------- Sekce ---------- */
.section { padding: var(--sp) 0; background: var(--bg); scroll-margin-top: calc(var(--hh) + 18px - var(--sp)); }
.section-soft { background: var(--soft); }
.sec-head { text-align: center; display: grid; justify-items: center; gap: 16px; margin: 0 auto 56px; max-width: 760px; }
.section-title { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.025em; }
.section-lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 36em; margin: 0; }
h3 { font-size: 20px; font-weight: 400; margin-bottom: 8px; }

/* Služby */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.services article { background: #fff; padding: 40px 32px; text-align: center; display: grid; justify-items: center; align-content: start; position: relative; transition: background-color .25s ease; }
.services article::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transition: transform .3s ease; }
.services article:hover { background: #fbfdff; }
.services article:hover::before { transform: scaleX(1); }
.ico { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 20px; background: linear-gradient(135deg, rgba(18,184,134,.14), rgba(61,139,255,.16) 60%, rgba(138,108,255,.16)); }
.ico svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.services p { color: var(--muted); font-size: 16px; max-width: 28ch; margin: 0; }

/* Okna s paralaxem */
.window { min-height: clamp(280px, 52vh, 480px); display: grid; align-items: center; text-align: center; background: linear-gradient(100deg, rgba(12,138,100,.62) 0%, rgba(26,98,214,.48) 55%, rgba(110,79,240,.58) 100%); }
.window-alt { background: linear-gradient(100deg, rgba(110,79,240,.58) 0%, rgba(26,98,214,.5) 50%, rgba(12,138,100,.6) 100%); }
.window-text { margin: 0 auto; font-size: clamp(28px, 4.4vw, 54px); font-weight: 300; line-height: 1.15; letter-spacing: -0.025em; color: #fff; text-shadow: 0 2px 30px rgba(20,33,48,.35); text-wrap: balance; }

/* Automatizace */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; margin-bottom: 48px; }
.tools > div { display: grid; gap: 4px; padding: 24px 12px; border-top: 3px solid transparent; border-image: var(--grad) 1; }
.tools b { font-weight: 400; font-size: 18px; }
.tools span { color: var(--muted); font-size: 15px; }
.compare { max-width: 780px; margin: 0 auto; border: 1px solid var(--line); background: #fff; }
.compare-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; text-align: center; border-bottom: 1px solid var(--line); }
.compare-row:last-child { border-bottom: 0; }
.compare-row > span { padding: 18px 12px; font-size: 16px; }
.compare-row > span:first-child { text-align: left; padding-left: 24px; }
.compare-row > span:nth-child(2) { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(208,69,58,.55); }
.compare-row > span:nth-child(3) { color: var(--green); font-weight: 400; background: rgba(18,184,134,.06); }
.compare-head > span { font-size: 14px; color: var(--muted); text-decoration: none !important; }
.compare-head > span:nth-child(3) { background: var(--grad); color: #fff !important; }
.note-small { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 16px; }

/* Postup – animovaná kolečka (převzato z RaZaSource) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; }
.steps li { padding: 0 16px; display: grid; justify-items: center; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: calc(50% + 46px); width: calc(100% - 92px); height: 1px; background: linear-gradient(90deg, rgba(26,98,214,.5), rgba(26,98,214,.1)); }
.steps p { color: var(--muted); font-size: 16px; max-width: 24ch; margin: 0; }
.pn { width: 64px; height: 64px; border-radius: 50%; position: relative; overflow: hidden; display: grid; place-items: center; margin-bottom: 20px; background: #fff; border: 1px solid var(--line); animation: pnGlow 8s linear var(--d,0s) infinite backwards; }
.pn i { position: absolute; top: 0; left: -100%; width: 300%; height: 100%; transform: translateX(-38%); background: linear-gradient(90deg, transparent 0%, transparent 38%, #12b886 45%, #3d8bff 50%, #8a6cff 55%, transparent 62%, transparent 100%); animation: pnFill 8s linear var(--d,0s) infinite backwards; }
.pn b { position: relative; z-index: 1; font-size: 20px; font-weight: 400; color: var(--muted); animation: pnDigit 8s linear var(--d,0s) infinite backwards; }
@keyframes pnFill { 0% { transform: translateX(-30%); } 17.5% { transform: translateX(0); } 35%, 100% { transform: translateX(30%); } }
@keyframes pnDigit { 0%, 6% { color: var(--muted); } 13%, 22% { color: #fff; } 30%, 100% { color: var(--muted); } }
@keyframes pnGlow { 0%, 4% { box-shadow: 0 0 0 0 transparent; } 17.5% { box-shadow: 0 8px 22px rgba(26,98,214,.35), 0 0 0 5px rgba(61,139,255,.12); } 33%, 100% { box-shadow: 0 0 0 0 transparent; } }

/* GPSR pás */
.gpsr { padding: 88px 0; background: var(--grad); color: #fff; text-align: center; position: relative; overflow: hidden; scroll-margin-top: calc(var(--hh) + 18px - 88px); }
.gpsr::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 48px 48px; }
.gpsr-inner { position: relative; display: grid; justify-items: center; gap: 20px; }
.gpsr h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.02em; }
.gpsr p { max-width: 42em; color: rgba(255,255,255,.9); margin: 0; }
.gpsr-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; margin-top: 8px; }
.gpsr .price-main { color: #fff; }
.gpsr .price-vat { color: rgba(255,255,255,.75); }

/* Ceník */
.price-main { font-size: 26px; font-weight: 300; letter-spacing: -0.01em; color: var(--ink); }
.price-vat { font-size: 13px; color: var(--muted); margin-left: 6px; }
.price-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.price-group { background: #fff; border: 1px solid var(--line); padding: 36px 32px 28px; position: relative; }
.price-group.featured { border-color: transparent; box-shadow: 0 30px 60px -36px rgba(26,98,214,.55); }
.price-group.featured::before { content: ""; position: absolute; inset: -1px; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.pg-head { text-align: center; margin-bottom: 20px; }
.pg-head h3 { font-size: 23px; font-weight: 300; margin-bottom: 4px; }
.pg-head span { font-size: 14px; color: var(--muted); }
.price-list { margin: 0; }
.price-list > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.price-list dt { font-weight: 400; font-size: 16px; }
.price-list dt small { display: block; font-weight: 300; font-size: 14px; color: var(--muted); margin-top: 2px; }
.price-list dd { margin: 0; text-align: right; white-space: nowrap; }
.price-list .price-main { display: block; font-size: 20px; }
.price-list .price-vat { display: block; margin: 2px 0 0; font-size: 12.5px; }
.featured .price-list .price-main { color: var(--blue); }
.pg-note { text-align: center; font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.fineprint { text-align: center; margin: 32px auto 0; font-size: 14.5px; color: var(--muted); max-width: 50em; }

/* O mně */
.about { display: grid; justify-items: center; text-align: center; max-width: 820px; }
.about-photo { width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 28px; background: var(--grad); padding: 3px; }
.about-photo span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 48px; font-weight: 300; color: var(--blue); }
.about-role { color: var(--blue); font-weight: 400; margin: 10px 0 24px; }
.about-text p:not(.about-role) { color: var(--muted); max-width: 40em; margin-left: auto; margin-right: auto; }
.skills { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.skills li { padding: 8px 16px; font-size: 14.5px; border: 1px solid var(--line); background: #fff; }
.skills li:first-child { background: var(--grad); color: #fff; border-color: transparent; }

/* FAQ */
.faq-wrap { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); background: transparent; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-size: 18px; font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 16px; font-size: 26px; font-weight: 300; color: var(--blue); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 48px 22px 0; max-width: 44em; }

/* Kontakt (podle RaZaSource / RaZaWeb) */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 56px); align-items: start; max-width: 1040px; margin: 0 auto; }
.c-info { display: grid; gap: 24px; }
.c-pair { display: grid; grid-template-columns: 1fr; gap: 18px; }
.c-row { display: grid; gap: 4px; padding: 20px 22px; background: var(--soft); border-left: 3px solid; border-image: var(--grad) 1; }
.c-label { font-size: 13px; color: var(--muted); }
.c-row a { font-size: 19px; color: var(--ink); text-decoration: none; font-weight: 400; overflow-wrap: anywhere; width: fit-content; }
.c-row a:hover { color: var(--blue); }
.c-firm { display: grid; gap: 4px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.c-firm b { font-size: 15.5px; margin-bottom: 4px; }
.c-firm b a { color: var(--ink); text-decoration-color: var(--blue); }

#poptavka { display: grid; gap: 16px; background: #fff; border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 60px -44px rgba(20,33,48,.45); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#poptavka label { display: grid; gap: 7px; font-size: 13.5px; color: var(--muted); }
#poptavka input, #poptavka select, #poptavka textarea {
  font: 300 15.5px/1.4 var(--font); color: var(--ink); width: 100%;
  background: var(--soft); border: 1px solid transparent; border-radius: 0; padding: 12px 14px; min-height: 48px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
#poptavka textarea { min-height: 110px; resize: vertical; }
#poptavka select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
#poptavka input:focus, #poptavka select:focus, #poptavka textarea:focus { outline: none; background-color: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,98,214,.14); }
#poptavka .is-invalid { border-color: #d0453a; background-color: #fff6f5; }
.f-err { color: #d0453a; font-size: 14px; margin: 0; }
.f-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.f-hint { font-size: 13px; color: var(--muted); }

/* Patička */
.site-footer { background: #fff; color: var(--muted); font-size: 15px; }
.footer-cta { background: var(--grad); color: #fff; text-align: center; padding: 88px 0 80px; position: relative; overflow: hidden; }
.footer-cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 48px 48px; }
.footer-cta .wrap { position: relative; display: grid; justify-items: center; gap: 20px; }
.footer-big { margin: 0; font-size: clamp(52px, 11vw, 150px); font-weight: 300; line-height: .95; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.8); }
.footer-big span { color: #fff; -webkit-text-stroke: 0; }
.footer-claim { margin: 0; font-size: clamp(18px, 2vw, 22px); color: rgba(255,255,255,.92); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; text-align: center; padding-top: 56px; padding-bottom: 40px; }
.footer-cols > div { display: grid; gap: 8px; justify-items: center; align-content: start; }
.fc-head { margin: 0 0 6px; color: var(--ink); font-weight: 400; font-size: 16px; }
.footer-cols a { color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13.5px; }
.footer-bottom a { color: var(--muted); }

/* ---------- Responzivita ---------- */
@media (max-width: 1060px) {
  .nav a:not(.btn) { padding: 0 12px; }
  .nav a:not(.btn)::after { left: 12px; right: 12px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-groups { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; }
  .contact { grid-template-columns: 1fr; max-width: 680px; }
  .c-pair { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .header-cta { margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; height: auto; margin: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 20px;
    box-shadow: 0 30px 40px -30px rgba(20,33,48,.45);
    opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:not(.btn)::after { left: 0; right: auto; width: 40px; }
}

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps li:nth-child(2)::after { display: none; }
  .facts-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-inner > div:nth-child(3) { border-left: 0; }
  .facts-inner > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 720px) {
  :root { --sp: 80px; }
  .topbar-note { display: none; }
  .topbar-inner { justify-content: center; }
  .footer-cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 520px) {
  :root { --gutter: 16px; --sp: 64px; --hh: 68px; }
  body { font-size: 16px; }
  .topbar { font-size: 13px; }
  .topbar-contact { gap: 18px; }
  .header-cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .nav .nav-cta { display: flex; margin-top: 20px; }
  .brand-name { font-size: 20px; }
  .hero { padding: 56px 0 48px; }
  .hero-actions .btn { width: 100%; }
  .sheet { margin-top: 44px; }
  .sheet .row { grid-template-columns: 76px minmax(110px, 1.5fr) minmax(70px, .7fr) minmax(96px, 1fr); min-width: 0; }
  .sheet .row > span:nth-child(3) { display: none; }
  .sheet .row > span { padding: 11px 9px; font-size: 13px; }
  .sheet [data-raw].is-done { font-size: 13px; }
  .sheet-file { display: none; }
  .services, .tools { grid-template-columns: 1fr; }
  .services article { padding: 32px 20px; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .compare-row > span { padding: 14px 8px; font-size: 14px; }
  .compare-row > span:first-child { padding-left: 12px; }
  .price-group { padding: 28px 18px 20px; }
  .price-list > div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .price-list dd { text-align: left; }
  .price-list .price-main, .price-list .price-vat { display: inline; }
  .price-list .price-vat { margin-left: 6px; }
  .c-pair, .f2 { grid-template-columns: 1fr; }
  .gpsr, .footer-cta { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ======================================================================
   v3: světlá paleta, barevné bloky, tabulky a ceník
   ====================================================================== */

/* horní lišta světlá */
.topbar { background: linear-gradient(100deg, var(--aqua-t), var(--peri-t) 55%, var(--peach-t)); color: var(--ink); }
.topbar a { color: var(--ink); }
.topbar-note { color: var(--muted); }

/* okna: pastelový přechod a tmavý text */
.window { background: linear-gradient(100deg, rgba(45,212,191,.42) 0%, rgba(139,156,255,.38) 52%, rgba(255,154,118,.42) 100%); }
.window-alt { background: linear-gradient(100deg, rgba(255,207,92,.40) 0%, rgba(255,154,118,.36) 45%, rgba(139,156,255,.42) 100%); }
.window-text { color: var(--ink); text-shadow: 0 1px 24px rgba(255,255,255,.55); }

/* služby: barevný pruh a tónovaná ikona v cyklu barev */
.services article::before { transform: scaleX(1); height: 4px; background: var(--c, var(--aqua)); }
.services article { transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease; z-index: 0; }
.services article:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 24px 44px -30px var(--c, var(--aqua)); z-index: 1; }
.services article:nth-child(4n+1) { --c: var(--aqua); --t: var(--aqua-t); }
.services article:nth-child(4n+2) { --c: var(--peri); --t: var(--peri-t); }
.services article:nth-child(4n+3) { --c: var(--peach); --t: var(--peach-t); }
.services article:nth-child(4n+4) { --c: var(--mango); --t: var(--mango-t); }
.ico { background: var(--t, var(--aqua-t)); }
.ico svg { stroke: var(--ink); }

/* nástroje */
.tools > div { border-image: none; border-top: 4px solid var(--c); background: var(--t); }
.tools > div:nth-child(1) { --c: var(--aqua); --t: var(--aqua-t); }
.tools > div:nth-child(2) { --c: var(--peri); --t: var(--peri-t); }
.tools > div:nth-child(3) { --c: var(--peach); --t: var(--peach-t); }
.tools > div:nth-child(4) { --c: var(--mango); --t: var(--mango-t); }

/* srovnávací tabulka */
.compare { box-shadow: 0 30px 60px -44px rgba(74,79,214,.55); }
.compare-head > span { background: var(--soft); }
.compare-head > span:nth-child(3) { background: var(--grad-soft); color: var(--ink) !important; font-weight: 400; }
.compare-row > span:nth-child(3) { color: var(--green); background: linear-gradient(90deg, var(--aqua-t), var(--peri-t)); }
.compare-row:not(.compare-head):hover > span { background-color: #fbfcff; }
.compare-row:not(.compare-head):hover > span:nth-child(3) { background: linear-gradient(90deg, #d6f6ef, #e3e7ff); }

/* fakta */
.facts-inner { border: 0; background: linear-gradient(100deg, var(--aqua-t), var(--peri-t) 50%, var(--peach-t)); }
.facts-inner > div + div { border-left-color: rgba(27,36,51,.08); }

/* GPSR pás: pastelový přechod, tmavý text */
.gpsr { background: var(--grad-soft); color: var(--ink); }
.gpsr::before { background-image: linear-gradient(to right, rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.35) 1px, transparent 1px); }
.gpsr p { color: #2c3646; }
.gpsr .price-main { color: var(--ink); }
.gpsr .price-vat { color: #3d4858; }
.gpsr .btn-light { background: var(--ink); color: #fff; }
.gpsr .btn-light:hover { background: #000; color: #fff; }

/* ceník: barevné hlavičky skupin, zvýrazněný paušál */
.price-group { padding: 0 0 24px; overflow: hidden; transition: box-shadow .25s ease, transform .25s ease; }
.price-group:hover { transform: translateY(-2px); box-shadow: 0 30px 60px -40px var(--c, var(--peri)); }
.price-group:nth-child(1) { --c: var(--aqua); --t: var(--aqua-t); }
.price-group:nth-child(2) { --c: var(--peri); --t: var(--peri-t); }
.price-group:nth-child(3) { --c: var(--peach); --t: var(--peach-t); }
.price-group:nth-child(4) { --c: var(--mango); --t: var(--mango-t); }
.pg-head { margin: 0 0 8px; padding: 28px 24px 22px; background: var(--t); border-bottom: 4px solid var(--c); }
.price-list { padding: 0 32px; }
.price-list > div:first-child { border-top: 0; }
.price-list > div { position: relative; transition: background-color .2s ease; }
.price-list > div::before { content: ""; position: absolute; left: -32px; top: 0; bottom: 0; width: 3px; background: var(--c); transform: scaleY(0); transition: transform .2s ease; }
.price-list > div:hover::before { transform: scaleY(1); }
.pg-note { padding: 0 32px; }
.price-group.featured { box-shadow: 0 30px 70px -40px rgba(74,79,214,.6); }
.price-group.featured::before { background: var(--grad-soft); padding: 2px; }
.price-group.featured .pg-head { background: var(--grad-soft); border-bottom: 0; }
.price-group.featured .pg-head span { color: #2c3646; }
.featured .price-list .price-main { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* kontakt */
.c-row { border-image: none; border-left: 4px solid var(--aqua); background: var(--aqua-t); }
.c-pair .c-row:nth-child(2) { border-left-color: var(--peri); background: var(--peri-t); }
#poptavka { border-top: 4px solid; border-image: var(--grad-soft) 1; }

/* o mně */
.about-photo { background: var(--grad-soft); }
.skills li:first-child { background: var(--grad-soft); color: var(--ink); }
.skills li:nth-child(2) { background: var(--aqua-t); border-color: transparent; }
.skills li:nth-child(3) { background: var(--peri-t); border-color: transparent; }
.skills li:nth-child(4) { background: var(--peach-t); border-color: transparent; }
.skills li:nth-child(5) { background: var(--mango-t); border-color: transparent; }

/* patička: pastelový blok, tmavý text */
.footer-cta { background: var(--grad-soft); color: var(--ink); }
.footer-cta::before { background-image: linear-gradient(to right, rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.35) 1px, transparent 1px); }
.footer-big { -webkit-text-stroke: 1px rgba(27,36,51,.55); }
.footer-big span { color: var(--ink); }
.footer-claim { color: #2c3646; }
.footer-cta .btn-light { background: var(--ink); color: #fff; }
.footer-cta .btn-light:hover { background: #000; color: #fff; }
.pn i { background: linear-gradient(90deg, transparent 0%, transparent 38%, #2dd4bf 45%, #8b9cff 50%, #ff9a76 55%, transparent 62%, transparent 100%); }
@keyframes pnDigit { 0%, 6% { color: var(--muted); } 13%, 22% { color: var(--ink); } 30%, 100% { color: var(--muted); } }

@media (max-width: 520px) {
  .price-list { padding: 0 18px; }
  .price-list > div::before { left: -18px; }
  .pg-note { padding: 0 18px; }
}


/* ======================================================================
   v4: plovoucí hlavička odsazená od okrajů (styl Zafido), bez zaoblení
   ====================================================================== */
:root { --ht: 14px; }  /* odsazení plovoucí hlavičky od horního okraje při scrollu */
.site-header {
  top: var(--ht);
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: var(--ht) auto 0;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 40px -28px rgba(27,36,51,.45);
}
.site-header.is-scrolled { box-shadow: 0 22px 50px -26px rgba(27,36,51,.55); }
.site-header::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--grad-soft); }
.site-header .header-inner { max-width: none; padding: 0 20px 0 24px; }
.hero { margin-top: calc(-1 * (var(--hh) + var(--ht) + 2px)); padding-top: calc(88px + var(--hh) + var(--ht)); }
.section { scroll-margin-top: calc(var(--hh) + var(--ht) + 18px - var(--sp)); }
.gpsr { scroll-margin-top: calc(var(--hh) + var(--ht) + 18px - 88px); }
.nav { margin: 0 auto; }
@media (max-width: 1100px) {
  .nav { left: -1px; right: -1px; top: calc(100% + 8px); border: 1px solid var(--line); }
}
@media (max-width: 520px) {
  :root { --ht: 10px; }
  .site-header .header-inner { padding: 0 12px 0 16px; }
  .hero { padding-top: calc(56px + var(--hh) + var(--ht)); }
}

/* fotka v kroužku */
.about-photo { width: 184px; height: 184px; }
.about-photo img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; border: 4px solid #fff; background: #fff; }
@media (max-width: 520px) { .about-photo { width: 150px; height: 150px; } }

/* podstránka Otázky */
.hero.hero-sub { padding: calc(var(--hh) + var(--ht) + 8px) 0 0; min-height: 0; background: transparent; }
.hero-sub + .section { padding-top: 72px; background: transparent; }
.hero-sub + .section .sec-head { margin-bottom: 40px; }
.hero-sub + .section .faq details { background: rgba(255,255,255,.85); padding: 0 20px; border: 1px solid var(--line); margin-bottom: 10px; }
.hero-sub + .section .faq details:last-child { border-bottom: 1px solid var(--line); }
.hero-sub + .section .faq details[open] { border-left: 4px solid var(--aqua); }
.sub-cta .sec-head { margin-bottom: 0; }
@media (max-width: 520px) { .hero-sub + .section { padding-top: 48px; } .hero-sub + .section .faq details { padding: 0 14px; } }

/* právní stránky */
.legal { max-width: 880px; }
.legal-page .legal { background: rgba(255,255,255,.94); border: 1px solid var(--line); border-top: 4px solid; border-image: var(--grad-soft) 1; padding: 48px clamp(20px, 5vw, 64px) 56px; box-shadow: 0 30px 70px -50px rgba(27,36,51,.45); }
.legal .sec-head { margin-bottom: 40px; }
.legal-date { margin: 0; font-size: 14px; color: var(--muted); }
.legal h2 { font-size: 22px; font-weight: 400; margin: 36px 0 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p, .legal li { color: #3b4758; font-size: 16px; }
.legal ul { margin: 0 0 1em; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--blue); }
.legal strong { font-weight: 500; color: var(--ink); }
.legal-table { border: 1px solid var(--line); margin: 8px 0 16px; }
.lt-row { display: grid; grid-template-columns: 1.2fr 1fr 1.1fr; border-bottom: 1px solid var(--line); }
.lt-row:last-child { border-bottom: 0; }
.lt-row > span { padding: 14px 16px; font-size: 15px; color: #3b4758; }
.lt-row > span + span { border-left: 1px solid var(--line); }
.lt-head > span { background: linear-gradient(100deg, var(--aqua-t), var(--peri-t) 55%, var(--peach-t)); color: var(--ink); font-weight: 400; font-size: 14px; }
@media (max-width: 720px) {
  .lt-row { grid-template-columns: 1fr; }
  .lt-row > span + span { border-left: 0; border-top: 1px dashed var(--line); }
  .lt-head { display: none; }
  .lt-row > span:nth-child(1) { font-weight: 400; color: var(--ink); background: var(--soft); }
}

/* nenápadné právní odkazy v patičce */
.footer-bottom { align-items: center; }
.footer-bottom a { color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom a[aria-current="page"] { color: var(--ink); }
.f-hint a { color: var(--muted); }
