/* ============================================================
   Industry Park — shared theme
   One template, 4 tenants, different brand colour each.

   Brand colour is driven by <html data-theme="..."> which the
   layout sets from tenants.theme_color. Palettes are defined
   below; :root is the green (Klatovy) default.
   ============================================================ */

/* ---------- PALETTES (data-theme) ---------- */
:root,
[data-theme="green"] {
  --brand: #03a470;
  --brand-dark: #027a54;
  --brand-tint: #e6f7ef;
  --brand-rgb: 3, 164, 112;
}
[data-theme="slate"] {
  --brand: #475569;
  --brand-dark: #334155;
  --brand-tint: #f1f5f9;
  --brand-rgb: 71, 85, 105;
}
[data-theme="orange"] {
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --brand-tint: #fff7ed;
  --brand-rgb: 234, 88, 12;
}
[data-theme="blue"] {
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --brand-tint: #eff6ff;
  --brand-rgb: 29, 78, 216;
}
[data-theme="purple"] {
  --brand: #7c3aed;
  --brand-dark: #6d28d9;
  --brand-tint: #f5f3ff;
  --brand-rgb: 124, 58, 237;
}
/* Rousínov — sladěno s logem: brand = barva loga #281c54.
   --brand-soft = světlejší odstín pro accenty na TMAVÉM pozadí (jinak by #281c54 zmizela). */
[data-theme="indigo"] {
  --brand: #281c54;
  --brand-dark: #1b1340;
  --brand-tint: #ecebf5;
  --brand-rgb: 40, 28, 84;
  --brand-soft: #8c83d6;
}
/* accenty na tmavých sekcích → světlejší odstín (čitelnost), jen indigo téma */
[data-theme="indigo"] .hero-tag .pulse { background: var(--brand-soft); }
[data-theme="indigo"] .hero h1 em { color: var(--brand-soft); }
[data-theme="indigo"] .stat-header .mono { color: var(--brand-soft); }
[data-theme="indigo"] .stat .num em { color: var(--brand-soft); }
[data-theme="indigo"] .gallery-section .eyebrow { color: var(--brand-soft); }
[data-theme="indigo"] .gallery-section .eyebrow::before { background: var(--brand-soft); }
[data-theme="indigo"] .footer-bottom .links a:hover { color: var(--brand-soft); }

