/* ============================================================
   Kapslovačka | ENTRY Engineering
   Design: industrial precision, light "engineering paper" theme,
   terracotta accent, Geist + Geist Mono (latin + latin-ext).
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-ext-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  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: "Geist";
  src: url("assets/fonts/geist-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-ext-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  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: "Geist";
  src: url("assets/fonts/geist-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-ext-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  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: "Geist";
  src: url("assets/fonts/geist-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-ext-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  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: "Geist";
  src: url("assets/fonts/geist-latin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-latin-ext-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  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: "Geist Mono";
  src: url("assets/fonts/geist-mono-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/geist-mono-latin-ext-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
  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: "Geist Mono";
  src: url("assets/fonts/geist-mono-latin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f2ec;
  --surface: #fdfbf7;
  --surface-2: #efe8df;
  --ink: #1d1a16;
  --ink-soft: #423b33;
  --muted: #6b6157;
  --line: #e3dbd0;
  --line-strong: #cfc5b8;
  --accent: #8b5e3c;
  --accent-strong: #6f4528;
  --accent-soft: #f1e5d7;
  --accent-ink: #6d4426;
  --dark-bg: #1a1512;
  --dark-surface: #241d18;
  --dark-ink: #f1ece5;
  --dark-muted: #a89e92;
  --dark-line: #342b23;
  --radius: 14px;      /* karty, panely */
  --radius-sm: 10px;   /* vstupy, menší prvky */
  --radius-xs: 6px;    /* vnitřní zaoblení uvnitř karet */
  --shadow-soft: 0 1px 2px rgb(58 44 30 / .05), 0 12px 32px -12px rgb(58 44 30 / .14);
  --font-sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --nav-h: 68px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171310;
    --surface: #201b16;
    --surface-2: #261f19;
    --ink: #f1ece5;
    --ink-soft: #d3ccc2;
    --muted: #a3998c;
    --line: #322a22;
    --line-strong: #443a2f;
    --accent: #c9935e;
    --accent-strong: #d8a872;
    --accent-soft: #32261a;
    --accent-ink: #d8a872;
    --dark-bg: #14100d;
    --dark-surface: #1c1712;
    --dark-line: #2c241c;
    --shadow-soft: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .5);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: 104px; }
.section-tinted { background: var(--surface-2); }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--ink); color: var(--bg);
  padding: 10px 18px; border-radius: var(--radius-sm); text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; color: var(--bg); }

