/* System font stack */
:root{
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, "Noto Sans",
               "Liberation Sans", "Apple Color Emoji", "Segoe UI Emoji",
               sans-serif;
  --font-main: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
  --base-size: 0.9rem;
  --glow: rgba(255,45,85,.22);
  --ease: cubic-bezier(.2,.8,.2,1);

  --padX: 100px;
  --sectionY: 120px;

  --bg-main: #000;
  --bg-soft: #111214;
  --bg-card: #2e2f34;
  --line: rgba(255,255,255,.08);

  --text-main: #f2f2f2;
  --text-soft: #aaaaaa;
  --text-muted: #8b8b8b;

  /* --accent: #f58635; */
  /* --accent: rgb(179, 54, 77); */
  /* --accent: rgba(124,58,237,.84); */
  --accent: rgba(159, 113, 240, 0.84);
  --accent-grad: linear-gradient(135deg, rgba(255,45,85,.92), rgba(124,58,237,.84));
}

html{
  box-sizing: border-box;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: inherit;
}

*{
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

body{
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-main);
  color: var(--text-main);
}

body.hide{
  overflow-y: hidden;
}

img, video{
  max-width: 100%;
  display: block;
}

a{
  color: inherit;
}

button,
input,
select,
textarea{
  font: inherit;
}

textarea{
  resize: vertical;
}

.tran{
  transition: all 1s ease;
}

.lan{
  white-space: pre-line;
}

/* width */
::-webkit-scrollbar{
  width: 8px;
  background: transparent;
}

/* Track */
::-webkit-scrollbar-track{
  box-shadow: inset 0 0 8px rgb(0, 0, 0);
}

/* Handle */
::-webkit-scrollbar-thumb{
  background: var(--accent-grad);
  border-radius: 10px;
}

/* Zmení farbu označenia pre celý web */
::selection {
  background-color: var(--accent);
  color: var(--bg-main);          
  text-shadow: none;
}

/* Pre podporu starších verzií Firefoxu */
::-moz-selection {
  background-color: var(--accent);
  color: var(--bg-main);
  text-shadow: none;
}

.no-select{
  -webkit-user-select: none; /* Safari a Chrome */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* Internet Explorer/Edge */
  user-select: none;
  -webkit-touch-callout: none; /* Vypne iOS menu iba pre tento prvok */
}

/* Ľahká optimalizácia below-the-fold */
/* @supports (content-visibility: auto) {
  #services,
  #packages,
  #specialties,
  #projects,
  #about,
  #zendashboard,
  #contact{
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
  }

  @media (max-width: 900px) {
    #services,
    #packages,
    #specialties,
    #projects,
    #about,
    #zendashboard,
    #contact{
      contain-intrinsic-size: 1400px;
    }
  }
} */

/* scroll anchor offset */
#services,
#packages,
#specialties,
#projects,
#about,
#zendashboard,
#contact{
  /* scroll-margin-top: 72px; */
  scroll-margin-top: 0px;
}

html,
body,
.page,
.section{
  overflow-x: clip;
}

body.menu-open{
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

body.menu-open .cookie-fab,
body.menu-open .back-to-top{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(.9);
}
/* ----------------------------------------- */
/* .legal-email-obf {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  user-select: all;
  word-break: break-word;
}

.legal-email-obf {
  user-select: all;
  word-break: break-word;
}

.copy-email-btn {
  margin-left: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: 0.25s ease;
}

.copy-email-btn:hover {
  transform: translateY(-1px);
}

.copy-email-btn:disabled {
  opacity: 0.7;
  cursor: default;
} */
/* ----------------------------------------- */
.legal-contact-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.legal-email-obf {
  user-select: all;
  word-break: break-word;
}

.copy-email-btn {
  --btn-size: 38px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--btn-size);
  height: var(--btn-size);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, opacity 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.copy-email-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.copy-email-btn:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.copy-email-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.copy-email-btn__icon {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.copy-email-btn__icon--check {
  opacity: 0;
  transform: scale(0.7);
}

.copy-email-btn.is-success .copy-email-btn__icon--copy {
  opacity: 0;
  transform: scale(0.7);
}

.copy-email-btn.is-success .copy-email-btn__icon--check {
  opacity: 1;
  transform: scale(1);
}

.copy-email-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(15, 15, 18, 0.96);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 5;
}

.copy-email-btn:hover::after,
.copy-email-btn:focus-visible::after,
.copy-email-btn.is-success::after,
.copy-email-btn.is-error::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.copy-email-btn.is-success {
  border-color: rgba(120, 255, 170, 0.32);
  background: rgba(120, 255, 170, 0.08);
}

.copy-email-btn.is-error {
  border-color: rgba(255, 120, 120, 0.32);
  background: rgba(255, 120, 120, 0.08);
}

.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;
}