/* ---------- THEME-WIDE TOKENS ---------- */
:root {
  --ink: #0a0a0a;
  --ink-2: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f8f8f7;
  --logo-bg: #281c54; /* pozadí „pill" kolem loga Rousínov = barva pozadí loga; per logo lze přebít v paletě */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; line-height: 1.1; font-weight: 600; }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; letter-spacing: 0.02em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ---------- NAV ---------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  padding: 24px 0;
}
.nav.scrolled { position: fixed; background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 14px 0; transition: padding .2s; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.nav.scrolled .logo { color: var(--ink); }
.logo-mark {
  width: 40px; height: 40px; border: 2px solid currentColor;
  display: grid; place-items: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px;
  position: relative; flex-shrink: 0;
}
.logo-mark::after {
  content: ''; position: absolute; right: -4px; bottom: -4px;
  width: 8px; height: 8px; background: var(--brand);
}
.logo-text { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; line-height: 1.1; }
.logo-text small { display: block; font-size: 0.72rem; opacity: 0.75; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

/* Nahrané logo v „pill" — pozadí pillu = barva pozadí loga (var --logo-bg),
   takže padding splyne s logem a vznikne čistá kapsle bez rámečku. */
.logo-pill { display: inline-flex; align-items: center; background: var(--logo-bg); border-radius: 999px; padding: 7px 20px; line-height: 0; }
.logo-pill img { height: 28px; width: auto; display: block; }
@media (max-width: 600px) { .logo-pill img { height: 24px; } .logo-pill { padding: 6px 15px; } }

.menu { display: flex; gap: 36px; align-items: center; }
.menu a { color: #fff; font-size: 0.92rem; font-weight: 500; opacity: 0.85; transition: opacity .15s; }
.menu a:hover { opacity: 1; }
.nav.scrolled .menu a { color: var(--ink); }

/* Solid nav from page load — for pages without a dark hero (404, catalog, CMS). */
body.solid-nav { padding-top: 68px; }
body.solid-nav .nav { position: fixed; background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding: 14px 0; }
body.solid-nav .nav .logo { color: var(--ink); }
body.solid-nav .nav .menu a { color: var(--ink); }
body.solid-nav .nav-toggle span { background: var(--ink); color: var(--ink); }

.btn-cta {
  background: var(--brand); color: #fff !important; opacity: 1 !important;
  padding: 10px 18px; border-radius: 999px; font-weight: 600 !important;
  transition: background .15s;
}
.btn-cta:hover { background: var(--brand-dark); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; }
.nav-toggle span { display: block; position: absolute; left: 8px; right: 8px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; color: #fff; }
.nav.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; color: #fff; }
  .menu {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    flex-direction: column; align-items: flex-start; gap: 8px;
    background: #fff; color: var(--ink); padding: 96px 28px 28px;
    transform: translateX(100%); transition: transform .25s ease;
    box-shadow: -12px 0 40px rgba(0,0,0,0.18); z-index: 25;
  }
  body.menu-open .menu { transform: translateX(0); }
  .menu a { color: var(--ink); font-size: 1.05rem; opacity: 1; padding: 8px 0; }
  .menu .btn-cta { margin-top: 8px; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 92vh; color: #fff;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.4) 40%, rgba(10,10,10,0.88) 100%),
    linear-gradient(135deg, #1f2937 0%, #0a0a0a 100%);
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.3) 0%, transparent 50%);
}
.hero-inner { position: relative; z-index: 1; padding: 140px 0 80px; width: 100%; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  padding: 8px 14px; border-radius: 999px;
  margin-bottom: 28px; backdrop-filter: blur(8px);
}
.hero-tag .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(var(--brand-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb), 0); }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700; max-width: 900px;
  margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub {
  font-size: 1.18rem; max-width: 540px; margin-bottom: 40px;
  opacity: 0.85; line-height: 1.5;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; font-weight: 600;
  font-size: 0.95rem; border: 0; cursor: pointer;
  transition: all .15s; text-decoration: none;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-meta {
  position: absolute; bottom: 0; right: 0; z-index: 2;
  background: var(--bg); color: var(--ink);
  padding: 28px 36px;
  display: flex; gap: 48px;
  border-top: 4px solid var(--brand);
}
.hero-meta-item .label { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; opacity: 0.5; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.hero-meta-item .value { font-family: 'Space Grotesk', sans-serif; font-size: 1.4rem; font-weight: 600; }
.hero-meta-item .value.accent { color: var(--brand); }
@media (max-width: 768px) { .hero-meta { position: static; padding: 24px 20px; gap: 24px; flex-wrap: wrap; } .hero { min-height: 0; } }

/* ---------- STATS ---------- */
.stats { background: var(--ink); color: #fff; }
.stats .container { padding-top: 80px; padding-bottom: 80px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { padding: 40px 24px; border-right: 1px solid rgba(255,255,255,0.1); position: relative; }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1; margin-bottom: 10px;
}
.stat .num em { color: var(--brand); font-style: normal; font-size: 0.55em; vertical-align: super; margin-left: 4px; }
.stat .label { font-size: 0.92rem; opacity: 0.65; }
.stat-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 60px; }
.stat-header h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.stat-header .mono { color: var(--brand); }
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat:nth-child(2n) { border-right: 0; }
}

/* ---------- SECTIONS ---------- */
section { padding: 100px 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px;
  margin-bottom: 60px; align-items: end;
}
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-head .desc { color: var(--muted); font-size: 1.05rem; max-width: 500px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--brand); }
@media (max-width: 768px) { .section-head { grid-template-columns: 1fr; gap: 20px; } section { padding: 64px 0; } }

/* ---------- LOCATION ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.location-text { padding-right: 60px; }
.location-text p { color: var(--muted); margin-bottom: 24px; font-size: 1.02rem; }
.location-map {
  background: linear-gradient(135deg, #e7ebee 0%, #c9d1d8 100%);
  min-height: 460px; position: relative; overflow: hidden; border-radius: 4px;
}
.location-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location-map::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.location-map.has-embed::before { display: none; }
.map-pin {
  position: absolute; top: 50%; left: 50%;
  width: 36px; height: 36px; border-radius: 50% 50% 50% 0;
  background: var(--brand); transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.map-pin::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); width: 14px; height: 14px;
  background: #fff; border-radius: 50%;
}
.map-overlay {
  position: absolute; bottom: 20px; left: 20px; right: 20px; z-index: 2;
  background: #fff; padding: 18px 22px; border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.map-overlay .addr { font-size: 0.92rem; font-weight: 500; }
.map-overlay .coords { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; color: var(--muted); }
.map-overlay a { color: var(--brand); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }

.distances {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 32px;
}
.distance { background: #fff; padding: 18px 20px; }
.distance .km { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 600; }
.distance .km em { color: var(--brand); font-style: normal; font-size: 0.7em; margin-left: 2px; }
.distance .what { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 900px) { .location-grid { grid-template-columns: 1fr; gap: 32px; } .location-text { padding-right: 0; } }

/* ---------- SPACES (prostory) ---------- */
.spaces-section { background: var(--bg-soft); }
.spaces-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.space-card {
  background: #fff; border: 1px solid var(--line);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.space-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.space-img { aspect-ratio: 4/3; overflow: hidden; position: relative; background: linear-gradient(135deg, #e7ebee 0%, #c9d1d8 100%); }
.space-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.space-card:hover .space-img img { transform: scale(1.04); }
.space-status {
  position: absolute; top: 14px; left: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem;
  padding: 5px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 500;
  background: #fff;
}
.space-status.free { color: var(--brand); }
.space-status.free::before { content: '● '; }
.space-status.taken { color: #6b7280; }
.space-status.reserved { color: #d97706; }
.space-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.space-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.space-body .type { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.space-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--line);
  margin-top: auto; font-size: 0.85rem;
}
.space-specs .row { display: flex; justify-content: space-between; gap: 8px; }
.space-specs .row span:first-child { color: var(--muted); }
.space-specs .row span:last-child { font-weight: 500; font-family: 'JetBrains Mono', monospace; text-align: right; }
.space-link {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 16px; font-weight: 600; font-size: 0.92rem;
  color: var(--brand); transition: gap .15s;
}
.space-card:hover .space-link { gap: 12px; }
@media (max-width: 900px) { .spaces-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .spaces-grid { grid-template-columns: 1fr; } }

/* ---------- WHY / FEATURES ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.why-item { background: #fff; padding: 36px 28px; }
.why-icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--brand-tint); color: var(--brand);
  border-radius: 12px; margin-bottom: 20px;
}
.why-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.why-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.why-item p { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- GALLERY ---------- */
.gallery-section { background: var(--ink); color: #fff; }
.gallery-section .section-head h2 { color: #fff; }
.gallery-section .section-head .desc { color: rgba(255,255,255,0.6); }
.gallery-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px; gap: 12px;
}
.gallery-item { overflow: hidden; cursor: pointer; position: relative; background: #1f2937; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.large { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-more {
  display: grid; place-items: center; background: var(--brand); color: #fff;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600;
  cursor: pointer; transition: background .2s;
}
.gallery-more:hover { background: var(--brand-dark); }
.gallery-more .count { font-size: 2.4rem; line-height: 1; }
.gallery-more .lbl { font-size: 0.85rem; opacity: 0.85; margin-top: 6px; }
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
  .gallery-item.large, .gallery-item.wide { grid-row: auto; grid-column: auto; }
}

/* ------- LIGHTBOX ------- */
.ip-lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.93); backdrop-filter: blur(4px);
}
.ip-lightbox.open { display: flex; animation: ipLbFade .18s ease; }
@keyframes ipLbFade { from { opacity: 0; } to { opacity: 1; } }
.ip-lb-img {
  max-width: 90vw; max-height: 88vh; object-fit: contain;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6); border-radius: 2px;
}
.ip-lb-close, .ip-lb-prev, .ip-lb-next {
  position: absolute; background: none; border: 0; color: #fff;
  cursor: pointer; opacity: 0.75; transition: opacity .15s, transform .15s;
  line-height: 1; font-family: inherit;
}
.ip-lb-close:hover, .ip-lb-prev:hover, .ip-lb-next:hover { opacity: 1; }
.ip-lb-close { top: 18px; right: 24px; font-size: 42px; }
.ip-lb-prev, .ip-lb-next { top: 50%; transform: translateY(-50%); font-size: 60px; padding: 0 22px; }
.ip-lb-prev { left: 6px; } .ip-lb-next { right: 6px; }
.ip-lb-prev:hover { transform: translateY(-50%) translateX(-3px); }
.ip-lb-next:hover { transform: translateY(-50%) translateX(3px); }
.ip-lb-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-family: 'JetBrains Mono', monospace; font-size: 0.82rem;
}
@media (max-width: 600px) {
  .ip-lb-prev, .ip-lb-next { font-size: 38px; padding: 0 10px; }
  .ip-lb-close { font-size: 34px; top: 12px; right: 16px; }
}

