/* =============================================================
   AGITECH — design systém webu agi-tech.cz
   Barvy a písma dle logomanuálu (www.agi-tech.cz/logomanual/):
   Antracit #535152 · Modrá #336699 · Světlá inverzní #EDEFF3 ·
   Modrá inverzní #3F7FDF · Písma: Archivo (titulky), Roboto (text)
   ============================================================= */

/* fonty načítá <link rel="stylesheet" href="assets/fonts/fonts.css"> přímo v HTML
   (dřívější @import tu vytvářel sériový řetězec a zdržoval vykreslení textu) */

:root {
  --antracit: #535152;
  --ink: #333132;
  --muted: #6f6c6d;
  --blue: #336699;
  --blue-dark: #2a5680;
  --blue-bright: #3F7FDF;
  --cloud: #EDEFF3;
  --cloud-soft: #F5F7FA;
  --paper: #ffffff;
  --line: #dce0e8;
  --line-soft: #e7eaf0;
  --ok: #2e7d4f;
  --err: #b3423a;
  --shadow-sm: 0 1px 2px rgba(51, 49, 50, .05), 0 2px 10px rgba(51, 49, 50, .05);
  --shadow-md: 0 2px 6px rgba(51, 49, 50, .06), 0 14px 34px rgba(51, 49, 50, .09);
  --radius: 12px;
  --radius-sm: 8px;
  --font-head: "Archivo", "Segoe UI", sans-serif;
  --font-body: "Roboto", "Segoe UI", sans-serif;
  --wrap: 1180px;
  --header-h: 72px;
}

