:root {
  --bg: #0b1020;
  --bg-alt: #0f1630;
  --card: #131b38;
  --border: #1f2a52;
  --text: #e6e9f5;
  --muted: #9aa3c4;
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --grad: linear-gradient(135deg, var(--cyan), var(--indigo));
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
h1, h2, h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 16, 32, .8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { height: 44px; display: block; color: var(--text); }
.menu { display: flex; align-items: center; gap: 28px; font-weight: 500; }
.menu a:not(.btn):hover { color: var(--cyan); }

/* buttons */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 999px;
  background: var(--grad); color: #fff; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(99, 102, 241, .35); }
.btn-small { padding: 9px 18px; }
.btn-ghost { background: transparent; border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: none; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 140px 0 120px; }
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  opacity: .5;
}
.hero::after {
  content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  top: -200px; right: -150px; background: var(--grad); filter: blur(140px); opacity: .25;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.eyebrow { color: var(--cyan); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; font-size: .85rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); margin-bottom: 24px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin-bottom: 36px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }
.section-lead { color: var(--muted); max-width: 600px; margin-bottom: 48px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--indigo); transform: translateY(-4px); }
.card h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.card p { color: var(--muted); }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, .15), rgba(99, 102, 241, .15));
}
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--cyan); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 40px; }
.steps li { border-left: 2px solid var(--border); padding: 8px 0 8px 22px; }
.steps span { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.8rem; }
.steps span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { margin: 6px 0; }
.steps p { color: var(--muted); }

.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.contact .section-lead { margin-bottom: 0; }
.contact-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 10px;
}
.contact-line { font-size: 1.15rem; }
a.contact-line { font-weight: 600; color: var(--cyan); }

.footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* aplikace: e-shop, formuláře, administrace */
.small { font-size: .9rem; }
.link { color: var(--cyan); }
.link:hover { text-decoration: underline; }
.narrow { max-width: 560px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 12px; }
.sub { font-size: 1.4rem; margin: 48px 0 16px; }
.inline { display: inline; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
button.btn-ghost { border: 1px solid var(--border); color: var(--text); }

.panel {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; margin: 16px 0;
}
.form { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .95rem; }
.form h3 { margin-bottom: 4px; }
input, textarea, select {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); }
.form .btn { align-self: flex-start; }

.flash { margin-top: 20px; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); }
.flash-success { border-color: #10b981; }
.flash-error { border-color: #ef4444; }
.flash-info { border-color: var(--cyan); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: .9rem; }
.chip:hover { border-color: var(--cyan); }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; }

.badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  color: var(--cyan); background: rgba(34, 211, 238, .12);
}
.product { display: flex; flex-direction: column; }
.product h3 { margin-top: 14px; }
.product p { flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; background: var(--bg-alt); }
.table tr:last-child td { border-bottom: 0; }
.table select { width: auto; padding: 6px 10px; }

.status { font-size: .85rem; font-weight: 600; }
.status-nova { color: var(--cyan); }
.status-zpracovava_se { color: #f59e0b; }
.status-odeslana { color: #10b981; }
.status-uzavrena { color: var(--muted); }

.admin-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.admin-grid .panel { margin: 0; }

@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .menu { gap: 14px; font-size: .9rem; }
  .menu .hide-sm { display: none; }
  .logo { height: 36px; }
  .hero { padding: 90px 0 80px; }
  .section { padding: 64px 0; }
  .contact { grid-template-columns: 1fr; }
}
