/* Produktová stránka DDoS ochrany (devpage/public/index.html). Barvy a písmo jako konzole
   a portál (portal/src/styles/main.css): UVT navy, modrá, limetková, růžová; Montserrat (OFL).
   Bez externích zdrojů a bez inline stylů (CSP default-src 'self'). */

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

:root {
  --navy: #003770;
  --navy-deep: #001f3f;
  --blue: #005fba;
  --lime: #93d500;
  --pink: #e171ca;
  --accent: #ad3896;

  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --text: #16213a;
  --muted: #55607a;
  --line: #d9e0ee;
  --ok: #1f8a4c;
  --ok-soft: #e5f5ea;
  --warn: #a35a00;
  --warn-soft: #fff3df;
  --err: #c02d2d;
  --err-soft: #fde9e9;
  --shadow: 0 1px 2px rgba(0, 31, 63, 0.06), 0 8px 24px rgba(0, 31, 63, 0.08);
  --shadow-lg: 0 2px 4px rgba(0, 31, 63, 0.08), 0 20px 48px rgba(0, 31, 63, 0.16);
  --radius: 14px;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0c1424;
    --surface: #131d31;
    --surface-2: #1a2640;
    --text: #e6ebf5;
    --muted: #a3aec4;
    --line: #2a3754;
    --ok: #5fd08d;
    --ok-soft: #13301f;
    --warn: #f0b058;
    --warn-soft: #33260f;
    --err: #ff7f7f;
    --err-soft: #3a1717;
    --blue: #6fb0ff;
    --accent: #ef8fdb;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.4), 0 20px 48px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-underline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.45rem);
  font-weight: 750;
}

h3 {
  font-size: 1.18rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

.wrap {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* --- navigace ------------------------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 31, 63, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 3px solid var(--lime);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}

.brand img {
  height: 30px;
  width: auto;
}

.brand span {
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.95rem;
}

.topbar nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar nav::-webkit-scrollbar {
  display: none;
}

.topbar nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --- úvod ------------------------------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(0, 95, 186, 0.55), transparent 60%),
    radial-gradient(700px 420px at 5% 110%, rgba(225, 113, 202, 0.28), transparent 60%),
    linear-gradient(160deg, #002a57 0%, var(--navy-deep) 70%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 72px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(147, 213, 0, 0.25);
}

.hero h1 {
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--lime);
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 38em;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 26px 0 30px;
  display: grid;
  gap: 10px;
}

.hero-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.92);
}

.hero-points li {
  position: relative;
  padding-left: 32px;
}

.hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--lime);
}

.hero-points li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 8.5px;
  width: 8px;
  height: 4.5px;
  border-left: 2.4px solid var(--navy-deep);
  border-bottom: 2.4px solid var(--navy-deep);
  transform: rotate(-45deg);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn.primary {
  background: var(--lime);
  color: var(--navy-deep);
}

.btn.primary:hover {
  background: #a6e81a;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn.ghost:hover {
  border-color: #fff;
}

.hero-shot {
  position: relative;
}

.hero-shot .frame {
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transform-origin: left center;
}

.hero-badge {
  position: absolute;
  left: -18px;
  bottom: -22px;
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
  max-width: 300px;
}

.hero-badge strong {
  display: block;
  font-size: 1.05rem;
  color: var(--err);
}

