/* Obal modálneho okna (pozadie) */
.zk-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.zk-overlay.zk-active {
  display: flex;
  opacity: 1;
}

/* Samotný panel */
.zk-panel {
  background: #F8FBF3;
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  position: relative;
  padding: 40px;
  box-sizing: border-box;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-height: none;
  overflow-y: visible;
  border-top: 6px solid #798d7a;
}

/* Tlačidlo zavrieť */
.zk-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}
.zk-close:hover { color: #000; }

/* Hlavička */
.zk-header { text-align: center; margin-bottom: 30px; }
.zk-pill {
  display: inline-block;
  background: #e1e6e2;
  color: #4a5c50;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.zk-title {
  font-size: 42px;
  color: #38513c;
  margin: 0 0 10px 0;
  font-weight: 400;
  line-height: 1.1;
}
.zk-title-light { color: #8a9d8f; }
.zk-subtitle {
  color: #666;
  font-size: 15px;
  margin: 0;
}

/* Mriežka pre karty */
.zk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* Karta */
.zk-card {
  background: #E1EBE2;
  border-radius: 8px;
  border-left: 6px solid #354e33;
  padding: 35px 30px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* Obsah karty */
.zk-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  word-spacing: 4px;
}
.zk-card-icon {
  font-size: 26px;
  line-height: 1;
}
.zk-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #2c3f30;
  text-transform: uppercase;
  margin: 0;
}
.zk-target {
  font-size: 15px;
  font-weight: 600;
  color: #556b5b;
  margin-bottom: 20px;

  /* FIX: neplatné "margin-left:" -> nastavujeme bezpečne */
  margin-left: 0;

  padding-bottom: 15px;
  border-bottom: 1px solid #d4dcd7;
}

/* Zoznam úloh */
.zk-list {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
  flex-grow: 1; /* Tlačí tlačidlo na spodok */
}
.zk-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 15px;
  font-size: 14px;
  line-height: 1.6;
  color: #444;
}
.zk-list li::before {
  content: "•";
  position: absolute;
  left: 0; top: -1px;
  color: #27a755;
  font-size: 18px;
  font-weight: bold;
}

/* Tlačidlá */
.zk-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.3s ease;
  cursor: pointer;
}
.zk-btn-primary {
  background: #38513c;
  color: #fff !important;
  border: 2px solid #38513c;
}
.zk-btn-primary:hover {
  background: #2b3d2e;
  border-color: #2b3d2e;
}
.zk-btn-secondary {
  background: transparent;
  color: #38513c !important;
  border: 2px solid #27a755;
}
.zk-btn-secondary:hover {
  background: #27a755;
  color: #fff !important;
}

/* ==============================
   MOBIL (spojené a opravené):
   - scroll na overlay (kraje obrazovky)
   - panel bez vlastného scrollu
   ============================== */
@media (max-width: 768px) {

  .zk-grid { grid-template-columns: 1fr; gap: 20px; }

  .zk-overlay{
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .zk-panel{
    max-height: none;
    overflow-y: visible;
    width: 94%;
    max-width: 900px;  /* necháva desktop limit, ale na mobile aj tak šírka vyhrá */
    border-radius: 12px;
    padding: 30px 20px;
    margin: 20px auto;
  }

  .zk-title { font-size: 32px; }
  .zk-card { padding: 25px 20px; }
  .zk-card-title { font-size: 18px; }
}