@charset "UTF-8";
@font-face {
  font-family: "Arial";
  font-weight: normal;
  font-style: normal;
  src: local("Arial"), local("Arial-MT"), url("../assets/fonts/ArialMT.woff") format("truetype");
}
@font-face {
  font-family: "Arial";
  font-weight: bold;
  font-style: normal;
  src: local("Arial Bold"), local("Arial-BoldMT"), url("./../../../assets/fonts/Arial-BoldMT.ttf") format("truetype");
}
@font-face {
  font-family: "Arial";
  font-weight: 900;
  font-style: normal;
  src: local("Arial Black"), local("Arial-Black"), url("./../../../assets/fonts/Arial-Black.ttf") format("truetype");
}
@font-face {
  font-family: "Mono";
  font-weight: 900;
  font-style: normal;
  src: local("Mono"), local("Mono Bold"), url("../assets/fonts/MonospaceBold.ttf") format("truetype");
}
a {
  text-decoration: none;
  color: #ffffff;
}
a span {
  display: none;
}

.link {
  cursor: pointer;
}
.link:hover {
  scale: 1.1;
}

.locked {
  cursor: default;
}
.locked:hover {
  cursor: default;
  scale: none !important;
}
.locked:active {
  border-style: unset;
}
.locked:focus-visible {
  outline: unset;
}

button.locked {
  opacity: 0.5;
}

.hidden {
  transition: display 1s;
  display: none !important;
  visibility: hidden;
}

html {
  scroll-behavior: smooth;
  background-color: #272e54;
}

* {
  font-family: "Arial", sans-serif;
  font-weight: 400;
  margin: 0;
  box-sizing: border-box;
  color: #ffffff;
  transition: all 0.5s;
  text-align: center;
}
*::before {
  box-sizing: border-box;
}
*::after {
  box-sizing: border-box;
}

body {
  position: relative;
}
body.active {
  overflow: hidden;
}

main {
  min-height: calc(100vh - 180px);
  padding: 30px 0;
}

.container {
  margin: 0 auto;
  max-width: 1360px;
  padding: 0 40px;
}

