/* ===== Tokeny — LazyVim / tokyonight midnight ===== */
:root {
  --bg: #0f1117;            /* midnight pozadí */
  --bg-raised: #161b29;     /* vyvýšený panel (bg_highlight) */
  --bg-hover: #1f2639;
  --text: #c8d3f5;          /* hlavní text (catppuccin moon fg) */
  --text-dim: #737aa2;      /* tlumený text */
  --accent: #7aa2f7;        /* lazy blue */
  --accent-2: #bb9af7;      /* purple — gradient dvojice */
  --teal: #4fd6be;
  --green: #9ece6a;
  --orange: #ff9e64;
  --red: #f7768e;
  --accent-soft: rgba(122, 162, 247, 0.14);
  --line: rgba(115, 122, 162, 0.24);
  --ok: var(--green);
  --err: var(--red);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 10px;
  --gutter: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  :root { scroll-behavior: smooth; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
main { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 96px 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }
h2.section-title { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 16px; }
h2.section-title::before {
  content: '// ';
  font-family: var(--font-mono);
  color: var(--teal);
  font-weight: 700;
}

/* ===== Hlavička — statusline ===== */
.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(15, 17, 23, 0.8);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  max-width: 1080px; margin: 0 auto; padding: 10px var(--gutter);
  display: flex; align-items: center; gap: 24px;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.logo { display: inline-flex; align-items: center; }
.logo-img {
  display: block;
  filter: invert(1);           /* černá linka originálu → bílá na tmavém tématu, pozadí průhledné */
  opacity: 0.92;
}
.logo-img-footer { opacity: 0.75; }
.site-nav a { color: var(--text-dim); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--text); }
.nav-cta { margin-left: auto; color: var(--text) !important; border: 1px solid var(--line); padding: 6px 16px; border-radius: 999px; }
.nav-cta::before { content: '❯ '; color: var(--teal); }
.nav-cta:hover { border-color: var(--teal); color: var(--teal) !important; }
.nav-status { color: var(--text-dim); font-size: 0.75rem; opacity: 0.7; }
@media (max-width: 760px) { .nav-status { display: none; } }

/* ===== Hero ===== */
.hero {
  min-height: 92vh; display: grid; place-items: center;
  position: relative; overflow: hidden; padding: 64px 0;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: blur(1.2px) brightness(0.85) saturate(1.1); /* jemný blur pozadí — text vystoupí, vrstvy zůstanou čitelné */
}
.hero-content {
  position: relative; max-width: 560px; padding: 44px 40px;
  text-align: left;
  margin-left: 4vw;
  background: rgba(12, 15, 23, 0.88);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(122, 162, 247, 0.28);
  border-radius: 18px;
  box-shadow:
    0 0 60px rgba(15, 20, 35, 0.9),
    0 0 120px rgba(122, 162, 247, 0.08);
}
.hero h1 { text-shadow: 0 2px 30px rgba(10, 14, 23, 0.8); }
@media (max-width: 980px) {
  .hero { place-items: center; }
  .hero-content { margin-left: 0; text-align: center; max-width: 720px; }
}
.hero-eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 0.82rem; margin-bottom: 24px;
}
.hero-eyebrow::before { content: '❯ '; color: var(--teal); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 20px; }
.hero-gradient {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
/* CTA řádky uvnitř sekcí — víc vzduchu od úvodního textu */
section .hero-ctas { margin-top: 32px; }
section > .calc-note { margin-bottom: 8px; }

/* ===== Tlačítka — prompt styl ===== */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; font-size: 0.95rem; font-family: var(--font-mono);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn::before { content: '❯ '; opacity: 0.85; }
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--accent); color: #0f1117;
  box-shadow: 0 6px 24px rgba(122, 162, 247, 0.3);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.2s ease-in-out infinite;
}
@keyframes btn-shine {
  0%, 55% { left: -80%; }
  85%, 100% { left: 130%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after { animation: none; }
}
.btn-primary::before { color: var(--accent-2); }
.btn-primary:hover { box-shadow: 0 10px 32px rgba(122, 162, 247, 0.4); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost::before { color: var(--teal); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

/* ===== Služby ===== */
.service-grid {
  display: grid; gap: 20px; margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
  position: relative;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--teal));
  opacity: 0; transition: opacity 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px); border-color: var(--accent);
  background: var(--bg-hover);
  box-shadow: 0 12px 40px rgba(122, 162, 247, 0.12);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.service-card:nth-child(2) .service-icon { color: var(--teal); background: rgba(79, 214, 190, 0.12); }
.service-card:nth-child(3) .service-icon { color: var(--accent-2); background: rgba(187, 154, 247, 0.12); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ===== Kalkulačka — plovoucí okno jako ve vimu ===== */
.calc-note { color: var(--text-dim); max-width: 640px; }
.calc-panel {
  position: relative;
  margin-top: 36px; background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 28px;
  box-shadow: 0 0 80px rgba(79, 214, 190, 0.05), 0 20px 60px rgba(0, 0, 0, 0.35);
}
.calc-panel::before {
  content: '┤ 3d-print-calc ├';
  position: absolute; top: -0.85em; left: 18px;
  background: var(--bg); color: var(--teal);
  font-family: var(--font-mono); font-size: 0.78rem;
  padding: 0 8px;
}
.calc-modes {
  display: inline-flex; gap: 4px; padding: 4px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  margin-bottom: 24px;
}
.calc-mode {
  padding: 9px 22px; border: none; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--text-dim); font-weight: 500;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.calc-mode.is-active { background: var(--accent); color: #0f1117; }
.calc-drop {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 40px 20px; text-align: center; color: var(--text-dim);
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: var(--font-mono); font-size: 0.9rem;
}
.calc-drop.is-dragover { border-color: var(--teal); background: rgba(79, 214, 190, 0.1); }
.calc-drop-hint { font-size: 0.78rem; margin-top: 14px; opacity: 0.8; }
.calc-drop-loaded {
  display: flex; align-items: center; gap: 18px;
  text-align: left;
}
.calc-drop-loaded[hidden] { display: none; }
#calc-preview {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  flex-shrink: 0;
}
.calc-loaded-info {
  display: grid; gap: 4px; font-family: var(--font-mono);
  font-size: 0.82rem; color: var(--text-dim);
  position: relative; padding-right: 36px; flex: 1; min-width: 0;
}
.calc-loaded-check { color: var(--ok); font-weight: 600; }
.calc-filename {
  color: var(--text); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.calc-tris { font-size: 0.75rem; opacity: 0.8; }
.calc-clear {
  position: absolute; right: 0; top: 0;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--line); border-radius: 50%;
  width: 28px; height: 28px; cursor: pointer; font-size: 1rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.calc-clear:hover { color: var(--err); border-color: var(--err); }
.calc-manual { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.calc-params {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line);
}
.calc-field { display: flex; flex-direction: column; gap: 6px; }
.calc-field label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }
.calc-field input, .calc-field select, .calc-field textarea {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: 11px 14px; font-family: var(--font-mono); font-size: 0.9rem;
}
.calc-field input:focus, .calc-field select:focus, .calc-field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.calc-error {
  margin-top: 18px; padding: 12px 16px; border-radius: 8px;
  background: rgba(247, 118, 142, 0.1); color: var(--err);
  border: 1px solid rgba(247, 118, 142, 0.35);
  font-family: var(--font-mono); font-size: 0.88rem;
}
.calc-error::before { content: '✖ '; }
.calc-result {
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line);
  display: grid; gap: 20px;
}
.calc-price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.calc-price-label { color: var(--text-dim); font-weight: 600; }
.calc-price-value {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.8rem); color: var(--accent);
}
.calc-breakdown {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px;
}
.calc-breakdown div { background: var(--bg); border-radius: 8px; padding: 12px 16px; }
.calc-breakdown dt {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.calc-breakdown dt::before { content: '› '; color: var(--teal); }
.calc-breakdown dd { font-family: var(--font-mono); font-weight: 600; margin-top: 2px; }

/* ===== Virtuální tiskárna (Pronterface styl) ===== */
.printer-panel {
  margin-top: 36px; background: var(--bg-raised);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.printer-status {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.85rem;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.pp-state { color: var(--text-dim); }
.pp-state.is-on { color: var(--ok); }
.pp-temp { color: var(--text-dim); }
.pp-temp.is-hot { color: var(--orange); }
.pp-demo {
  margin-left: auto; font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--text-dim); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 4px;
}
.printer-body { display: grid; grid-template-columns: auto 1fr; gap: 20px; }
@media (max-width: 640px) { .printer-body { grid-template-columns: 1fr; } }

.pp-controls { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.pp-btn {
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 14px; cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  min-width: 52px;
}
.pp-btn:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.pp-btn:active:not(:disabled) { transform: scale(0.95); }
.pp-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.pp-btn-connect { background: var(--accent); color: #0f1117; border-color: var(--accent); min-width: 110px; }
.pp-btn-connect:hover:not(:disabled) { background: #8fb3ff; color: #0f1117; }
.pp-btn-home { color: var(--teal); }
.pp-btn-heat { min-width: 110px; color: var(--orange); border-color: rgba(255, 158, 100, 0.35); }
.pp-btn-heat:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.pp-pad {
  display: grid; grid-template-columns: repeat(3, 52px); gap: 6px;
  justify-content: center;
}
.pp-pad .pp-btn { padding: 9px 0; }

.pp-console {
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.7;
  color: var(--text-dim); padding: 14px 16px;
  height: 240px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.pp-console::before {
  content: '┤ gcode-console ├';
  color: var(--teal); display: block; margin-bottom: 6px; font-size: 0.72rem;
}
.pp-line { white-space: pre-wrap; }
.pp-gcode { color: var(--accent); }
.pp-ok { color: var(--text-dim); opacity: 0.7; }
.pp-info { color: var(--green); }
.pp-err { color: var(--err); font-weight: 700; }
.pp-btn-danger { color: var(--err); border-color: rgba(247, 118, 142, 0.35); }
.pp-btn-danger:hover:not(:disabled) { border-color: var(--err); color: var(--err); }
.pp-btn-demo {
  min-width: 130px; color: var(--green); border-color: rgba(158, 206, 106, 0.35);
}
.pp-btn-demo:hover:not(:disabled) { border-color: var(--green); color: var(--green); }

/* ===== Wiki 3D tisku ===== */
.wiki-toc {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.wiki-toc a {
  color: var(--text-dim); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.wiki-toc a::before { content: '❯ '; color: var(--teal); }
.wiki-toc a:hover { border-color: var(--teal); color: var(--teal); }

.wiki-section { padding: 56px 0; }
.wiki-card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 28px; margin-top: 20px;
  max-width: 760px;
}
.wiki-card h3 { font-size: 1.15rem; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.wiki-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 10px; }
.wiki-card p strong { color: var(--text); }
.wiki-tag {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--accent-soft); color: var(--accent);
  padding: 3px 10px; border-radius: 6px;
}
.wiki-tag-purple { background: rgba(187, 154, 247, 0.14); color: var(--accent-2); }
.wiki-tag-orange { background: rgba(255, 158, 100, 0.14); color: var(--orange); }
.wiki-verdict {
  font-family: var(--font-mono); font-size: 0.85rem !important;
  color: var(--teal) !important;
  border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 14px;
}
.wiki-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.wiki-table th, .wiki-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.wiki-table th { color: var(--text-dim); font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.wiki-table tr:last-child td { border-bottom: none; }

.gcode-demo {
  margin-top: 28px; display: grid; gap: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  max-width: 900px;
}
@media (max-width: 760px) { .gcode-demo { grid-template-columns: 1fr; } }
.gcode-window {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; overflow-x: auto; position: relative;
}
.gcode-window::before {
  content: '┤ print.gcode ├';
  position: absolute; top: -0.85em; left: 14px;
  background: var(--bg); color: var(--teal);
  font-family: var(--font-mono); font-size: 0.72rem; padding: 0 8px;
}
.gcode-window pre { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.75; color: var(--text); }
.gcode-legend { font-size: 0.9rem; }
.gcode-legend dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin-top: 10px; }
.gcode-legend dt { font-family: var(--font-mono); color: var(--accent); white-space: nowrap; }
.gcode-legend dd { color: var(--text-dim); margin: 0; }
.gcode-legend code, .wiki-card code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px;
}

/* ===== Vybavení — technické karty strojů ===== */
.machine-card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; margin-top: 20px;
  max-width: 820px;
}
.machine-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px;
}
.machine-head h2 { font-size: 1.4rem; }
.machine-role {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--teal); border: 1px solid rgba(79, 214, 190, 0.35);
  padding: 3px 10px; border-radius: 999px;
}
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th, .spec-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em;
  width: 30%; white-space: nowrap;
}
.spec-table td { color: var(--text); }
.spec-table td.mono { font-family: var(--font-mono); color: var(--accent); }
.machine-desc h3 {
  font-size: 1rem; margin: 18px 0 8px;
  font-family: var(--font-mono); color: var(--teal);
}
.machine-desc h3::before { content: '› '; }
.machine-desc p, .machine-desc li { color: var(--text-dim); font-size: 0.93rem; }
.machine-desc ul { margin: 8px 0 0 20px; }
.machine-desc li { margin-bottom: 6px; }
.machine-desc strong { color: var(--text); }
.machine-diagram {
  margin-top: 18px;
  display: grid; place-items: center;
  background: #121824; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px;
}
.machine-diagram img { width: 100%; max-width: 220px; height: auto; display: block; }
@media (min-width: 860px) {
  .machine-card { display: grid; grid-template-columns: 1fr 250px; gap: 20px; align-items: start; }
  .machine-card > .machine-head { grid-column: 1 / -1; }
  .machine-card > .machine-diagram { grid-column: 2; grid-row: 2 / 8; margin-top: 0; }
  .machine-card > .spec-table { grid-column: 1; grid-row: 2; }
  .machine-card > .machine-desc { grid-column: 1 / -1; grid-row: 8; } /* popis přes celou šířku */
}

/* ===== O nás ===== */
.about-grid {
  display: grid; gap: 20px; margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.about-card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px;
}
.about-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.about-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 10px; }
.about-card p:last-child { margin-bottom: 0; }
.about-card strong { color: var(--text); }
.about-note {
  font-size: 0.85rem !important;
  border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 14px;
}

