:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #1e293b;
  --text-muted: #64748b;
  
  --logo-blue: #164ea2;
  --logo-blue-hover: #0e3775;
  --logo-red: #981b1e;
  --logo-red-hover: #751214;
  
  --code-font: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
  --sans-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans-font);
  line-height: 1.6;
  padding: 2.5rem 1.25rem;
}

.container {
  max-width: 880px;
  margin: 0 auto;
}

/* Hlavička - desktop */
header {
  border-bottom: 2px solid var(--border);
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  position: relative;
}

.brand-logo-wrap {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-logo-wrap img {
  height: 56px;
  width: auto;
  display: block;
}

.header-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
}

.tagline {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-family: var(--code-font);
  font-size: 0.92rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--logo-blue);
  border-bottom-color: var(--logo-blue);
  font-weight: 600;
}

/* Skrytí checkboxu a tlačítka na desktopu */
.menu-checkbox,
.menu-btn {
  display: none;
}

/* Mobilní zobrazení: 1 řádek (Logo + Claim + Hamburger vpravo) */
@media (max-width: 720px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .brand-logo-wrap {
    order: 1;
    flex-shrink: 0;
  }

  .brand-logo-wrap img {
    height: 40px;
  }

  .header-content {
    display: contents;
  }

  .tagline {
    order: 2;
    font-size: 0.82rem;
    line-height: 1.2;
    flex: 1;
    padding: 0 0.5rem;
  }

  .menu-btn {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--logo-blue);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    margin: 0;
    padding: 0;
    user-select: none;
    flex-shrink: 0;
  }

  .menu-btn::after {
    content: "☰";
  }

  nav {
    order: 4;
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
  }

  nav a {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
  }

  nav a:last-child {
    border-bottom: none;
  }

  .menu-checkbox:checked ~ .header-content nav {
    display: flex;
  }

  .menu-checkbox:checked ~ .header-content .menu-btn::after {
    content: "✕";
    font-size: 1.1rem;
  }
}

/* Typografie */
h1 {
  font-family: var(--code-font);
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

h2 {
  font-family: var(--code-font);
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h2::before {
  content: ">";
  color: var(--text-muted);
  font-weight: bold;
}

h2.blue-accent {
  color: var(--logo-blue);
}

h2.red-accent {
  color: var(--logo-red);
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

ul {
  list-style: none;
  margin: 0.75rem 0 1.5rem 0;
}

li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.45rem;
  color: var(--text);
}

li::before {
  content: "•";
  color: var(--logo-blue);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Karty */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.35rem;
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--logo-blue);
  box-shadow: 0 4px 12px rgba(22, 78, 162, 0.08);
  transform: translateY(-2px);
}

.card h3 {
  font-family: var(--code-font);
  font-size: 1.1rem;
  color: var(--logo-blue);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* Informační rámečky */
.console-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--logo-blue);
  padding: 1.25rem;
  font-family: var(--code-font);
  font-size: 0.95rem;
  border-radius: 4px;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.console-box.box-red {
  border-left-color: var(--logo-red);
}

.console-box a {
  color: var(--logo-blue);
  text-decoration: none;
}

.console-box a:hover {
  text-decoration: underline;
}

/* Tabulka ceníku */
.table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
}

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

th, td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--surface-alt);
  font-family: var(--code-font);
  color: var(--logo-blue);
}

td {
  background: #ffffff;
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

/* Tlačítka a badge pro IP */
.action-box {
  text-align: center;
  margin: 2.25rem 0;
}

.btn-primary {
  display: inline-block;
  background-color: var(--logo-blue);
  color: #ffffff;
  font-family: var(--code-font);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 2.25rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(22, 78, 162, 0.25);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--logo-blue-hover);
  box-shadow: 0 6px 16px rgba(22, 78, 162, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  display: inline-block;
  background-color: var(--logo-red);
  color: #ffffff;
  font-family: var(--code-font);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 2.25rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(152, 27, 30, 0.25);
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--logo-red-hover);
  box-shadow: 0 6px 16px rgba(152, 27, 30, 0.35);
  transform: translateY(-2px);
  color: #ffffff;
}

.ip-badge {
  display: inline-block;
  cursor: default;
  user-select: all;
  letter-spacing: 0.5px;
}

/* Zápatí */
footer {
  border-top: 2px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 3.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-family: var(--code-font);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer a {
  color: var(--logo-blue);
  text-decoration: none;
}