.pulse {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--err);
  box-shadow: 0 0 0 0 rgba(192, 45, 45, 0.5);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(192, 45, 45, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(192, 45, 45, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --- čísla ---------------------------------------------------------------------------------------- */

.stats {
  position: relative;
  margin-top: -1px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 28px 22px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat b {
  display: block;
  font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.stat small {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.85;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .stat b {
    color: #fff;
  }
}

/* --- sekce ---------------------------------------------------------------------------------------- */

section.block {
  padding: 84px 0;
}

section.block.alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px;
}

.kicker {
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-head p {
  font-size: 1.08rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

section.alt .card {
  background: var(--bg);
  box-shadow: none;
}

.card h3 {
  display: flex;
  gap: 12px;
  align-items: center;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

.card .muted,
.muted {
  color: var(--muted);
}

.icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
}

.icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon.lime {
  background: linear-gradient(135deg, #6fa300, var(--lime));
  color: var(--navy-deep);
}

.icon.pink {
  background: linear-gradient(135deg, var(--accent), var(--pink));
}

ul.check {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  display: grid;
  gap: 8px;
}

ul.check li {
  position: relative;
  padding-left: 26px;
}

ul.check li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}

ul.dash {
  padding-left: 1.1em;
  margin: 0 0 1em;
}

ul.dash li {
  margin: 4px 0;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  vertical-align: middle;
  white-space: nowrap;
}

.tag.ok {
  background: var(--ok-soft);
  color: var(--ok);
}

.tag.warn {
  background: var(--warn-soft);
  color: var(--warn);
}

.tag.plan {
  background: var(--surface-2);
  color: var(--blue);
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
}

.spaced {
  margin-top: 28px;
}

.spaced-sm {
  margin-top: 14px;
}

.spaced-lg {
  margin-top: 64px;
}

table.mini {
  margin: 14px 0 6px;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

table.mini td {
  padding: 8px 12px;
}

table.mini td:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

/* --- schéma zapojení ------------------------------------------------------------------------------- */

.diagram {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.diagram .node {
  fill: var(--surface-2);
  stroke: var(--line);
  stroke-width: 1.5;
}

.diagram .node.box {
  fill: var(--navy);
  stroke: var(--navy);
}

.diagram .node.cust {
  fill: var(--ok-soft);
  stroke: var(--ok);
}

.diagram .node.attack {
  fill: var(--err-soft);
  stroke: var(--err);
}

.diagram text {
  font-family: var(--sans);
  font-size: 15px;
  fill: var(--text);
  font-weight: 600;
}

.diagram text.small {
  font-size: 12.5px;
  font-weight: 500;
  fill: var(--muted);
}

.diagram text.on-dark {
  fill: #fff;
}

.diagram text.on-dark.small {
  fill: rgba(255, 255, 255, 0.8);
}

.diagram .flow {
  stroke: var(--ok);
  stroke-width: 3.5;
  fill: none;
}

.diagram .flow.bad {
  stroke: var(--err);
}

.diagram .flow.backup {
  stroke: var(--muted);
  stroke-dasharray: 8 7;
  stroke-width: 2.5;
}

.diagram .arrow-ok {
  fill: var(--ok);
}

.diagram .arrow-bad {
  fill: var(--err);
}

.diagram .arrow-muted {
  fill: var(--muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend i {
  width: 26px;
  height: 0;
  border-top: 3.5px solid var(--ok);
}

.legend i.bad {
  border-color: var(--err);
}

.legend i.backup {
  border-top: 2.5px dashed var(--muted);
}

/* --- pipeline ------------------------------------------------------------------------------------- */

.pipeline {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}

section.alt .step {
  background: var(--bg);
}

.step-num {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: var(--navy);
}

.step:nth-child(2) .step-num { background: #00478f; }
.step:nth-child(3) .step-num { background: var(--blue); }
.step:nth-child(4) .step-num { background: #3b74c4; }
.step:nth-child(5) .step-num { background: #6a5fb8; }
.step:nth-child(6) .step-num { background: var(--accent); }
.step:nth-child(7) .step-num { background: #6fa300; }

.step h3 {
  margin-bottom: 4px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.step .tag {
  margin-top: 4px;
}

/* --- tabulky -------------------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--surface-2);
  font-weight: 700;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td strong {
  display: block;
}

td .sub {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- snímky --------------------------------------------------------------------------------------- */

.frame {
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}

.frame::before {
  content: '';
  display: block;
  height: 26px;
  background:
    radial-gradient(circle at 16px 13px, #ff5f57 5px, transparent 5.5px),
    radial-gradient(circle at 34px 13px, #febc2e 5px, transparent 5.5px),
    radial-gradient(circle at 52px 13px, #28c840 5px, transparent 5.5px),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.frame.bare::before {
  display: none;
}

figure {
  margin: 0;
}

figure a {
  display: block;
}

figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

figcaption strong {
  color: var(--text);
}

.shot-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #fff;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.feature:last-child {
  margin-bottom: 0;
}

.feature.flip > :first-child {
  order: 2;
}

.feature h3 {
  font-size: 1.45rem;
}

.mobile-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 28px;
  align-items: end;
}

.phone {
  border-radius: 28px;
  border: 8px solid #10192d;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 480px;
}

.phone img {
  width: 100%;
}

/* --- šablony -------------------------------------------------------------------------------------- */

.templates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.template {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: var(--surface);
}

section.alt .template {
  background: var(--bg);
}

.template h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.template p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- proces --------------------------------------------------------------------------------------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  counter-reset: t;
}

.timeline li {
  list-style: none;
  position: relative;
  padding: 54px 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: t;
}

.timeline li::before {
  content: counter(t);
  position: absolute;
  top: 14px;
  left: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: var(--lime);
  color: var(--navy-deep);
}

.timeline strong {
  display: block;
  margin-bottom: 4px;
}

.timeline span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- FAQ ------------------------------------------------------------------------------------------ */

details.faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0 20px;
  margin-bottom: 10px;
}

details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 700;
  position: relative;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

details.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 1.4rem;
  color: var(--blue);
}

details.faq[open] summary::after {
  content: '–';
}

details.faq p {
  color: var(--muted);
}

/* --- patička -------------------------------------------------------------------------------------- */

.closing {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  padding: 72px 0;
}

.closing h2 {
  color: #fff;
}

.closing p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 44em;
}

footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  padding: 28px 0;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}

footer img {
  height: 26px;
  width: auto;
}

footer a {
  color: #fff;
}

/* --- šířky ---------------------------------------------------------------------------------------- */

@media (max-width: 1060px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 56px;
  }
  .hero-shot .frame {
    transform: none;
  }
  .grid.four,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .templates,
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature,
  .feature.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .feature.flip > :first-child {
    order: 0;
  }
  .stats .wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .brand span,
  .topbar nav {
    display: none;
  }
  section.block {
    padding: 60px 0;
  }
  .grid.two,
  .grid.three,
  .grid.four,
  .templates,
  .timeline {
    grid-template-columns: minmax(0, 1fr);
  }
  .step {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .step .tag {
    grid-column: 2;
  }
  .mobile-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .phone {
    max-width: 260px;
    margin-inline: auto;
  }
  .hero-badge {
    position: static;
    margin-top: 16px;
    max-width: none;
  }
  th,
  td {
    padding: 12px;
  }
}

/* --- tisk (PDF leták) ----------------------------------------------------------------------------- */

@media print {
  :root {
    --bg: #fff;
  }
  .topbar,
  .cta,
  .skip {
    display: none;
  }
  body {
    font-size: 11pt;
  }
  section.block {
    padding: 28px 0;
    break-inside: auto;
  }
  .card,
  .step,
  figure,
  .template,
  tr {
    break-inside: avoid;
  }
  .hero,
  .closing {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .hero-shot .frame {
    transform: none;
  }
  details.faq {
    break-inside: avoid;
  }
  details.faq:not([open]) > *:not(summary) {
    display: block;
  }
}

/* vysoké snímky: v náhledu jen horní část, celý po kliknutí */
.shot-card.crop {
  max-height: 560px;
}

.shot-card.crop img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: top;
}

/* --- náhled snímku přes stránku (produkt.js) -------------------------------------------------------- */

figure a,
a.zoom {
  cursor: zoom-in;
}

html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 56px 72px 48px;
  border: 0;
  background: transparent;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox::backdrop {
  background: rgba(4, 10, 22, 0.88);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.lightbox-body {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: min(1600px, 100%);
}

.lightbox-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-body figcaption {
  max-width: 72ch;
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.lightbox-body figcaption strong {
  color: #fff;
}

.lightbox-body figcaption code {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 400 28px/1 var(--sans);
  cursor: pointer;
  border-radius: 50%;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.lightbox-close {
  top: 14px;
  right: 18px;
  width: 44px;
  height: 44px;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  font-size: 34px;
  padding-bottom: 4px;
}

.lightbox-prev {
  left: 14px;
}

.lightbox-next {
  right: 14px;
}

.lightbox-hint {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .lightbox {
    padding: 56px 12px 44px;
  }
  .lightbox-nav {
    top: auto;
    bottom: 8px;
    margin-top: 0;
    width: 40px;
    height: 40px;
  }
}

@media print {
  .lightbox {
    display: none;
  }
}
