/* =========================================================================
   BASE – reset a štýly holých HTML elementov. Žiadne triedy okrem .skip-link.
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 960px) {
  body { font-size: 1.125rem; }
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); line-height: 0.98; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-2xl); line-height: 1.04; }
h3 { font-size: var(--fs-xl); line-height: 1.12; }
h4 { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }

p, ul, ol { margin: 0 0 var(--space-4); }

a { color: var(--color-primary); }
/* E-mail a telefón sa nikdy nezalamujú */
a[href^="mailto:"], a[href^="tel:"] { white-space: nowrap; }
a:hover { color: var(--color-primary-hover); }

img, svg, video { display: block; max-width: 100%; height: auto; }

blockquote, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-on-primary);
  z-index: 100;
}
.skip-link:focus { top: var(--space-4); }

/* Text len pre čítačky obrazovky (napr. „otvorí sa v novom okne“) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