/* ===== Kontakt ===== */
.contact-sub { color: var(--text-dim); margin-bottom: 32px; }
.contact-form { max-width: 560px; display: grid; gap: 16px; }
.contact-form .btn { margin-top: 10px; justify-self: start; }
.contact-status { color: var(--text-dim); min-height: 1.4em; font-family: var(--font-mono); font-size: 0.88rem; }
.contact-status.is-ok { color: var(--ok); }
.contact-status.is-err { color: var(--err); }

/* ===== Paticka — prázdné řádky jako ve vimu ===== */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line); margin-top: 48px;
  padding: 40px var(--gutter); text-align: center; color: var(--text-dim);
  display: grid; gap: 20px;
}
.site-footer::before {
  content: '~\A ~\A ~\A ~';
  white-space: pre-line; text-align: left;
  position: absolute; left: 10px; top: 14px;
  font-family: var(--font-mono); font-size: 0.8rem; opacity: 0.5;
}
.site-footer p { font-size: 0.92rem; }
.vim-hint { font-family: var(--font-mono); font-size: 0.8rem; opacity: 0.75; }
.vim-hint kbd {
  font-family: var(--font-mono); font-size: 0.75rem;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; color: var(--teal);
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .calc-panel { padding: 24px 18px 20px; }
}

