:root {
  --green: #3ea74e;
  --deep: #1f7a30;
  --mint: #eaf8e8;
  --ink: #173041;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', ui-sans-serif, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.7;
}

a { color: var(--deep); }
a:hover { color: #14532d; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Hlavička zhodná s domovskou stránkou (src/components/Navbar.jsx, "zmatnený" stav). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.hdr-inner { position: relative; display: flex; align-items: center; justify-content: space-between; max-width: 1152px; margin: 0 auto; padding: 12px 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: block; line-height: normal; }
.brand-name { display: block; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 20px; line-height: 28px; color: var(--ink); }
.brand-tag { display: none; font-size: 0.65rem; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em; color: var(--deep); }
.hdr-nav, .hdr-right { display: none; }
.hdr-nav a { color: #1e293b; font-weight: 600; font-size: 14px; line-height: 20px; text-decoration: none; transition: color 0.15s; }
.hdr-nav a:hover { color: #1f7a30; }

.lang-switch { display: inline-flex; align-items: center; padding: 4px; border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.7); box-shadow: 0 10px 30px -12px rgba(23, 48, 65, 0.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lang-switch a { padding: 4px 12px; border-radius: 9999px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.025em; color: var(--ink); text-decoration: none; transition: background 0.15s; }
.lang-switch a:hover { background: var(--mint); }
.lang-switch a.active { background: #166534; color: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }

.nav-toggle { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; padding: 0; }
.nav-overlay { position: fixed; inset: 0; z-index: 40; background: rgba(255, 255, 255, 0.4); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav-overlay[hidden], .mobile-menu[hidden] { display: none; }
.mobile-menu { position: relative; border-top: 1px solid rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.85); padding: 16px; -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-menu nav a { border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: #334155; text-decoration: none; }
.mobile-menu nav a:hover { background: var(--mint); }
.mobile-lang { margin-top: 16px; }

@media (min-width: 768px) {
  .hdr-inner { padding: 12px 32px; }
  .brand img { width: 56px; height: 56px; }
  .brand-tag { display: block; }
  .hdr-nav { display: flex; align-items: center; gap: 28px; }
  .hdr-right { display: flex; align-items: center; gap: 16px; }
  .nav-toggle, .mobile-menu, .nav-overlay { display: none !important; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 16px;
  background: #166534;
  box-shadow: 0 10px 30px -12px rgba(23, 48, 65, 0.18);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.btn:hover { background: #14532d; }

main { padding-top: 32px; padding-bottom: 48px; }

h1, h2, h3 { font-family: 'Sora', sans-serif; color: var(--ink); line-height: 1.25; }
h1 { font-size: clamp(26px, 5vw, 36px); margin: 8px 0; }

.lead { font-size: 18px; color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

.prose h2 { font-size: 24px; margin: 40px 0 8px; }
.prose h3 { font-size: 18px; margin: 28px 0 4px; }
.prose p, .prose li { font-size: 17px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--mint); color: var(--ink); }

.cards { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.cards a {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 10px 30px -12px rgba(23, 48, 65, 0.18);
  transition: transform 0.15s;
}
.cards a:hover { transform: translateY(-2px); }
.cards h2 { margin: 0 0 6px; font-size: 20px; }
.cards p { margin: 0 0 8px; }

.cta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 48px 0;
  padding: 24px;
  border-radius: 24px;
  background: var(--mint);
}
.cta h2 { margin: 0 0 4px; font-size: 20px; }
.cta p { margin: 0 0 12px; }
.cta img { flex-shrink: 0; object-fit: contain; }

.site-footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 14px; }
.site-footer p { margin: 4px 0; }

@media (max-width: 520px) {
  .cta { flex-direction: column; align-items: flex-start; }
}

.related { margin: 40px 0 24px; }
.related h2 { font-size: 22px; margin-bottom: 8px; }
.related .cards h3 { margin: 0 0 6px; font-size: 18px; }

/* Apple-štýl detaily: tesné písmenkovanie nadpisov, okamžitá spätná väzba pri stlačení, focus ring. */
h1 { letter-spacing: -0.03em; }
h2, h3 { letter-spacing: -0.02em; }
.btn { transition: transform 0.14s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.15s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, .nav-toggle:focus-visible, .lang-switch a:focus-visible, .hdr-nav a:focus-visible, .brand:focus-visible { outline: 3px solid #1f7a30; outline-offset: 3px; }
.cta { scroll-margin-top: 96px; }
.cta .store-cta { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .btn, .cards a { transition: none; }
  .btn:active, .cards a:hover { transform: none; }
}