/* ---------- CONTACT ---------- */
.contact-section { background: var(--bg-soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.contact-info h3 { font-size: 1.3rem; margin-bottom: 24px; }
.contact-block { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-block:last-child { border-bottom: 0; }
.contact-block .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.contact-block .ico svg { width: 20px; height: 20px; stroke-width: 1.5; }
.contact-block .what { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.contact-block .val { font-size: 1.05rem; font-weight: 500; }
.contact-block .val a:hover { color: var(--brand); }

.contact-form { background: #fff; padding: 40px; border-radius: 4px; border: 1px solid var(--line); }
.contact-form h3 { font-size: 1.3rem; margin-bottom: 6px; }
.contact-form > p { color: var(--muted); margin-bottom: 28px; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.single { grid-template-columns: 1fr; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 4px; background: #fff; font: inherit; font-size: 0.95rem;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); }
.field-checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 18px; }
.field-checkbox input { width: auto; margin-top: 3px; }
.field-checkbox label { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.field-checkbox a { color: var(--brand); text-decoration: underline; }
.contact-form .btn-primary { width: 100%; justify-content: center; margin-top: 8px; }
.form-errors { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 4px; padding: 12px 14px; margin-bottom: 16px; font-size: 0.9rem; }
.form-errors ul { margin: 0; padding-left: 18px; }
.contact-success { text-align: center; padding: 32px 0; }
.contact-success .check { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.contact-success .check svg { width: 28px; height: 28px; stroke-width: 2; }
.contact-success h3 { margin-bottom: 6px; }
.contact-success p { color: var(--muted); }
.hidden { display: none !important; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- FOOTER ---------- */
footer { background: var(--ink); color: #fff; padding: 80px 0 32px; }
.footer-network { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 50px; margin-bottom: 50px; }
.footer-network h4 {
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.5; margin-bottom: 24px; font-weight: 500;
}
.network-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.network-card {
  padding: 22px; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px; display: flex; flex-direction: column; gap: 4px;
  transition: all .15s; position: relative;
}
.network-card:hover { border-color: var(--brand); background: rgba(255,255,255,0.02); }
.network-card.current { background: var(--brand); border-color: var(--brand); }
.network-card .city { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.1rem; }
.network-card .url { font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; opacity: 0.6; }
.network-card.current .url { opacity: 0.85; }
.network-card .arr { position: absolute; top: 20px; right: 20px; opacity: 0.4; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 0.85rem; opacity: 0.6; }
.footer-bottom .links { display: flex; gap: 24px; font-size: 0.85rem; opacity: 0.6; }
.footer-bottom .links a:hover { opacity: 1; color: var(--brand); }
@media (max-width: 900px) { .network-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .network-grid { grid-template-columns: 1fr; } }

/* ---------- TEXT / CTA / IMAGE blocks ---------- */
.block-text { padding: 80px 0; }
.block-text .text-body { max-width: 760px; font-size: 1.05rem; color: var(--ink-2); }
.block-text .text-body.center { margin: 0 auto; text-align: center; }
.block-text h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 20px; }
.block-text p { margin-bottom: 16px; }
.block-cta { background: var(--ink); color: #fff; text-align: center; padding: 90px 0; }
.block-cta.brand { background: var(--brand); }
.block-cta h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; }
.block-cta p { opacity: 0.8; max-width: 560px; margin: 0 auto 32px; font-size: 1.1rem; }
.block-image { padding: 60px 0; }
.block-image img { width: 100%; border-radius: 4px; }

/* ---------- CMS PAGE ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 160px 0 70px; }
.page-hero .eyebrow { color: var(--brand); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 900px; }
.page-body { padding: 70px 0 90px; }
.page-body .prose { max-width: 760px; font-size: 1.05rem; color: var(--ink-2); }
.page-body .prose h2 { font-size: 1.8rem; margin: 36px 0 14px; }
.page-body .prose h3 { font-size: 1.3rem; margin: 28px 0 10px; }
.page-body .prose p { margin-bottom: 16px; }
.page-body .prose ul, .page-body .prose ol { margin: 0 0 16px 22px; }
.page-body .prose a { color: var(--brand); text-decoration: underline; }
.page-body .prose img { border-radius: 4px; margin: 24px 0; }

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs { font-size: 0.85rem; color: var(--muted); padding: 20px 0; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

/* ---------- CATALOG (Category / Product) ---------- */
.catalog-head { padding: 56px 0 50px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.catalog-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.catalog-head p { color: var(--muted); margin-top: 12px; max-width: 600px; }
.catalog-body { padding: 60px 0 90px; }
.product-detail { padding: 56px 0 90px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.product-gallery img { width: 100%; border-radius: 4px; background: var(--bg-soft); }
.product-info h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 12px; }
.product-info .product-type { color: var(--muted); margin-bottom: 24px; }
.product-info .product-desc { color: var(--ink-2); margin-bottom: 28px; }
.product-info .product-specs { border-top: 1px solid var(--line); }
.product-info .product-specs .row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.product-info .product-specs .row span:first-child { color: var(--muted); }
.product-info .product-specs .row span:last-child { font-weight: 500; font-family: 'JetBrains Mono', monospace; }
@media (max-width: 900px) { .product-detail-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- PRODUKTOVÉ KARTY (haly) + DETAIL ---------- */
.space-img { display: block; }
.space-body h3 a { color: inherit; }
.space-body h3 a:hover { color: var(--brand); }
.space-price { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.05rem; color: var(--brand); margin: 0 0 14px; }

.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.product-gallery-main { border-radius: 4px; overflow: hidden; cursor: zoom-in; background: var(--bg-soft); }
.product-gallery-main img { width: 100%; height: auto; display: block; }
.product-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.product-gallery-thumb { border-radius: 3px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--bg-soft); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-gallery-thumb:hover img { transform: scale(1.05); }

.product-info .status-inline { position: static; display: inline-flex; align-items: center; margin-bottom: 14px; }
.product-price { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.5rem; color: var(--brand); margin: 6px 0 22px; }
.product-desc { color: var(--ink-2); line-height: 1.7; }
.product-desc p { margin-bottom: 14px; }
.product-desc ul, .product-desc ol { margin: 0 0 14px 20px; }

/* ---------- ERROR ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-page .code { font-family: 'Space Grotesk', sans-serif; font-size: clamp(5rem, 18vw, 12rem); font-weight: 700; line-height: 1; color: var(--brand); }
.error-page h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 8px 0 16px; }
.error-page p { color: var(--muted); margin-bottom: 28px; }

/* ---------- FLASH ---------- */
.flash { position: fixed; top: 100px; right: 20px; z-index: 1000; padding: 12px 20px; background: #fff; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); border-left: 4px solid var(--brand); }
.flash-error { border-left-color: #dc2626; }
.flash-success { border-left-color: var(--brand); }
