/* header */

.header {
  display: none;
}

.kn-gk-navigation {
  display: none;
}

.modal-button {
  position: fixed;
  top: 12px;
  right: 24px;
  z-index: 9;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid var(--accent-2);
}

.svg {
  stroke: var(--txt-1);
}

.kn-gk-navigation-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.kn-gk-navigation-item {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  color: var(--txt-2);
  padding: 8px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.kn-gk-navigation-item:hover {
  color: var(--txt-1);
  border-color: var(--accent-2);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 50px 20px;
  padding-top: 96px;
  background: var(--bg-base);
  transform: translateY(-100%);
  transition: transform 1s ease;
  z-index: 8;
}

.modal-kn-gk-navigation-list {
  flex-direction: column;
  align-items: center;
  gap: 38px;
}

.modal-click {
  transform: translateY(0);
}

@media screen and (min-width: 1437px) {
  .header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9;
    padding: 16px 0;
    /* background: var(--bg-base); */
  }

  .kn-gk-navigation-item {
    font-size: 12px;
  }

  .kn-gk-navigation {
    display: block;
  }

  .open-modal {
    display: none;
  }
}

/* home */

#home {
  padding-top: 128px;
  padding-bottom: 0;
}

.kn-gk-app-home-container {
  position: relative;
  overflow: hidden;
}

.kn-gk-app-home-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 36px;
  line-height: 150%;
  text-align: center;
  color: var(--txt-1);
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.hero-img {
  margin: 0 auto;
  animation: rotateScale 7s infinite ease;
  transform-origin: center center;
  border-radius: 50%;
}

@keyframes rotateScale {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(0.7);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

.hero-link {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--bg-base);

  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-base);
  border-radius: 200px;
  width: 120px;
  height: 120px;
  box-shadow: 0 4px 4px 0 rgba(45, 45, 45, 0.5);
  background: var(--txt-1);
  position: absolute;
  z-index: 2;
  top: 70%;
  left: 50%;
  transition: font-weight 0.3s ease;
  transform: translateX(-50%) translateY(-50%);
}

.hero-link:hover {
  font-weight: 700;
}

@media screen and (min-width: 1437px) {
  #home {
    padding-top: 127px;
  }

  .kn-gk-app-home-title {
    font-size: 56px;
    margin: 0;
  }

  .hero-link {
    top: 55%;
  }
}

/* layers */

.layers-list {
  display: flex;
  flex-direction: column;
  gap: 80px;

  li {
    min-height: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;

    font-family: var(--second-family);
    font-weight: 400;
    font-size: 24px;
    line-height: 150%;
    text-align: center;
    color: var(--txt-1);
  }

  img {
    transition: opacity 0.5s ease-in-out;
  }
}

@media screen and (min-width: 768px) {
  .hero-link {
    top: 55%;
  }

  .layers-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 80px;
    width: 320px;
    margin: 0 auto;

    li {
      /* width: calc((100% - 80px) / 2); */
      width: 120px;
    }
  }
}

@media screen and (min-width: 1437px) {
  #layers {
    height: 340px;
  }

  .layers-list {
    width: 1120px;
    justify-content: space-between;

    li {
      /* width: calc((100% - 400px) / 6); */
    }
  }
}

/* merge */

#merge {
  p {
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 24px;
    line-height: 150%;
    text-align: center;
    color: var(--hover-glow);
    margin-top: 40px;
  }
}

.merge-wrap {
  border: 1px solid var(--accent-2);
  border-radius: 12px;
  width: 340px;
  margin: 0 auto;
  max-width: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    filter: brightness(0) saturate(100%) invert(64%) sepia(19%) saturate(453%)
      hue-rotate(224deg) brightness(94%) contrast(88%);
  }
}

.element-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 0;
  width: 340px;
  margin: 20px auto;
  max-width: 100%;

  img {
    cursor: grab;
  }
}

@media screen and (min-width: 1437px) {
  #merge {
    p {
      margin-top: 64px;
    }
  }
  .merge-cover {
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .element-wrap {
    width: 400px;
    min-height: 400px;
  }

  .merge-wrap {
    width: 400px;
    min-height: 400px;
  }
}

/* memory */

.memory-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 32px;
  line-height: 150%;
  text-align: center;
  color: var(--txt-1);
  margin-bottom: 48px;
}

.memory-list {
  display: flex;
  flex-direction: column;
  gap: 40px;

  li {
    cursor: pointer;
    transition: color 0.3s;
    color: var(--accent-1);
    p {
      font-family: var(--font-family);
      font-weight: 300;
      font-size: 20px;
      line-height: 150%;
      margin-bottom: 17px;
    }

    h5 {
      font-family: var(--font-family);
      font-weight: 300;
      font-size: 12px;
      line-height: 150%;
      text-align: right;
    }
  }

  li:hover {
    color: var(--txt-2);
  }
}