/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--antracit);
  line-height: 1.18;
  margin: 0 0 .55em;
  text-wrap: balance;
}
h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 700; letter-spacing: -.015em; }
h2 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 600; color: var(--antracit); }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; border-radius: 3px; }
::selection { background: rgba(51, 102, 153, .18); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- dekorativní prvky ---------- */
/* modrý trojúhelník z písmene A logotypu — jednotný grafický motiv */
.tri {
  display: inline-block; width: 13px; height: 10px; flex: none;
  background: var(--blue);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 600;
  color: var(--blue); margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: .09em;
}
/* labely uvnitř karet — bez trojúhelníku, tišší než sekční eyebrow */
.card-label {
  font-family: var(--font-head); font-size: 11.5px; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 10px;
}
.card-num {
  font-family: var(--font-head); font-weight: 700; font-size: 38px; line-height: 1;
  color: var(--blue); opacity: .18; margin-bottom: 10px;
}
/* velký obrysový trojúhelník — podpis značky */
.brand-tri::after, .hero.grid-bg::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -6%; top: -22%; width: min(46vw, 640px); aspect-ratio: 132 / 100;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 100'%3E%3Cpath d='M66 4 L128 96 L4 96 Z' fill='none' stroke='%23336699' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .14;
}
.section { padding: 76px 0; }
.section.alt {
  background:
    linear-gradient(rgba(245, 247, 250, 0), rgba(245, 247, 250, 0)),
    var(--cloud-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.major h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.015em; }
.section-head p { color: var(--muted); font-size: 17px; }
h2.sub { font-size: 24px; }

/* jemná technická mřížka do světlých hero ploch */
.grid-bg {
  background-color: var(--cloud);
  background-image:
    linear-gradient(rgba(51, 102, 153, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51, 102, 153, .08) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---------- hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--line-soft); box-shadow: 0 4px 18px rgba(51, 49, 50, .06); }
.header-in { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 24px; width: auto; }
.brand .logo-inv { display: none; }

/* hlavička nad tmavým hero (homepage): průhledná, po scrollu bílá */
.site-header.over-dark:not(.scrolled) { background: transparent; backdrop-filter: none; }
.site-header.over-dark:not(.scrolled) .logo-base { display: none; }
.site-header.over-dark:not(.scrolled) .logo-inv { display: block; }
.site-header.over-dark:not(.scrolled) .nav a { color: var(--cloud); }
.site-header.over-dark:not(.scrolled) .nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.site-header.over-dark:not(.scrolled) .nav a[aria-current="page"] { color: var(--blue-bright); }
.site-header.over-dark:not(.scrolled) .burger { background: transparent; border-color: rgba(237, 239, 243, .4); }
.site-header.over-dark:not(.scrolled) .burger span,
.site-header.over-dark:not(.scrolled) .burger span::before,
.site-header.over-dark:not(.scrolled) .burger span::after { background: var(--cloud); }
.site-header.over-dark:not(.scrolled) .header-cta { background: rgba(255, 255, 255, .1); border: 1px solid rgba(237, 239, 243, .35); }
.site-header.over-dark:not(.scrolled) .header-cta:hover { background: rgba(255, 255, 255, .18); box-shadow: none; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  font-family: var(--font-head); font-size: 15.5px; font-weight: 500;
  color: var(--ink); padding: 9px 13px; border-radius: 8px;
}
.nav a:hover { text-decoration: none; background: var(--cloud-soft); color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.header-cta { flex: none; margin-left: 4px; }

.burger {
  display: none; margin-left: auto; flex: none;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; cursor: pointer; padding: 0; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 11px; width: 21px; height: 2px;
  background: var(--antracit); border-radius: 2px; transition: transform .25s, opacity .2s, top .25s;
}
.burger span { top: 21px; }
.burger span::before { left: 0; top: -6px; }
.burger span::after { left: 0; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.burger[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

.drawer {
  display: none; position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 10px 24px 22px; box-shadow: 0 24px 40px rgba(51, 49, 50, .12);
}
.drawer.open { display: block; }
.drawer a {
  display: block; padding: 13px 6px; font-family: var(--font-head); font-weight: 500;
  font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line-soft);
}
.drawer a:last-child { border-bottom: 0; }
.drawer a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.scrim {
  display: none; position: fixed; inset: 0; z-index: 98; background: rgba(51, 49, 50, .35);
}
.scrim.open { display: block; }

@media (max-width: 980px) {
  .nav, .header-in .header-cta { display: none; }
  .burger { display: block; }
}
@media (max-width: 380px) {
  .brand img { height: 19px; }
  .header-in { gap: 14px; }
}

/* ---------- tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: 15.5px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s, box-shadow .2s;
  text-decoration: none !important;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(51, 102, 153, .28); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); background: var(--cloud-soft); }
.btn-lg { padding: 15px 30px; font-size: 16.5px; border-radius: 11px; }
.btn-sm { padding: 9px 16px; font-size: 14.5px; border-radius: 8px; }
.btn .tri { width: 9px; height: 7px; transform: rotate(90deg); transition: transform .2s; }
.btn:hover .tri { transform: rotate(90deg) translateY(3px); }
.btn-primary .tri { background: #fff; }

/* na tmavém/modrém podkladu */
.on-dark .btn-primary { background: #fff; color: var(--blue); }
.on-dark .btn-primary:hover { background: var(--cloud); box-shadow: none; }
.on-dark .btn-primary .tri { background: var(--blue); }
.on-dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.on-dark .btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* ---------- cinematický hero (homepage) ---------- */
.hero-cine {
  position: relative; overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  background: #0D1B29 url("img/hero-duotone.jpg") center 30% / cover no-repeat;
  color: var(--cloud);
}
.hero-cine::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 20, 31, .55), rgba(10, 20, 31, 0) 30%, rgba(10, 20, 31, .35) 100%),
    linear-gradient(92deg, rgba(10, 20, 31, .9) 0%, rgba(10, 20, 31, .66) 46%, rgba(10, 20, 31, .18) 78%, rgba(10, 20, 31, .05));
}
.hero-cine .wrap {
  position: relative; z-index: 1;
  min-height: clamp(560px, 78vh, 780px);
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 40px); padding-bottom: 72px;
}
.hero-cine .hero-copy { max-width: 640px; }
.hero-cine .eyebrow { color: var(--blue-bright); }
.hero-cine .eyebrow .tri { background: var(--blue-bright); }
.hero-cine h1 { color: #fff; font-size: clamp(36px, 5vw, 58px); margin-bottom: .4em; }
.hero-cine h1 .accent { color: var(--blue-bright); }
.hero-cine .lead { font-size: 18.5px; color: rgba(237, 239, 243, .85); max-width: 54ch; }
.hero-cine .hero-note { color: rgba(237, 239, 243, .65); }
.hero-cine .hero-note .tri { background: var(--blue-bright); }
.hero-cine .photo-chip {
  position: absolute; right: 26px; bottom: 22px; z-index: 1;
  display: flex; align-items: center; gap: 9px;
  background: rgba(13, 27, 41, .55); border: 1px solid rgba(237, 239, 243, .22);
  border-radius: 9px; padding: 8px 14px; font-size: 13px; color: rgba(237, 239, 243, .85);
  font-family: var(--font-head); font-weight: 500; backdrop-filter: blur(6px);
}
.hero-cine .photo-chip .tri { width: 9px; height: 7px; background: var(--blue-bright); }
@media (max-width: 700px) {
  .hero-cine { background-position: 76% 30%; }
  .hero-cine .wrap { min-height: 0; padding-top: calc(var(--header-h) + 34px); padding-bottom: 96px; }
  .hero-cine .photo-chip { right: 16px; bottom: 14px; }
  /* na úzkých displejích text překrývá fotku v celé šířce — téměř plné ztmavení */
  .hero-cine::before {
    background: linear-gradient(180deg, rgba(10, 20, 31, .93), rgba(10, 20, 31, .86) 55%, rgba(10, 20, 31, .7));
  }
  .hero-cine .lead { color: rgba(237, 239, 243, .96); }
  .hero-cine .hero-note { color: rgba(237, 239, 243, .85); }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 84px;
}
.hero-copy .lead { font-size: 18.5px; color: var(--muted); max-width: 54ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 26px; font-size: 14.5px; color: var(--muted); display: flex; gap: 9px; align-items: baseline; }
.hero-media { position: relative; }
.hero-media .frame {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.hero-media img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3.4; }
.hero-media figcaption {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(255, 255, 255, .93); border: 1px solid var(--line);
  border-radius: 9px; padding: 9px 15px; font-size: 13.5px; color: var(--antracit);
  font-family: var(--font-head); font-weight: 600; display: flex; align-items: center; gap: 9px;
  backdrop-filter: blur(4px);
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 56px; }
}

