:root {
  --yellow: #FCFD5A;
  --black: #000000;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: OOTheranTrial-Light;
  src: url(OOTheranTrial-Light.otf);
}

html,
body {
  width: 100%;
  min-height: 100dvh;
  font-family: "OOTheranTrial-Light";
  color: var(--yellow);
  background: url("background.webp") no-repeat center center fixed;
  background-size: cover;
  overflow-x: hidden;
  /* jen horizontální schovat */
  /* overflow-y necháme default = auto */
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  position: relative;
  width: 100%;
  height: 100dvh;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.logo-strip {
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  overflow: hidden;
  pointer-events: none;
  padding-left: 25px;
  /* 👈 přidáme padding zleva */
  box-sizing: border-box;
  animation: slideFadeInLogo 0.4s ease-in-out forwards;
}

.logo-track {
  display: flex;
  gap: 85px;
  align-items: center;
  will-change: transform;
  width: max-content;
}

.logo-track img {
  height: 300px;
  flex: 0 0 auto;
}

.info {
  flex-direction: column;
  gap: 6px;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 2%;
  text-transform: uppercase;
  color: var(--yellow);
  max-width: 520px;
  margin-top: calc(300px + 25px);
  animation: slideFadeIn 0.5s ease-in-out forwards;
}

.cta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
  animation: slideFadeIn 0.5s ease-in-out forwards;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 439px;
}

.links a {
  flex: 1 1 0;
  text-align: center;
  text-decoration: none;
  background: var(--yellow);
  color: var(--black);
  padding: 10px 0px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 14px;
  letter-spacing: 2%;
  text-transform: uppercase;
}

.newsletter {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: var(--yellow);
  color: var(--black);
  padding: 10px 5px 10px 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 439px;
}

.newsletter-input {
  gap: 5px;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  margin-left: 20px;
}

.newsletter .label {
  font-size: 12px;
  letter-spacing: 2%;
  line-height: 14px;
}

.newsletter input[type="email"] {
  font-family: "OOTheranTrial-Light";
  padding: 9px 20px 10px 20px;
  border: 1px solid var(--black);
  font-size: 12px;
  background: transparent;
  color: var(--black);
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 2%;
  line-height: 14px;
  max-width: 200px;
  margin-left: auto;
}

.newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: none;
}

.newsletter input[type="email"]::placeholder {
  color: black;
}

.newsletter button {
  font-family: "OOTheranTrial-Light";
  padding: 11px 20px;
  font-size: 12px;
  background: var(--black);
  color: var(--yellow);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 2%;
  line-height: 14px;
  text-transform: uppercase;
}

@keyframes slideIn {
  from {
    transform: translateX(60px);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes slideFadeIn {
  from {
    transform: translateX(60px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideFadeInLogo {
  from {
    transform: translateX(100px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media only screen and (max-width: 770px) {
  .page {
    padding: 16px;
    justify-content: flex-start;
    height: auto;
    min-height: 100dvh;
  }

  body {
    background: url("background.webp") no-repeat -150px center fixed;
    background-size: cover;
    overflow-y: auto;
    min-height: 100dvh;
  }

  .newsletter .label {
    font-size: 10px;
    letter-spacing: 2%;
    line-height: 14px;
  }

  .logo-track {
    gap: 23px;
  }

  .logo-track img {
    height: 74px;
  }

  .logo-strip {
    padding: 0;
    top: 16px;
    overflow: visible;
    padding-left: 16px;
  }

  .links {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
  }

  .info {
    font-size: 12px;
    line-height: 16px;
    margin-top: calc(74px + 13px);
  }

  .newsletter {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    padding: 10px 10px 10px 10px;
  }

  .newsletter input[type="email"] {
    margin-left: 0px;
    max-width: initial;
    width: 100%;
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 2%;
  }

  .newsletter-input {
    margin-left: 0;
    display: flex;
    width: 100%;
  }

  .newsletter button {
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 2%;
  }

  .links a {
    flex: 1 1 0;
    text-align: center;
    text-decoration: none;
    background: var(--yellow);
    color: var(--black);
    padding: 10px 0px;
    border-radius: 8px;
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 2%;
    text-transform: uppercase;
  }
}

@media only screen and (min-width: 770px) and (max-width: 1024px) {
  .logo-track {
    gap: 45px;
  }

  .logo-track img {
    height: 160px;
  }

  .info {
    margin-top: calc(160px + 25px);
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1440px) {
  .logo-track {
    gap: 61px;
  }

  .logo-track img {
    height: 215px;
  }

  .info {
    margin-top: calc(215px + 25px);
  }
}