/* ══════════════════════════════════════════════
   F3K – HDT Magnetic  |  Sdílené styly
   ══════════════════════════════════════════════ */

:root {
  --green-dark:  #00CC00;
  --green-mid:   #2e7d46;
  --green-light: #e6f4eb;
  --accent:      #f0a500;
  --text:        #1a2318;
  --muted:       #556b5a;
  --border:      #c4dccb;
  --bg:          #f2f7f3;
  --white:       #ffffff;
  --radius:      8px;
}

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

p { margin-bottom: 10px; }
p:last-child { margin-bottom: 0; }

/* ── TOP BAR ── */
.topbar {
  background: var(--green-dark);
  color: #ffffff;
  font-size: 13px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: 4px; }
.topbar a { color: #ffffff; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar span { opacity: .4; margin: 0 4px; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #256638 100%);
  color: #fff;
  padding: 22px 24px 18px;
  text-align: center;
}
.hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.hero h1 span { color: #f0c040; }
.hero p { opacity: .8; font-size: 1rem; max-width: 560px; margin: 0 auto; }
.hero .badge {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.hero .meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  opacity: .68;
  flex-wrap: wrap;
  margin-top: 10px;
}
.hero .meta span::before { content: "• "; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-light);
}
.section-number {
  background: var(--green-mid);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.section-heading h2 { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); }

h3 { font-size: 1rem; font-weight: 700; color: var(--green-mid); margin: 20px 0 8px; }
h3:first-child { margin-top: 0; }