/* ---------- statistiky ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 6px 30px; border-left: 1px solid var(--line); align-content: start; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: clamp(28px, 2.9vw, 42px); color: var(--blue); letter-spacing: -.015em;
  font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap;
}
.stat b::before {
  content: ""; display: inline-block; width: 11px; height: 9px; margin-right: 12px;
  background: var(--blue-bright); clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: translateY(-4px);
}
.stat span { color: var(--muted); font-size: 14.5px; display: block; margin-top: 6px; }
.stats-note { font-size: 12.5px; color: var(--muted); margin: 22px 0 0; }
@media (max-width: 860px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat { padding: 0 12px; }
  .stat b { font-size: 25px; }
  .stat b::before { width: 9px; height: 7px; margin-right: 8px; transform: translateY(-3px); }
}

/* ---------- karty ---------- */
.cards { display: grid; gap: 22px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) { .cards.c3, .cards.c4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards.c2, .cards.c3, .cards.c4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd5df; }
.card .eyebrow { margin-bottom: 8px; font-size: 13.5px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; }
.card .more .tri { width: 9px; height: 7px; transform: rotate(90deg); }
.card { display: flex; flex-direction: column; align-items: flex-start; }
a.card { color: inherit; }
a.card:hover { text-decoration: none; }

