/* =========================================================
   RoboSumo.net – styl (vychází z původního designu)
   černé pozadí · zelená #044f0c · červená #CA0000 · písmo robo
   ========================================================= */
@font-face {
  font-family: robo;
  src: url("robo.ttf");
  font-display: swap;
}
:root {
  --bg: #000000;
  --ink: #ffffff;
  --muted: #b5b5b5;
  --green: #044f0c;
  --red: #CA0000;
  --gold: #e3a92b;      /* barva kót z obrázku kruh.jpg */
  --panel: #0d0d0d;
  --line: #2a2a2a;
  --width: 1000px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: robo, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: #fff; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; border: 0; }

.page { width: 100%; max-width: var(--width); margin: 0 auto; }

/* ---------- Hlavička: obrázek | logo | obrázek ---------- */
.header {
  display: grid;
  grid-template-columns: 350px 300px 350px;
  align-items: center;
}
.header .left  { justify-self: start; margin-left: 20px; }
.header .logo  { justify-self: center; margin: 20px 0; }
.header .right { justify-self: end; margin-right: 20px; }

/* ---------- Menu: zelená tlačítka, červená po najetí ---------- */
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  padding: 10px 20px 0;
}
.menu a {
  width: 225px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  padding: 10px 20px;
  text-align: center;
}
.menu a:hover, .menu a.active { background: var(--red); color: #fff; }

/* ---------- Obsah ---------- */
.content { margin: 20px; }
h1, h2, h3 { font-weight: normal; line-height: 1.2; }
h1 { font-size: 34px; margin: 10px 0 14px; }
h2 { font-size: 26px; margin: 34px 0 12px; color: #fff; border-left: 8px solid var(--green); padding-left: 12px; }
h3 { font-size: 19px; margin: 22px 0 6px; }
.lead { font-size: 18px; color: #ddd; }
.small { font-size: 13px; color: var(--muted); }
ul, ol { padding-left: 24px; }
li { margin-bottom: 4px; }

/* úvod */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }

/* základní parametry */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0; }
.stat { background: var(--green); padding: 14px 10px; text-align: center; }
.stat b { display: block; font-size: 26px; font-weight: normal; }
.stat span { font-size: 13px; color: #d6e7d8; }

/* karty */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; margin: 16px 0; }
.card { background: var(--panel); border: 2px solid var(--green); padding: 16px 18px; }
.card h3 { margin-top: 4px; }
.card a.more { color: var(--red); text-decoration: none; }
.card a.more:hover { color: #fff; }
.badge { display: inline-block; background: var(--red); font-size: 12px; padding: 1px 8px; }

/* obrázky */
figure.photo { margin: 18px 0; }
figure.photo img { width: 100%; display: block; }
figure.photo figcaption { font-family: Arial, sans-serif; font-size: 12px; color: var(--muted); margin-top: 5px; }
figure.photo figcaption a { color: var(--muted); }
figure.center { text-align: center; }
figure.center img { width: auto; margin: 0 auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.robots { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin: 16px 0; }

/* video */
.video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

/* tabulky */
.table-wrap { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--green); font-weight: normal; }
tr.highlight td { background: #2a0000; }

/* pravidla – očíslovaný seznam */
ol.rules li { margin-bottom: 8px; }

/* kroky návodu */
ol.steps { counter-reset: s; list-style: none; padding: 0; }
ol.steps > li { counter-increment: s; position: relative; padding: 12px 16px 12px 66px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; }
ol.steps > li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 38px; height: 38px; background: var(--green); display: grid; place-items: center; font-size: 20px; }
ol.steps > li:hover::before { background: var(--red); }
ol.steps h3 { margin: 2px 0 4px; }

/* časová osa */
.timeline { list-style: none; padding: 0; border-left: 6px solid var(--green); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 16px 22px; }
.timeline li::before { content: ""; position: absolute; left: -14px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 3px solid #000; }
.timeline .year { color: var(--gold); margin-right: 6px; }

/* upozornění */
.note { border-left: 6px solid var(--red); background: #1a0000; padding: 12px 16px; margin: 18px 0; }

/* FAQ */
details { background: var(--panel); border: 1px solid var(--line); padding: 10px 16px; margin-bottom: 10px; }
summary { cursor: pointer; }
summary:hover { color: var(--red); }
dl.glossary dt { color: var(--gold); margin-top: 12px; }
dl.glossary dd { margin: 2px 0 0; color: #ddd; }

/* galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.gallery figure.photo { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Patička ---------- */
.footer-bar { height: 20px; background: var(--green); margin: 30px 20px 10px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 20px 30px; }
.footer .info { font-size: 13px; color: var(--muted); text-align: center; }
.share { display: flex; gap: 10px; }
.share img { width: 32px; height: 32px; display: block; }

/* ---------- Mobil ---------- */
@media (max-width: 1000px) {
  .header { grid-template-columns: 1fr auto 1fr; }
  .header .left, .header .right { max-width: 26vw; }
}
@media (max-width: 700px) {
  .header { grid-template-columns: 1fr; }
  .header .left, .header .right { display: none; }
  .menu a { width: calc(50% - 10px); font-size: 17px; padding: 10px 6px; }
  .hero, .two-col { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .content { margin: 14px; }
  h1 { font-size: 28px; }
}
