@font-face {
  font-family: 'OnestLocal';
  src: url('Onest-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

#home h1,
#home .subtitle,
#nabidka .section-title,
#specializace .section-title,
#kontakt .section-title {
  font-family: 'OnestLocal', Arial, sans-serif;
}

/* ===  Global resets & base  === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Onest', Arial, sans-serif;
  color: #133e68;
  background: #fff;
}

main {
  width: 100%;
}

.container {
  width: min(1115px, 100% - 2rem);
  margin-inline: auto;
}

/* Google Fonts Onest import */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@100;200;400;700&display=swap');

/* ===  Back to top button  === */
#back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 45px;
  height: 45px;
  background-color: #008fbf;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s;
  z-index: 50;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#back-to-top:hover {
  background-color: #133e68;
  transform: translateY(-3px);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

#back-to-top svg {
  width: 24px;
  height: 24px;
}