/* ---------- produktové karty ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1020px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd5df; }
.prod-card .ph {
  background: linear-gradient(180deg, var(--cloud-soft), #fff);
  border-bottom: 1px solid var(--line-soft);
  aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 20px;
  position: relative; overflow: hidden;
}
.prod-card .ph img {
  max-height: 100%; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply;
  position: relative; z-index: 1; transition: transform .35s ease;
}
.prod-card:hover .ph img { transform: scale(1.045); }
/* jednotný "zemní" stín pod roboty s fotografií */
.ph.has-photo::after, .product-media .main.has-photo::after {
  content: ""; position: absolute; left: 50%; bottom: 7%;
  width: 56%; height: 7%; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(51, 49, 50, .16) 0%, rgba(51, 49, 50, 0) 68%);
  z-index: 0; pointer-events: none;
}
/* tmavá dlaždice pro oficiální fotky na černém studiovém pozadí */
.prod-card .ph.dark, .product-media .main.dark {
  background: radial-gradient(120% 90% at 50% 30%, #1a191a 0%, #000 70%);
  border-color: #2a292a;
}
.prod-card .ph.dark img, .product-media .main.dark img { mix-blend-mode: normal; }
.prod-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.prod-card .cat {
  font-size: 11.5px; color: var(--muted); font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px;
}
.prod-card h3 { margin-bottom: 4px; font-size: 19px; }
.prod-card .tagline { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.prod-card .quick { list-style: none; padding: 0; margin: 0 0 18px; font-size: 13.5px; color: var(--antracit); display: grid; gap: 5px; }
.prod-card .quick li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line-soft); padding-bottom: 5px; }
.prod-card .quick li span:first-child { color: var(--muted); white-space: nowrap; }
.prod-card .quick li span:last-child {
  font-weight: 500; font-variant-numeric: tabular-nums; text-align: right;
  max-width: 62%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prod-card .actions { margin-top: auto; display: flex; gap: 10px; }
.prod-card .actions .btn { flex: 1; }

/* ---------- filtr katalogu ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-bar button {
  font-family: var(--font-head); font-weight: 500; font-size: 14.5px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: all .18s;
}
.filter-bar button:hover { border-color: var(--blue); color: var(--blue); }
.filter-bar button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-count {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--cloud); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
}
.filter-bar button[aria-pressed="true"] .chip-count { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- tabulky specifikací ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.spec-table th { width: 38%; font-family: var(--font-head); font-weight: 500; color: var(--muted); }
.spec-table td { color: var(--antracit); font-weight: 450; font-variant-numeric: tabular-nums; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-box .spec-head { padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--cloud-soft); font-family: var(--font-head); font-weight: 600; color: var(--antracit); display: flex; align-items: center; gap: 10px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 14.5px; }
.cmp-table th, .cmp-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); text-align: left; white-space: nowrap; }
.cmp-table thead th { background: var(--cloud-soft); font-family: var(--font-head); font-weight: 600; color: var(--antracit); position: sticky; top: 0; }
.cmp-table td { font-variant-numeric: tabular-nums; }
.cmp-table tbody th { font-family: var(--font-head); font-weight: 600; color: var(--blue); }
.cmp-table tbody tr:hover td, .cmp-table tbody tr:hover th { background: #f8fafc; }

/* ---------- produktový detail ---------- */
.breadcrumbs { font-size: 13.5px; color: var(--muted); margin: 20px 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #b6bcc8; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }

.product-hero { padding: 34px 0 66px; }
.product-hero .wrap { display: grid; grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: 54px; align-items: start; }
@media (max-width: 900px) { .product-hero .wrap { grid-template-columns: 1fr; gap: 32px; } }
.product-media { position: sticky; top: calc(var(--header-h) + 22px); }
@media (max-width: 900px) { .product-media { position: static; } }
.product-media .main {
  background: linear-gradient(180deg, var(--cloud-soft), #fff);
  border: 1px solid var(--line); border-radius: 16px;
  aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 34px; cursor: zoom-in;
  position: relative; overflow: hidden;
}
.product-media .main img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; position: relative; z-index: 1; }
.product-media .thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.product-media .thumbs button {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  aspect-ratio: 1/1; padding: 8px; cursor: pointer; display: grid; place-items: center;
}
.product-media .thumbs button img { max-height: 100%; width: auto; mix-blend-mode: multiply; }
.product-media .thumbs button[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.product-info .cat { display: flex; align-items: center; gap: 9px; color: var(--blue); font-family: var(--font-head); font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.product-info h1 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 6px; }
.product-info .tagline { font-size: 18px; color: var(--muted); margin-bottom: 20px; }
.product-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.avail-note { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- benefity / seznamy ---------- */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .benefits { grid-template-columns: 1fr; } }
.benefit { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.benefit .tri { margin-top: 7px; }
.benefit b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--antracit); margin-bottom: 3px; }
.benefit p { margin: 0; font-size: 14.5px; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: baseline; }
.checklist .tri { width: 10px; height: 8px; transform: translateY(-1px); flex: none; }
.checklist.rich { gap: 15px; }
.checklist.rich li b { display: block; font-family: var(--font-head); font-weight: 600; color: var(--antracit); margin-bottom: 2px; }
.checklist.rich li div span { font-size: 14.5px; color: var(--muted); }

/* ---------- proces / kroky (časová osa) ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 18px; } }
.step { counter-increment: step; border-top: 2px solid var(--line); padding: 18px 10px 0 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 44px;
  line-height: 1; color: var(--blue); opacity: .2; margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 17.5px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- úzký CTA pruh uprostřed stránky ---------- */
.cta-strip { background: var(--cloud-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.cta-strip .wrap {
  display: flex; align-items: center; justify-content: center; gap: 12px 26px;
  flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px;
}
.cta-strip p { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--antracit); }

/* ---------- CTA pás (tmavá předpatička) ---------- */
.cta-band {
  background: linear-gradient(135deg, #242223, #2e2c2d 55%, #2b3138);
  color: #fff; position: relative; overflow: hidden;
  border-bottom: 1px solid rgba(237, 239, 243, .08);
}
.cta-band::after {
  content: ""; position: absolute; right: -70px; top: -110px;
  width: min(44vw, 620px); aspect-ratio: 132 / 100;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 100'%3E%3Cpath d='M66 4 L128 96 L4 96 Z' fill='none' stroke='%233F7FDF' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: .22; transform: rotate(14deg); pointer-events: none;
}
.cta-band .wrap {
  padding-top: 68px; padding-bottom: 68px; position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 44px; align-items: center;
}
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; gap: 30px; } }
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: var(--blue-bright); }
.cta-band .eyebrow .tri { background: var(--blue-bright); }
.cta-band p { color: rgba(237, 239, 243, .78); max-width: 62ch; }
.cta-band .hero-ctas { margin-top: 26px; }
.cta-band .on-dark .btn-primary, .on-dark .cta-band .btn-primary { background: var(--blue-bright); color: #fff; }

.contact-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(237, 239, 243, .2);
  border-radius: var(--radius); padding: 22px 24px; backdrop-filter: blur(4px);
  position: relative; z-index: 1;
}
.contact-card .avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: linear-gradient(150deg, var(--blue-bright), var(--blue));
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 18px;
  display: grid; place-items: center; letter-spacing: .02em;
}
.contact-card .person { display: flex; gap: 15px; align-items: center; }
.contact-card .person b { display: block; color: #fff; font-family: var(--font-head); font-size: 16.5px; }
.contact-card .person span { font-size: 13.5px; color: rgba(237, 239, 243, .65); }
.contact-card a { color: var(--blue-bright); font-size: 14.5px; font-weight: 500; }
.contact-card .note { font-size: 13px; color: rgba(237, 239, 243, .82); margin: 14px 0 0; border-top: 1px solid rgba(237, 239, 243, .16); padding-top: 13px; }

/* ---------- formulář ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 500; font-size: 14.5px; color: var(--antracit); }
.field label .req { color: var(--err); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15.5px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51, 102, 153, .14);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--muted); }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-status { border-radius: 9px; padding: 13px 16px; font-size: 14.5px; display: none; margin-top: 14px; }
.form-status.ok { display: block; background: #eef7f1; border: 1px solid #bfe0cc; color: var(--ok); }
.form-status.err { display: block; background: #fbeeed; border: 1px solid #eccfcc; color: var(--err); }

/* ---------- patička ---------- */
.site-footer { background: #3b393a; color: #c9c7c8; margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; padding: 58px 0 42px; }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .flogo img { height: 22px; width: auto; margin-bottom: 16px; }
.site-footer p { font-size: 14px; color: #b5b3b4; }
.site-footer h4 { color: var(--cloud); font-size: 14.5px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer ul a { color: #c9c7c8; font-size: 14.5px; }
.site-footer ul a:hover { color: #fff; }
.site-footer address { font-style: normal; font-size: 14.5px; display: grid; gap: 7px; }
.site-footer address a { color: var(--cloud); }
.footer-bottom {
  border-top: 1px solid rgba(237, 239, 243, .14);
  padding: 20px 0 26px; font-size: 13px; color: #9d9b9c;
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
}
.footer-bottom a { color: #9d9b9c; }
.footer-bottom a:hover { color: #fff; }

/* ---------- videoukázky ---------- */
.video-banner {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-md); background: #0D1B29;
}
.video-banner video { display: block; width: 100%; aspect-ratio: 16 / 9; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1020px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }
.video-card {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.video-card video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #0D1B29; cursor: pointer; }
.video-banner video { cursor: pointer; }
.video-card .vwrap { position: relative; }
.video-card .vwrap::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 0; height: 0; transform: translate(-40%, -50%);
  border-left: 30px solid var(--blue-bright);
  border-top: 19px solid transparent; border-bottom: 19px solid transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .45));
  pointer-events: none; transition: opacity .25s;
}
.video-card.playing .vwrap::after { opacity: 0; }
.video-card figcaption {
  padding: 14px 18px; font-family: var(--font-head); font-weight: 500;
  font-size: 14.5px; color: var(--antracit); display: flex; gap: 10px; align-items: baseline;
}
.video-card figcaption .tri { width: 9px; height: 7px; flex: none; transform: translateY(-1px); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(38, 36, 37, .9); place-items: center; padding: 4vh 4vw; cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; height: auto; background: #fff; border-radius: 12px; padding: 18px; }
.lightbox .close {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px;
  background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%; font-size: 22px; cursor: pointer; line-height: 1;
}

/* ---------- reveal animace ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ---------- pomocné ---------- */
.mt-0 { margin-top: 0; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-56 { margin-top: 56px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.two-col.loose { gap: clamp(3rem, 6vw, 5rem); }
.two-col.form-split { grid-template-columns: 1.4fr .8fr; }
@media (max-width: 860px) { .two-col, .two-col.form-split { grid-template-columns: 1fr; gap: 28px; } }
.divider { border: 0; border-top: 1px solid var(--line-soft); margin: 44px 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; display: grid; gap: 12px; }
details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 20px;
}
details.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0;
  font-family: var(--font-head); font-weight: 600; font-size: 16.5px; color: var(--antracit);
  display: flex; align-items: center; gap: 12px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before {
  content: ""; width: 10px; height: 8px; flex: none;
  background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: rotate(90deg); transition: transform .2s;
}
details.faq[open] summary::before { transform: rotate(180deg); }
details.faq p { color: var(--muted); font-size: 15px; margin: 0 0 16px 22px; max-width: 70ch; }

/* ---------- mobilní zhuštění ---------- */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 26px; }
  .cards, .prod-grid, .benefits { gap: 14px; }
  .clamp-m {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .card, .prod-card .body { padding: 20px; }
  .steps { gap: 16px; }
  .cta-band .wrap { padding-top: 52px; padding-bottom: 52px; }
  .footer-top { padding: 44px 0 32px; }
}

/* 404 */
.err-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.err-page .code { font-family: var(--font-head); font-weight: 700; font-size: clamp(70px, 12vw, 130px); color: var(--blue); letter-spacing: -.03em; line-height: 1; }