.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Typography scale ---------- */
h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
}
h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-ink);
  margin-bottom: 18px;
}

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.06rem; }
.section-head .eyebrow { margin-bottom: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: .95rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgb(139 94 60 / .55);
}
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) {
  .btn-primary { color: #211409; }
  .btn-primary:hover { color: #211409; }
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }

.btn .ic { width: 17px; height: 17px; transition: transform .2s ease; }
.btn:hover .ic { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: 1180px; margin-inline: auto;
  padding-inline: 24px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand-mark {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand-mark .ic { width: 19px; height: 19px; color: #fff; }
@media (prefers-color-scheme: dark) {
  .brand-mark .ic { color: #211409; }
}
.brand-text {
  font-weight: 700; font-size: 1.08rem; letter-spacing: -0.015em;
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: .6rem; font-weight: 400; letter-spacing: .08em;
  color: var(--muted); text-transform: uppercase;
}

.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-size: .92rem; font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }

.btn-nav { padding: 10px 20px; font-size: .88rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column; gap: 4px;
  padding: 12px 24px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu a {
  padding: 11px 4px;
  text-decoration: none; color: var(--ink);
  font-weight: 500; font-size: 1.02rem;
}
.mobile-menu .btn { justify-content: center; margin-top: 10px; }

/* ---------- Kávové zrnko na pozadí (jemný ornament) ---------- */
.bg-bean {
  position: absolute;
  color: var(--accent);
  opacity: .05;
  pointer-events: none;
  z-index: 0;
}
.bg-bean-hero {
  width: 580px; height: 580px;
  left: -170px; top: 60px;
  transform: rotate(-18deg);
}
.bg-bean-mat {
  width: 460px; height: 460px;
  right: -140px; bottom: -150px;
  transform: rotate(22deg);
}
@media (prefers-color-scheme: dark) {
  .bg-bean { opacity: .06; }
}
@media (max-width: 880px) {
  .bg-bean-hero { width: 360px; height: 360px; left: -130px; top: 30px; }
  .bg-bean-mat { width: 300px; height: 300px; right: -100px; bottom: -100px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 72px 88px; overflow: hidden; position: relative; }
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6.4fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-sub {
  margin-top: 24px;
  font-size: 1.17rem;
  color: var(--muted);
  max-width: 46ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-points {
  list-style: none;
  margin: 30px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
}
.hero-points li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 500;
  color: var(--ink-soft);
}
.hero-points .ic { width: 15px; height: 15px; color: var(--accent-ink); }

.photo-plate {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.photo-plate img { width: 100%; }
@media (prefers-color-scheme: dark) {
  .photo-plate { border-color: var(--line-strong); }
}

.hero-media { margin: 0; }
.hero-media .photo-plate img { aspect-ratio: 627 / 880; object-fit: cover; }
.hero-media figcaption,
.bento-photo figcaption,
.hmi-shot figcaption {
  margin-top: 12px;
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--surface); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 6px;
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: .92rem; color: var(--muted); }

/* ---------- Proces ---------- */
.proces-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.proces-intro { position: sticky; top: calc(var(--nav-h) + 40px); }
.proces-intro p { margin-top: 20px; color: var(--muted); max-width: 42ch; }
.proces-intro .proces-note {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  color: var(--ink-soft);
}

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding-block: 30px;
}
.step + .step { border-top: 1px solid var(--line); }
.step-no {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  padding-top: 4px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .98rem; max-width: 56ch; }

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.bento-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bento-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.bento-cell h3 { margin: 18px 0 10px; }
.bento-cell p { color: var(--muted); font-size: .95rem; }

.ic-feature {
  width: 30px; height: 30px;
  color: var(--accent-ink);
}

.bento-photo {
  grid-column: span 5; grid-row: span 2;
  padding: 0; border: 0; background: none;
}
.bento-photo:hover { transform: none; box-shadow: none; }
.photo-plate-fill { height: 100%; }
.bento-photo .photo-plate { height: calc(100% - 38px); }
.bento-photo img { height: 100%; object-fit: cover; }

.bento-cell:nth-child(2) { grid-column: span 4; }
.bento-cell:nth-child(3) { grid-column: span 3; }
.bento-cell:nth-child(4) { grid-column: span 3; }
.bento-cell:nth-child(5) { grid-column: span 4; }
.bento-cell:nth-child(6) { grid-column: 6 / span 7; }

.bento-accent {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}
.bento-accent p { color: var(--ink-soft); }

/* ---------- Materiály ---------- */
#materialy { position: relative; overflow: hidden; }
#materialy .container { position: relative; z-index: 1; }

.mat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.mat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface);
}
.mat-card .ic { color: var(--muted); width: 22px; height: 22px; }
.mat-card h3 { margin: 14px 0 4px; }
.mat-card p { color: var(--muted); font-size: .9rem; }

.mat-card-bio { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 24%, var(--line)); }
.mat-card-bio .ic { color: var(--accent-ink); }
.mat-card-bio p { color: var(--ink-soft); }

.mat-footnote {
  margin-top: 28px;
  display: flex; align-items: flex-start; gap: 12px;
  color: var(--muted);
  font-size: .95rem;
  max-width: 70ch;
}
.mat-footnote .ic { color: var(--accent-ink); margin-top: 3px; }
.mat-footnote p { color: inherit; }

/* ---------- Návratnost ---------- */
.roi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.roi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  margin: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.roi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.roi-card h3 { margin: 18px 0 10px; }
.roi-card p { color: var(--muted); font-size: .95rem; }

.roi-cta {
  margin-top: 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 26px 30px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}
.roi-cta p { color: var(--muted); font-size: .92rem; max-width: 58ch; }

/* ---------- Software (dark band) ---------- */
.section-dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
}
.section-dark .section-head p { color: var(--dark-muted); }
.section-dark .eyebrow { color: var(--accent-strong); }
@media (prefers-color-scheme: light) {
  .section-dark .eyebrow { color: #d8a872; }
}

.hmi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.hmi-shot { margin: 0; }
.hmi-frame {
  background: #0d0e10;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 10px;
  overflow: hidden;
}
.hmi-frame img { border-radius: var(--radius-xs); width: 100%; }
.hmi-shot figcaption { color: var(--dark-muted); }

.sw-features {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 40px;
}
.sw-features li { display: flex; gap: 16px; align-items: flex-start; }
.sw-features .ic { width: 22px; height: 22px; color: var(--accent-strong); margin-top: 3px; }
@media (prefers-color-scheme: light) {
  .sw-features .ic { color: #d8a872; }
}
.sw-features h3 { font-size: 1rem; margin-bottom: 6px; color: var(--dark-ink); }
.sw-features p { font-size: .92rem; color: var(--dark-muted); }

/* ---------- Parametry ---------- */
.specs-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 18px;
  align-items: start;
}
.spec-stack { display: grid; gap: 18px; }

.spec-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.spec-card h3 {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.spec-card dl { margin: 0; display: grid; gap: 13px; }
.spec-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
}
.spec-row dt { color: var(--muted); font-size: .93rem; }
.spec-row dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .88rem;
  font-weight: 500;
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.options { margin-top: 48px; }
.options h3 { margin-bottom: 18px; }
.options-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.options-list li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: .92rem; font-weight: 500;
}
.options-list .ic { width: 17px; height: 17px; color: var(--accent-ink); }
.options-note {
  margin-top: 16px;
  font-size: .9rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Výrobce ---------- */
.maker-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.maker-copy p { margin-top: 20px; color: var(--muted); max-width: 56ch; }
.maker-side { display: grid; gap: 18px; }
.maker-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.maker-card h3 { margin-bottom: 12px; }
.maker-card address { font-style: normal; color: var(--muted); margin-bottom: 14px; line-height: 1.55; }
.maker-eu {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: .88rem;
  color: var(--muted);
}
.maker-eu strong { color: var(--ink-soft); }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.contact-copy p { margin-top: 18px; color: var(--muted); max-width: 46ch; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--ink-soft); }
.contact-list .ic { color: var(--accent-ink); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  display: grid; gap: 22px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field-hint { font-size: .82rem; color: var(--muted); }
.field-error { font-size: .82rem; color: #b3261e; font-weight: 500; }
@media (prefers-color-scheme: dark) {
  .field-error { color: #ff8d80; }
}
.field.is-invalid input { border-color: #b3261e; }

.btn-submit { justify-self: start; }
.form-status { font-size: .92rem; color: var(--accent-ink); font-weight: 500; min-height: 1.4em; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: 36px;
}
.footer-inner {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: .95rem;
}
.footer-brand .brand-mark { width: 26px; height: 26px; border-radius: var(--radius-xs); }
.footer-brand .brand-mark .ic { width: 15px; height: 15px; }
.footer-nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.footer-nav a {
  color: var(--muted); text-decoration: none; font-size: .88rem;
}
.footer-nav a:hover { color: var(--ink); }
.footer-legal { width: 100%; font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* ---------- Reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Skrývání pro scroll-reveal se aktivuje až gate třídou .anim-ready,
     kterou JS přidá po prvním vykresleném snímku. Bez JS je vše viditelné. */
  .anim-ready .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s cubic-bezier(.16, 1, .3, 1), transform .65s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--reveal-delay, 0s);
  }
  .anim-ready .reveal.is-visible { opacity: 1; transform: none; }

  .hero-copy > * {
    animation: hero-in .7s cubic-bezier(.16, 1, .3, 1) both;
  }
  .hero-copy > *:nth-child(2) { animation-delay: .08s; }
  .hero-copy > *:nth-child(3) { animation-delay: .16s; }
  .hero-copy > *:nth-child(4) { animation-delay: .24s; }
  .hero-copy > *:nth-child(5) { animation-delay: .32s; }
  .hero-media { animation: hero-in .8s cubic-bezier(.16, 1, .3, 1) .15s both; }

  @keyframes hero-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .section { padding-block: 80px; }

  .bento-photo { grid-column: span 12; grid-row: auto; }
  .bento-photo .photo-plate { height: auto; }
  .bento-photo img { max-height: 460px; width: 100%; object-fit: cover; object-position: top; }
  .bento-cell:nth-child(2), .bento-cell:nth-child(5) { grid-column: span 6; }
  .bento-cell:nth-child(3), .bento-cell:nth-child(4) { grid-column: span 6; }
  .bento-cell:nth-child(6) { grid-column: span 12; }

  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .sw-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu.is-open { display: flex; }

  .hero { padding-block: 48px 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-media { max-width: 460px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 22px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }

  .proces-grid { grid-template-columns: 1fr; gap: 40px; }
  .proces-intro { position: static; }

  .roi-grid { grid-template-columns: 1fr; }
  .roi-cta { flex-direction: column; align-items: flex-start; }

  .specs-grid { grid-template-columns: 1fr; }
  .maker-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .hmi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding-block: 64px; }
  .container { padding-inline: 18px; }
  .nav-inner { padding-inline: 18px; }

  .hero-cta .btn, .roi-cta .btn { width: 100%; justify-content: center; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 0; }

  .step { grid-template-columns: 1fr; gap: 8px; padding-block: 24px; }

  .bento-cell:nth-child(n) { grid-column: span 12; }
  .mat-grid, .sw-features, .form-row { grid-template-columns: 1fr; }

  .contact-form { padding: 24px 20px; }
  .btn-submit { justify-self: stretch; justify-content: center; }
}