@media screen and (min-width: 1437px) {
  .memory-list {
    flex-direction: row;
    gap: 90px;

    li {
      width: calc((100% - 180px) / 3);
    }
  }
}

/* errors */

#errors {
  background-image: url(../images/vector1.png);
  background-position: top 112px center;
  background-repeat: no-repeat;
}

.errors-list {
  display: flex;
  flex-direction: column;
  width: 343px;
  margin: 0 auto;
  max-width: 100%;

  li {
    min-height: 151px;
  }

  img {
    transition: opacity 0.5s ease-in-out;
  }
}

#error-2,
#error-4 {
  align-self: flex-end;
}

@media screen and (min-width: 1437px) {
  #errors {
    background-image: url(../images/vector2.png);
    background-position: center;
    background-position: top 242px center;
    height: 412px;
  }

  .errors-list {
    display: flex;
    flex-direction: row;
    width: auto;
    margin: 0;
    max-width: 100%;
    gap: 210px;
    align-items: center;
    justify-content: center;

    li {
      min-height: 10px;
      height: auto;
    }
  }
}

/* initiation */

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;

  input {
    width: 100%;
    border: 1px solid var(--accent-1);
    border-radius: 8px;
    padding: 8px 12px;
    min-height: 56px;
    background: var(--accent-1);

    font-family: var(--third-family);
    font-style: italic;
    font-weight: 300;
    font-size: 12px;
    line-height: 200%;
    color: var(--txt-2);
    outline: none;
  }

  button {
    border-radius: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-2);
    border: 1px solid transparent;
    transition: border-color 0.3s ease;

    font-family: var(--second-family);
    font-weight: 400;
    font-size: 10px;
    line-height: 240%;
    color: var(--txt-2);
  }

  button:hover {
    border-color: var(--hover-glow);
  }
}

.output-blocks {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.output {
  background: var(--accent-1);
  border: 1px solid var(--accent-1);
  border-radius: 8px;
  padding: 16px;
  width: 100%;
  text-align: center;
  min-height: 56px;
}

.label {
  font-family: var(--third-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 133%;
  text-align: center;
  color: var(--hover-glow);
  margin-top: 8px;
}

.value {
  font-family: var(--third-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: var(--txt-2);
}

#input-error {
  font-family: var(--third-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 133%;
  text-align: center;
  color: red;
  margin-top: 8px;
}

@media screen and (min-width: 1437px) {
  .form {
    width: 479px;
    max-width: 100%;
    margin: 0 auto;
  }

  .output-blocks {
    flex-direction: row;
    justify-content: center;
  }

  .output-bloc {
    width: 300px;
  }
}

/* footer */

.footer {
  border-top: 1px solid var(--accent-1);
}

.footer-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 32px;
  line-height: 150%;
  text-align: center;
  color: var(--txt-1);
  max-width: 251px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.footer-mail {
  display: block;
  text-align: center;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 12px;
  line-height: 150%;
  color: var(--txt-1);
  margin-bottom: 40px;
}

.footer-list {
  display: flex;
  justify-content: center;
  gap: 16px;

  font-family: var(--font-family);
  font-weight: 300;
  font-size: 12px;
  line-height: 150%;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: var(--txt-1);
  margin-bottom: 40px;
}

.footer-desc {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 12px;
  line-height: 150%;
  text-align: center;
  color: var(--txt-1);
}

@media screen and (min-width: 1437px) {
  .footer-text {
    font-size: 32px;
    max-width: 100%;
    margin-bottom: 32px;
  }

  .footer-mail {
    font-size: 16px;
    margin-bottom: 48px;
  }

  .footer-list {
    font-size: 14px;
    margin: 0;
  }

  .footer-container {
    position: relative;
  }

  .footer-desc1 {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 14px;
    text-align: start;
  }

  .footer-desc2 {
    position: absolute;
    bottom: 0;
    font-size: 14px;

    right: 0;
    text-align: end;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  padding: 40px 0;
  width: 100%;
  background: var(--accent-1);
  transition: transform 0.5s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  line-height: 130%;
  text-align: center;
  color: var(--txt-1);
  margin-bottom: 44px;
}

.popup-btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px;

  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  text-align: center;
  color: var(--txt-2);
  text-decoration: underline;
  text-transform: uppercase;
  transition: color 0.3s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  border-color: var(--accent-2);
  color: var(--txt-1);
  text-decoration: none;
}

.popup-wrap {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.popup-click {
  transform: translateY(100%);
}

@media screen and (min-width: 1437px) {
  .popup-text {
  }

  .popup-wrap {
    gap: 90px;
  }
}