/* ── SPECS TABLE ── */
.specs { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.specs th { background: var(--green-dark); color: #fff; padding: 9px 14px; text-align: left; font-size: 13px; font-weight: 600; }
.specs td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.specs tr:nth-child(even) td { background: var(--green-light); }
.specs td strong { color: var(--green-dark); }

/* ── FEATURE GRID ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 14px; }
.feature { background: var(--green-light); border: 1px solid var(--border); border-radius: 7px; padding: 16px; text-align: center; }
.feature svg { width: 28px; height: 28px; fill: var(--green-mid); margin-bottom: 8px; }
.feature strong { display: block; font-size: .95rem; color: var(--green-dark); margin-bottom: 4px; }
.feature span { font-size: 13px; color: var(--muted); }

/* ── CALLOUT ── */
.callout {
  background: var(--green-light);
  border-left: 4px solid var(--green-mid);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  font-size: 14.5px;
  margin: 12px 0;
}
.callout strong { color: var(--green-dark); }

/* ── STEPS (mag-spinac) ── */
.steps { counter-reset: step; display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.step { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  counter-increment: step;
  background: var(--green-mid);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.step-text strong { display: block; font-size: .95rem; color: var(--green-dark); margin-bottom: 2px; }
.step-text span { font-size: 13.5px; color: var(--muted); }

/* ── CTA BUTTON ── */
.cta-wrap { text-align: center; padding: 8px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-mid);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 7px;
  text-decoration: none;
  transition: background .2s;
}
.btn:hover { background: var(--green-dark); }

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 16px;
}
footer a { color: var(--green-mid); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 500px) { .card { padding: 18px; } }


/* ══════════════════════════════════════════════
   INDEX – tlačítka
   ══════════════════════════════════════════════ */

body.page-index {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-index .hero {
  padding: 40px 24px 34px;
}
body.page-index .hero .logo-label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 10px;
}
body.page-index .hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}

.btn-list {
  width: 1000px;
  max-width: calc(100% - 40px);
  margin: 40px auto;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.img-btn {
  display: block;
  width: 100%;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.img-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.15);
}
.img-btn .photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 70%;
  display: block;
  background: #c8dbd0;
}
.img-btn .photo-placeholder {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #c8dbd0, #a8c4b0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a7a62;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.img-btn .photo-placeholder svg {
  width: 32px; height: 32px;
  fill: #5a7a62;
  margin-right: 10px;
  flex-shrink: 0;
}
.img-btn .label {
  background: var(--green-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
}
.img-btn .label-left .tag {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 2px;
}
.img-btn .label-left h2 { font-size: 1.15rem; font-weight: 800; }
.img-btn .arrow {
  background: var(--accent);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.img-btn:hover .arrow { background: #d08e00; }
.img-btn .arrow svg { width: 16px; height: 16px; fill: #fff; }


/* ══════════════════════════════════════════════
   PRAVIDLA – layout + specifické komponenty
   ══════════════════════════════════════════════ */

.layout {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px;
  gap: 28px;
  align-items: flex-start;
}

.toc-wrap { width: 240px; flex-shrink: 0; position: sticky; top: 20px; }
.toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13.5px;
}
.toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.toc ul { list-style: none; }
.toc li { margin: 3px 0; }
.toc li.sub { padding-left: 12px; font-size: 12.5px; }
.toc a { color: var(--green-mid); text-decoration: none; display: block; padding: 2px 6px; border-radius: 4px; transition: background .15s; }
.toc a:hover { background: var(--green-light); }

.main { flex: 1; min-width: 0; }

ul.rules { padding-left: 0; list-style: none; margin: 8px 0 10px; }
ul.rules li { padding: 6px 0 6px 22px; position: relative; border-bottom: 1px solid var(--bg); }
ul.rules li::before { content: "›"; position: absolute; left: 6px; color: var(--accent); font-weight: 700; }
ul.rules.no-arrow li { padding-left: 8px; }
ul.rules.no-arrow li::before { content: none; }

.penalty-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 14px 0; }
.penalty-box { border-radius: 6px; padding: 14px; text-align: center; }
.penalty-box.p100 { background: #fff3cd; border: 1px solid #f0c040; }
.penalty-box.p300 { background: #fde8e8; border: 1px solid #e88; }
.penalty-box.pdq  { background: #e8f4e8; border: 1px solid #6b9e6b; }
.penalty-box .pts { font-size: 2rem; font-weight: 800; display: block; line-height: 1; margin-bottom: 6px; }
.penalty-box.p100 .pts { color: #b07a00; }
.penalty-box.p300 .pts { color: #c0392b; }
.penalty-box.pdq  .pts { color: #2e7d32; }
.penalty-box .lbl { font-size: 12.5px; color: var(--muted); }

.task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 16px; }
.task-card { border: 1px solid var(--border); border-radius: 7px; padding: 16px; background: var(--bg); position: relative; overflow: hidden; }
.task-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--green-mid); }
.task-card h4 { font-size: .95rem; font-weight: 700; color: var(--green-dark); margin-bottom: 6px; }
.task-card .tag { display: inline-block; background: var(--green-light); color: var(--green-mid); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; }
.task-card p { font-size: 13.5px; color: var(--muted); margin: 0; }
.task-card .wt { margin-top: 8px; font-size: 12px; color: var(--accent); font-weight: 600; }

.formula { background: #f0f0f0; border: 1px solid #d0d0d0; border-radius: 6px; padding: 12px 18px; font-family: 'Courier New', monospace; font-size: 14px; color: var(--green-dark); margin: 10px 0; display: inline-block; }
.example { background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 6px; padding: 12px 16px; font-size: 13.5px; margin: 10px 0; }
.example .ex-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.example table { border-collapse: collapse; width: 100%; }
.example td { padding: 3px 10px 3px 0; font-size: 13px; }
.example td:last-child { font-weight: 600; color: var(--green-dark); }

.btn-home {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff !important;
  font-size: 12.5px; font-weight: 700;
  padding: 5px 14px; border-radius: 20px;
  text-decoration: none !important;
  letter-spacing: .02em;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.btn-home:hover { background: #c96a10; transform: translateY(-1px); }
.btn-home svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Responsive – pravidla */
@media (max-width: 780px) { .toc-wrap { display: none; } .task-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .task-grid { grid-template-columns: 1fr; } .penalty-grid { grid-template-columns: 1fr; } }
