*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--top-h);
  -webkit-text-size-adjust: 100%;
}
html:has(dialog[open]), html.menu-open { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.2; }
p, ul, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
[hidden] { display: none !important; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--fg); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.dots {
  background-image: radial-gradient(circle, hsl(281 100% 35% / .07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.dots-light {
  background-image: radial-gradient(circle, rgb(255 255 255 / .12) 1px, transparent 1px), var(--grad-cta);
  background-size: 24px 24px, auto;
}

/* tlačidlá */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; line-height: 1.25; text-align: center;
  transition: transform .2s, box-shadow .2s, opacity .2s, background-color .2s;
}
.btn-sm { padding: .55rem 1.2rem; font-size: .875rem; }
.btn-lg { padding: .9rem 1.75rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; }
.btn-primary:hover { opacity: .92; }
.btn-lg.btn-primary:hover, .btn-white:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-white { background: #fff; color: var(--primary); white-space: nowrap; }
.btn-ghost { color: var(--muted-fg); border-color: var(--border); }
.btn-ghost:hover { color: var(--fg); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ikony v boxoch */
.ic-box {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r);
  background: var(--primary-light); color: var(--primary); font-size: 24px;
  transition: background-color .3s, color .3s;
}
.ic-lg { width: 56px; height: 56px; border-radius: var(--r-lg); font-size: 28px; }
.ic-round {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 22px;
}

.card {
  background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* objavenie pri scrollovaní — len keď beží JS (trieda .js z head.js) */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
.js li.reveal:nth-child(2) { transition-delay: .08s; }
.js li.reveal:nth-child(3) { transition-delay: .16s; }
.js li.reveal:nth-child(4) { transition-delay: .24s; }
.js li.reveal:nth-child(5) { transition-delay: .32s; }
.js li.reveal:nth-child(6) { transition-delay: .4s; }
.js li.reveal:nth-child(7) { transition-delay: .48s; }
.js li.reveal:nth-child(8) { transition-delay: .56s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
