html {
  scroll-behavior: smooth;
  scroll-padding-top: 8rem;
}

html,
body {
  background-color: #fff;
  color: var(--black);
  font-variant-ligatures: none;
  font-size: 1.4vw;
  position: relative;
  width: 100%;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
}
@media screen and (max-width: 2560px) {
  html,
  body {
    font-size: 20px;
  }
}
@media screen and (max-width: 1600px) {
  html,
  body {
    font-size: 1.25vw;
  }
}
@media screen and (max-width: 768px) {
  html,
  body {
    /* strop 16px: na šířkách 500-768px nesmí text bobtnat, na telefonech ~14px */
    font-size: min(3.5vw, 16px);
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
  }
}

body,
html {
  /* clip nevytváří scroll kontejner – jinak by nefungovalo position: sticky */
  overflow-x: hidden;
  overflow-x: clip;
}

body * {
  box-sizing: border-box;
}

body:before {
  content: "";
  display: block;
  height: 0;
  padding-top: 6.75rem;
}

section {
  position: relative;
}

.middle {
  margin: 0px auto;
  width: 70rem;
  flex-wrap: wrap;
  position: relative;
}

h1,
h2 {
  margin-top: 3rem;
  font-size: 2.4rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  text-align: center;
}
@media screen and (max-width: 768px) {
  h1,
  h2 {
    text-align: left;
    font-size: 1.75rem;
  }
}
.stripe {
  line-height: 3.88rem;
  color: var(--white);
  background-color: var(--red);
  overflow: hidden;
  position: relative;
}
.stripe span {
  position: relative;
  z-index: 2;
}
@media screen and (max-width: 768px) {
  .stripe span {
    padding-left: 1.5rem;
  }
}
.stripe::before {
  content: "";
  position: absolute;
  top: 0;
  right: -20.5rem;
  width: 33.5rem;
  height: 100%;
  background-color: var(--midi);
  transform-origin: top left;
  transform: skewX(-32.645deg);
  z-index: 1;
}
@media screen and (max-width: 768px) {
  .stripe::before {
    right: -30.5rem;
  }
}

p {
  font-size: 1.25rem;
}

sup {
  vertical-align: text-top;
  font-size: 0.5em;
  line-height: 1.25em;
}

sub {
  vertical-align: text-bottom;
  font-size: 0.75em;
  line-height: 1.25em;
}

#isMobile {
  position: absolute;
  width: 1px;
  height: 1px;
  display: none;
}

section,
header,
footer,
main {
  width: 100%;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 5rem #d5e3ce inset !important;
}

input:-webkit-autofill {
  -webkit-text-fill-color: #000 !important;
}

[type=text],
[type=email],
[type=password],
[type=tel],
[type=number],
textarea {
  background-color: var(--white);
  color: var(--black);
  font-size: 1rem;
  line-height: 1rem;
  padding-top: 0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  border: 0;
  font-family: "Rubik", sans-serif;
  width: 100%;
  height: 2.5rem;
}

[data-link] {
  cursor: pointer;
}

.show-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .content {
    width: 100% !important;
  }
  .middle {
    width: 25rem !important;
  }
  #isMobile {
    display: block;
  }
  .show-desktop {
    display: none;
  }
  .show-mobile {
    display: block;
  }
}
picture {
  display: block;
}
picture img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
}

.btn {
  display: block;
  margin: 0px auto;
  margin-top: 1.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  background-color: var(--orange);
  padding: 0 1rem;
  height: 2.9rem;
  text-align: center;
  font-size: 1.33rem;
  line-height: 2.9rem;
  cursor: pointer;
}
.btn:hover {
  transition: 0.25s;
  background-color: var(--orange-darker);
  text-decoration: none;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--red) var(--midi);
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 16px;
}

*::-webkit-scrollbar-track {
  background: var(--midi);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--red);
  border-radius: 16px;
  border: 0px none #ffffff;
}
