@font-face {
  font-family: "Nunito";
  src: url("/zakoni/assets/fonts/Nunito-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/zakoni/assets/fonts/Nunito-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/zakoni/assets/fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #f8fafc;
  --surface: rgba(255,255,255,0.86);
  --surface-solid: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(226,232,240,0.9);
  --dark-blue: #254568;
  --dark-blue-200: #1b2a4b;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --amber-text: #92400e;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  background: var(--bg) url("./background.jpeg") center/cover fixed no-repeat;
}
a { color: inherit; text-decoration: none; }
code {
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 0.15rem 0.35rem;
  font-size: 0.95em;
}
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(1152px, calc(100% - 48px)); margin: 0 auto; }
.site-header,
.site-footer {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(12px);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,0.6);
}
.header-inner,
.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-inner {
  padding: 16px 0;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img {
  display: block;
  width: 160px;
  height: 40px;
}
.site-nav,
.header-actions,
.footer-links { display: flex; align-items: center; gap: 12px; }
.site-nav {
  flex: 1 1 auto;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
}
.header-actions {
  flex: 0 0 auto;
  gap: 16px;
}
.site-nav a,
.ghost-link,
.footer-links a {
  padding: 8px 12px;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 700;
  transition: 0.2s ease;
}
.site-nav a:hover,
.ghost-link:hover,
.footer-links a:hover {
  color: var(--text);
  transform: scale(1.05);
}
.ghost-link {
  line-height: 1.2;
}
.header-actions .cta {
  padding: 8px 20px;
  font-size: 0.875rem;
  line-height: 1.2;
}
.page-main {
  flex: 1;
  padding-top: 80px;
  padding-bottom: 96px;
}
.hero,
.panel,
.cta-panel,
.notice {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.hero,
.cta-panel {
  padding: 32px;
  color: white;
}
.hero-dark { background: var(--dark-blue); }
.hero.compact { text-align: center; }
.hero h1,
.cta-panel h2,
.panel h1 {
  margin: 0;
  line-height: 1.15;
}
.hero h1 { font-size: 1.875rem }
.hero p,
.cta-panel p {
  margin: 16px 0 0;
  color: #cbd5e1;
  line-height: 1.65;
  font-size: 0.875rem;
}
.panel {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.72);
}
.notice {
  font-size: 0.875rem;
  padding: 14px 16px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-text);
  margin-bottom: 24px;
}
.notice p { margin: 0; }
.notice-sub { margin-top: 6px !important; }
.cta-panel {
  background: var(--dark-blue-200);
  text-align: center;
  margin-top: 24px;
}
.cta {
  display: inline-block;
  margin-top: 24px;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.2s ease;
  cursor: pointer;
}
.cta-dark {
  background: #314158;
  color: white;
  margin-top: 0;
}
.cta-dark:hover {
  background: rgba(255,255,255,0.7);
  color: var(--text);
}
.cta-light {
  background: rgba(255,255,255,0.9);
  color: var(--text);
}
.cta-light:hover {
  background: #314158;
  color: white;
}
.search-block { margin-bottom: 16px; }
.label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
}
.search-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: white;
  color: var(--text);
  padding: 14px 16px;
  font-size: 0.95rem;
  outline: none;
}
.search-input:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.18);
  
}
.muted {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.law-list,
.article-list {
  display: grid;
  gap: 12px;
}
.law-list { list-style: none; padding: 0; margin: 0; }
.law-card,
.article-card {
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-solid);
  transition: 0.2s ease;
}
.law-card {
  padding: 16px;
}
.law-card:hover,
.article-card:hover {
  border-color: #fecaca;
}
.law-card-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 500;
}
.law-card-meta {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}
.article-card { padding: 18px; }
.article-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.article-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}
.article-link {
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: #334155;
  cursor: pointer;
}
.article-link:hover {
  color: #94A3B8;
}
.article-text,
.article-full-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.72;
  color: #334155;
}
.article-text { margin: 12px 0 0; font-size: 0.92rem; }
.article-full-text { margin: 16px 0 0; font-size: 0.9rem; color: #64748B; }
.section-label {
  margin: 10px 0 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-panel h1 {
  margin-top: 25px;
  font-size: 1.875rem;
  font-weight: 500;
}
.article-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}
.article-nav a {
  cursor: pointer;
}
.article-nav a:hover,
.breadcrumbs a:hover { text-decoration: underline; color: #475569; }
.breadcrumbs {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  cursor: pointer;
}
.footer-note {
  padding: 18px 0;
  border-bottom: 1px solid rgba(203, 213, 225, 0.5);
}
.footer-note p {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted);
}
.footer-meta {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}
.empty-state {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
  padding: 16px;
  color: var(--muted);
}
@media (max-width: 900px) {
  .site-nav { display: none; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1120px); }
  .header-inner,
  .footer-meta,
  .article-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .hero, .panel, .cta-panel { padding: 20px; }
}
