/* ============================================
   PREDSTAVITEV — STYLES
   ============================================ */

.pred-section { display: none; }
.pred-section.active { display: block; scroll-margin-top: calc(var(--header-h) + 16px); }

/* Title */
.pred-title {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 28px;
  line-height: 1.2;
}

/* Section headings */
.pred-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 52px 0 14px;
}
.pred-section h3:first-of-type { margin-top: 0; }

/* Text */
.pred-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}

/* Lists with primary bullets */
.pred-section ul:not(.kontakt-list):not(.pred-links-list) {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}
.pred-section ul:not(.kontakt-list):not(.pred-links-list) li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}
.pred-section ul:not(.kontakt-list):not(.pred-links-list) li::before {
  content: '•';
  color: var(--secondary);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* Badge above title */
.pred-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}
.pred-badge-jss { background: var(--barva-jss-bg); color: var(--barva-jss); }
.pred-badge-ssrs { background: var(--barva-ssrs-bg); color: var(--barva-ssrs); }
.pred-badge-sssnb { background: rgba(0,0,0,0.07); color: #374151; }
.pred-badge-cs { background: rgba(59, 99, 147, 0.1); color: #3b6393; }

/* Two-column layout */
.dve-koloni {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 56px;
}

/* Contact list — card style */
.kontakt-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kontakt-list li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  background: rgba(28, 79, 74, 0.05);
  border-radius: 8px;
  padding: 13px 16px;
}
.kontakt-list strong {
  display: block;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 1px;
  font-size: 16px;
}

/* Schema */
.pred-schema-wrap {
  margin: 24px 0 36px;
}
.pred-schema-svg {
  width: 100%;
  height: auto;
  display: block;
}
.link-blue { color: var(--secondary); }
.link-blue:hover { text-decoration: underline; }

/* Useful links box */
.pred-links-box {
  background: rgba(28, 79, 74, 0.05);
  border-radius: var(--radius);
  padding: 14px 18px;
  height: fit-content;
  margin-top: 14px;
}
.pred-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.pred-links-list li {
  border-bottom: 1px dotted rgba(28, 79, 74, 0.25);
}
.pred-links-list li:last-child { border-bottom: none; }
.pred-links-list li a {
  font-size: 14px;
  font-weight: 400;
  color: var(--secondary);
  line-height: 1.3;
  display: block;
  padding: 9px 0;
}
.pred-links-list li a:hover { text-decoration: underline; }

/* Gallery credit */
.pred-section .gallery-credit {
  font-size: 8px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}
.pred-section .gallery-credit-link,
.pred-section .gallery-credit-link:visited {
  color: var(--text-muted);
  text-decoration: none;
}
.pred-section .gallery-credit-link:hover { text-decoration: underline; color: var(--text-muted); }

/* Gallery — masonry */
.pred-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: row dense;
  gap: 8px;
  margin-top: 20px;
}
.pred-gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-hero);
}
.pred-gallery-grid a:nth-child(odd)  { grid-row: span 2; }
.pred-gallery-grid a:nth-child(even) { grid-row: span 1; }
.pred-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.pred-gallery-grid a:hover img { transform: scale(1.04); }

/* Gallery lightbox */
.pred-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.pred-lightbox.open { display: flex; }
.pred-lb-img-wrap {
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pred-lb-img-wrap img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
  user-select: none;
}
.pred-lb-close, .pred-lb-prev, .pred-lb-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  font-family: var(--font);
  line-height: 1;
}
.pred-lb-close:hover, .pred-lb-prev:hover, .pred-lb-next:hover { background: rgba(255,255,255,0.22); }
.pred-lb-close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 26px; }
.pred-lb-prev, .pred-lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 36px; }
.pred-lb-prev { left: 20px; }
.pred-lb-next { right: 20px; }
.pred-lb-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-family: var(--font);
  pointer-events: none;
}

/* SSSNB contact icons */
.pred-kontakt-icons {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin: 32px 0 24px;
}
.pred-kontakt-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.pred-kontakt-icon-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
  text-decoration: none;
}
a.pred-kontakt-icon-circle { color: #fff; }
a.pred-kontakt-icon-circle:hover {
  background: var(--secondary);
  transform: scale(1.08);
}
div.pred-kontakt-icon-circle { cursor: default; }

/* Highlight box */
.pred-highlight-box {
  background: var(--secondary-light);
  border-radius: var(--radius);
  padding: 20px 32px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary);
  line-height: 1.5;
  margin: 32px 0;
}

/* Schema placeholder */
.pred-schema-placeholder {
  background: var(--bg-hero);
  border: 2px dotted var(--border);
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin: 24px 0 32px;
}

/* Dežurne blocks */
.dezurne-block {
  padding-top: 28px;
  margin-bottom: 8px;
}
.dezurne-block:first-of-type { padding-top: 0; }
.dezurne-block .kontakt-list { max-width: 50%; }
.dezurne-block h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px !important;
  margin-top: 0 !important;
}

/* Sidebar select (mobile) */
.sidebar-select {
  display: none;
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: #fff;
  outline: none;
  margin-bottom: 24px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

@media (max-width: 900px) {
  .dve-koloni { grid-template-columns: 1fr; gap: 24px; }
  .pred-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .pred-kontakt-icons { gap: 24px; }
  .dezurne-block .kontakt-list { max-width: 100%; }
}
@media (max-width: 768px) {
  .sidebar .sidebar-nav { display: none; }
  .sidebar-select { display: block; }
}
@media (max-width: 480px) {
  .pred-kontakt-icons { flex-wrap: wrap; gap: 20px; }
  .pred-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 100px; }
}

/* ---- SSSNB CTA BOX ---- */
.sssnb-cta-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--blue-light);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 20px 0 28px;
}
.sssnb-cta-text {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
  padding: 4px 0;
}
.sssnb-cta-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .sssnb-cta-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}