/* ===== Stránka Obrázky ===== */
.page-head { padding-top: 72px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 14px; }
.page-head h1::before {
  content: '❯ ';
  color: var(--teal);
  font-family: var(--font-mono);
}
.link-accent { color: var(--accent); }
.link-accent:hover { color: var(--accent-2); }

.gallery-grid {
  margin-top: 36px;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gallery-card {
  position: relative; overflow: hidden;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0; cursor: zoom-in;
  aspect-ratio: 4 / 3; display: block; width: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.gallery-card:hover {
  transform: translateY(-4px); border-color: var(--teal);
  box-shadow: 0 12px 36px rgba(79, 214, 190, 0.12);
}
.gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption {
  position: absolute; inset: auto 0 0 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(10, 13, 20, 0.9));
  color: var(--text); font-family: var(--font-mono); font-size: 0.85rem;
  text-align: left;
}

.fb-panel {
  margin-top: 24px;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  display: flex; justify-content: center;
  max-width: 560px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.fb-panel::before { content: none; }
.fb-panel iframe { border-radius: 8px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 10, 16, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center; padding: 32px;
}
.lightbox-figure { max-width: min(900px, 92vw); display: grid; gap: 12px; }
.lightbox-figure img {
  max-width: 100%; max-height: 78vh;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.lightbox figcaption {
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-dim);
  display: grid; gap: 2px;
}
.lightbox figcaption strong { color: var(--text); font-family: var(--font-mono); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: var(--bg-raised); color: var(--text);
  border: 1px solid var(--line); border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.4rem; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lightbox-close:hover { border-color: var(--err); color: var(--err); }

/* ===== Reveal animace (GSAP scrolle) ===== */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