.header__wrapper {
  position: relative;
  overflow: hidden;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header__wrapper-item {
  display: block;
  width: 200px;
}
.header__wrapper-item img {
  height: 100px;
}
.header__wrapper-item__central {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  display: flex;
  column-gap: 10px;
  padding: 0 10px;
  height: 40px;
  border-radius: 5px;
  outline: 2px solid #ffffff;
  background-color: #74abff;
  text-transform: uppercase;
  line-height: 40px;
}
.header__wrapper-item__central::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 30px;
  background: lightslategray;
}
.header__wrapper-item__central h3, .header__wrapper-item__central h4 {
  font-size: 30px;
  z-index: 2;
}
.header__wrapper-item__central h4 {
  width: 15px;
  font-weight: bold;
}
.header__wrapper-item__central h4.num2 {
  transform: translateY(-40px);
}
.header__wrapper-item__central h4.num3 {
  transform: translateY(-80px);
}
.header__wrapper-item__central h4.num4 {
  transform: translateY(-120px);
}
.header__wrapper-item__central h4.num5 {
  transform: translateY(-160px);
}
.header__wrapper-item__central.pos-start {
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}
.header__wrapper-item__switcher {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  row-gap: 10px;
}
.header__wrapper-item__switcher__area {
  position: relative;
  width: 90px;
  background: #74abff;
  height: 30px;
  border-radius: 30px;
  outline: 2px solid #ffffff;
}
.header__wrapper-item__switcher__point {
  position: absolute;
  content: "";
  width: 30px;
  height: 30px;
  left: 0;
  border-radius: 100%;
  background-color: lightgreen;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.header__wrapper-item__switcher__point.pos1 {
  left: 30px;
  background-color: #e9c50d;
}
.header__wrapper-item__switcher__point.pos2 {
  left: 60px;
  background-color: #da2424;
}
.header__wrapper-item__switcher__point:hover {
  scale: 1.1;
}
.header__wrapper-item__switcher__text {
  text-transform: uppercase;
  font-size: 20px;
  line-height: 24px;
}

.main__wrapper {
  display: flex;
  flex-wrap: wrap;
  row-gap: 60px;
  justify-content: center;
  column-gap: 30px;
}
.main__wrapper__sequence {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 520px;
  padding: 10px;
  margin: 0 380px;
  border: 3px solid rgba(116, 171, 255, 0.5);
  background-color: #74abff;
  border-radius: 10px;
  box-shadow: 0 16px rgba(116, 171, 255, 0.5), -8px 8px 24px rgba(0, 0, 0, 0.75);
  position: relative;
  row-gap: 15px;
  transform: translateY(calc(-100% - 160px));
}
.main__wrapper__sequence-task {
  overflow: hidden;
  border: 2px solid;
  border-radius: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.main__wrapper__sequence-task h2 {
  padding: 10px;
  width: 50%;
  height: 100%;
  font-weight: bold;
  font-size: 18px;
  line-height: 52px;
  text-transform: uppercase;
  backdrop-filter: brightness(0.5);
}
.main__wrapper__sequence-task p {
  padding: 10px;
  width: 50%;
  height: 100%;
  font-family: Mono, sans-serif;
  line-height: 48px;
  text-align: start;
  background-color: lightslategray;
  font-size: 30px;
}
.main__wrapper__sequence-input {
  margin: 0 auto;
  width: 50%;
  transition: 0.3s all;
}
.main__wrapper__sequence-input input {
  border: 3px double #74abff;
  border-radius: 10px;
  width: 100%;
  padding: 5px;
  color: #74abff;
  font-weight: bold;
  font-size: 25px;
}
.main__wrapper__sequence-input input:active {
  border: 3px solid #272e54;
}
.main__wrapper__sequence-input input.right {
  outline: 1px solid lightgreen;
  background-color: lightgreen;
}
.main__wrapper__sequence-input input.wrong {
  outline: 1px solid #da2424;
  background-color: #da2424;
}
.main__wrapper__sequence.pos-start {
  transform: translateY(0);
}
.main__wrapper__keyboard {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 520px;
  margin: 0 380px;
  row-gap: 5px;
  border: 3px solid #ffffff;
  border-radius: 10px;
  background: #74abff;
  box-shadow: 0 16px rgba(255, 255, 255, 0.9), -8px 8px 24px rgba(0, 0, 0, 0.75);
  transform: translateY(calc(-100% - 400px));
}
.main__wrapper__keyboard-key {
  height: 45px;
  width: 45px;
  margin: 3px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  font-size: 25px;
  cursor: pointer;
}
.main__wrapper__keyboard-key:active {
  background: rgba(255, 255, 255, 0.3);
}
.main__wrapper__keyboard-key.pressed {
  background-color: #272e54; /* Цвет подсветки */
  border: 2px solid #ffffff; /* Рамка */
  transition: background-color 0.3s ease, border 0.3s ease;
}
.main__wrapper__keyboard-key.disabled:active {
  background: rgba(255, 255, 255, 0.5);
}
.main__wrapper__keyboard.pos-start {
  transform: translateY(0);
}
.main__wrapper__start, .main__wrapper__restart, .main__wrapper__repeat, .main__wrapper__next {
  display: block;
  background: #74abff;
  height: 50px;
  border-radius: 10px;
  border: none;
  outline: 2px solid #ffffff;
  text-transform: uppercase;
  font-size: 30px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s all;
}
.main__wrapper__start:hover, .main__wrapper__restart:hover, .main__wrapper__repeat:hover, .main__wrapper__next:hover {
  scale: 1.1;
}
.main__wrapper__start.active, .main__wrapper__restart.active, .main__wrapper__repeat.active, .main__wrapper__next.active {
  scale: 1.1;
  background: lightgreen;
}

.popup {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10;
}
.popup__wrapper {
  position: relative;
  overflow: hidden;
  width: 50%;
  height: 50%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  row-gap: 30px;
  border: 3px solid #ffffff;
  border-radius: 10px;
  background: #74abff;
  box-shadow: 0 16px rgba(255, 255, 255, 0.9), -8px 8px 24px rgba(0, 0, 0, 0.75);
}
.popup__wrapper__cross {
  position: absolute;
  right: 10px;
  top: 20px;
  display: block;
  width: 30px;
  height: 30px;
  z-index: 100;
  cursor: pointer;
}
.popup__wrapper__cross span {
  position: absolute;
  display: block;
  width: 100%;
  height: 3px;
  background: #74abff;
}
.popup__wrapper__cross span:nth-child(1) {
  transform: rotate(45deg);
}
.popup__wrapper__cross span:nth-child(2) {
  transform: rotate(-45deg);
}
.popup__wrapper__message {
  display: block;
  font-size: 34px;
  line-height: 34px;
  background: lightslategray;
  width: 100%;
  padding: 40px;
}
.popup__wrapper button {
  display: block;
  background: #74abff;
  height: 50px;
  border-radius: 10px;
  border: none;
  outline: 2px solid #ffffff;
  text-transform: uppercase;
  font-size: 30px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s all;
  animation: win-scale 2s ease-in-out infinite;
}
@keyframes win-scale {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
.popup__wrapper button:hover {
  scale: 1.1;
}
.popup__wrapper button.active {
  scale: 1.1;
  background: lightgreen;
}

footer {
  background-color: #74abff;
}

.footer__wrapper {
  height: 80px;
  padding: 0 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer__wrapper-item {
  height: 60px;
  font-size: 24px;
}
.footer__wrapper p {
  padding-top: 40px;
}

@media (max-width: 1360px) {
  main {
    min-height: calc(100vh - 160px);
  }
  .container {
    max-width: 1080px;
    padding: 0 40px;
  }
  .header__wrapper {
    height: 80px;
  }
  .header__wrapper-item {
    width: 150px;
  }
  .header__wrapper-item img {
    height: 80px;
    float: left;
  }
  .header__wrapper-item__central h3, .header__wrapper-item__central h4 {
    font-size: 26px;
  }
  .header__wrapper-item__switcher {
    margin-top: 10px;
  }
  .header__wrapper-item__switcher__area {
    width: 75px;
    height: 25px;
    border-radius: 25px;
  }
  .header__wrapper-item__switcher__point {
    width: 25px;
    height: 25px;
  }
  .header__wrapper-item__switcher__point.pos1 {
    left: 25px;
  }
  .header__wrapper-item__switcher__point.pos2 {
    left: 50px;
  }
  .main__wrapper {
    row-gap: 40px;
    column-gap: 40px;
  }
  .main__wrapper__sequence {
    margin: 0 200px;
  }
  .main__wrapper__sequence-task h2 {
    font-size: 20px;
    line-height: 30px;
  }
  .main__wrapper__sequence-task p {
    line-height: 30px;
  }
  .main__wrapper__sequence-input {
    width: 70%;
  }
  .main__wrapper__sequence-input input {
    padding: 2px;
  }
  .main__wrapper__keyboard {
    width: 600px;
    margin: 0 200px;
  }
  .main__wrapper__keyboard__chars, .main__wrapper__keyboard__numbers {
    width: 100%;
  }
  .main__wrapper__keyboard-key {
    width: 53px;
  }
  .main__wrapper__start, .main__wrapper__restart, .main__wrapper__repeat, .main__wrapper__next {
    height: 40px;
    font-size: 28px;
    line-height: 33px;
  }
  .footer__wrapper {
    height: 70px;
    padding: 0 50px;
  }
  .footer__wrapper-item {
    height: 50px;
    font-size: 22px;
  }
  .footer__wrapper p {
    padding-top: 25px;
  }
}
@media (max-width: 1080px) {
  main {
    min-height: calc(100vh - 120px);
  }
  .container {
    max-width: 750px;
    padding: 0 40px;
  }
  .header__wrapper {
    height: 70px;
  }
  .header__wrapper-item {
    width: 150px;
  }
  .header__wrapper-item img {
    height: 70px;
    float: left;
  }
  .header__wrapper-item__switcher {
    row-gap: 5px;
  }
  .header__wrapper-item__switcher__area {
    width: 60px;
    height: 20px;
    border-radius: 20px;
  }
  .header__wrapper-item__switcher__point {
    width: 20px;
    height: 20px;
  }
  .header__wrapper-item__switcher__point.pos1 {
    left: 20px;
  }
  .header__wrapper-item__switcher__point.pos2 {
    left: 40px;
  }
  .header__wrapper-item__switcher__text {
    font-size: 18px;
    line-height: 22px;
  }
  .main__wrapper {
    row-gap: 30px;
    column-gap: 30px;
  }
  .main__wrapper__sequence {
    margin: 0;
  }
  .main__wrapper__sequence-task h2 {
    font-size: 23px;
    line-height: 26px;
  }
  .main__wrapper__sequence-task p {
    line-height: 26px;
    font-size: 32px;
  }
  .main__wrapper__sequence-input {
    width: 100%;
  }
  .main__wrapper__keyboard {
    width: 100%;
    margin: 0;
  }
  .main__wrapper__keyboard__chars, .main__wrapper__keyboard__numbers {
    width: 100%;
  }
  .main__wrapper__keyboard-key {
    width: calc(10% - 7px);
  }
  .main__wrapper__start, .main__wrapper__restart, .main__wrapper__repeat, .main__wrapper__next {
    height: 35px;
  }
  .footer__wrapper {
    height: 50px;
    padding: 0 30px;
  }
  .footer__wrapper-item {
    height: 35px;
    font-size: 18px;
  }
  .footer__wrapper p {
    padding-top: 15px;
  }
  .popup__wrapper__message {
    font-size: 24px;
    line-height: 30px;
    padding: 20px;
  }
  .popup__wrapper button {
    font-size: 28px;
  }
  .popup__wrapper__cross {
    right: 5px;
    top: 15px;
    width: 20px;
    height: 20px;
  }
}
@media (max-width: 768px) {
  main {
    min-height: calc(100vh - 100px);
    padding: 0 0 10px 0;
  }
  .container {
    max-width: 100%;
    padding: 0 10px;
  }
  .header__wrapper {
    height: 60px;
  }
  .header__wrapper-item {
    width: 100px;
  }
  .header__wrapper-item img {
    height: 50px;
  }
  .header__wrapper-item__central {
    height: 30px;
    line-height: 30px;
  }
  .header__wrapper-item__central h4.num2 {
    transform: translateY(-30px);
  }
  .header__wrapper-item__central h4.num3 {
    transform: translateY(-60px);
  }
  .header__wrapper-item__central h4.num4 {
    transform: translateY(-90px);
  }
  .header__wrapper-item__central h4.num5 {
    transform: translateY(-120px);
  }
  .header__wrapper-item__switcher__text {
    font-size: 16px;
    line-height: 20px;
  }
  .footer__wrapper {
    height: 40px;
  }
  .footer__wrapper-item {
    height: 30px;
    font-size: 14px;
  }
  .footer__wrapper p {
    padding-top: 10px;
  }
}
@media (max-width: 460px) {
  .main__wrapper__sequence-task h2 {
    font-size: 14px;
    line-height: 20px;
  }
  .main__wrapper__sequence-task p {
    line-height: 20px;
    font-size: 22px;
  }
  .main__wrapper__sequence-input {
    width: 100%;
  }
  .main__wrapper__sequence-input input {
    font-size: 20px;
  }
  .main__wrapper__keyboard-key {
    height: 30px;
    font-size: 18px;
  }
  .main__wrapper__start, .main__wrapper__restart, .main__wrapper__repeat, .main__wrapper__next {
    height: 35px;
    font-size: 24px;
    line-height: 33px;
  }
  .popup__wrapper__message {
    font-size: 14px;
    line-height: 17px;
    padding: 20px;
  }
  .popup__wrapper button {
    height: 40px;
    font-size: 18px;
  }
  .popup__wrapper__cross {
    top: 10px;
    width: 15px;
    height: 15px;
  }
}
