.button {
  background: #EB0033;
  border: none;
  border-radius: 6px;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  padding: 16px 24px;
  text-decoration: none;
}

.button:hover {
  background-color: rgb(239, 87, 83);
}

.button--block {
  display: block;
  margin: 0 auto;
  width: 100%;
}

.checkbox {
  align-items: center;
  color: #717171;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  margin-top: 8px;
  position: relative;
}

.checkbox .checkmark:after {
  border: solid #fff;
  border-width: 0 3px 3px 0;
  height: 8px;
  left: 0;
  margin: 0 auto;
  right: 0;
  transform: rotate(45deg);
  width: 4px;
}

.checkbox input {
  cursor: pointer;
  height: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

.checkbox input:checked~.checkmark {
  background-color: #EA1D2C;
}

.checkbox input:checked~.checkmark:after {
  display: block;
}

.checkbox:hover input~.checkmark {
  background-color: #ccc;
}

.checkmark {
  background-color: #eee;
  border-radius: 4px;
  display: block;
  height: 14px;
  margin-right: 4px;
  position: relative;
  width: 14px;
}

.checkmark:after {
  content: "";
  display: none;
  position: absolute;
}

.header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.link {
  color: #EA1D2C;
  font-size: 14px;
}

.list {
  padding-inline-start: 16px;
}

.list-item {
  color: #717171;
  font-size: 14px;
  font-weight: 300;
  line-height: 16px;
}

input:focus,
button:focus {
  outline: none;
}

input[type="text"],
input[type="tel"],
input[type="password"] {
  background: #FFFFFF;
  border: 1px solid #DCDCDC;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 24px;
  padding: 8px 16px;
  width: 100%;
}

header {
  background: #fff;
  border-bottom: 1px solid #F2F2F2;
  padding: 24px 0;
  position: sticky;
  top: 0;
}

.page-header {
  z-index: 1;
  padding: 24px 16px;
}

.page-header .page-button {
  display: none;
}

.page-header__container {
  max-width: 1366px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header__logo {
  width: 112px;
}

.page-header__logo:hover {
  filter: drop-shadow(0 0 4px #EA1D2C22);
}

.footer {
  background: #F7F7F7;
  padding: 40px 80px;
  display: none;
}

.footer__container {
  max-width: 1176px;
  margin: auto;
}

.footer__title {
  font-size: 16px;
  color: #3E3E3E;
  margin: 0 0 24px;
  font-weight: 500;
}

.footer__content {
  display: flex;
  gap: 136px;
  border-bottom: 1px solid #DCDCDC;
  padding: 0 64px 32px;
}

.footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__list-link {
  font-size: 16px;
  color: #717171;
  text-decoration: none;
  font-weight: 400;
}

.footer__list-item {
  padding-bottom: 24px;
}

.footer__list-link:hover {
  color: #535353;
}

.footer__bottom {
  padding: 32px 64px 0;
  display: flex;
  justify-content: space-between;
}

.footer__payments {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}

.footer__sign {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__sign-text {
  max-width: 256px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 300;
}

.footer__list-bottom {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 80px;
}

.footer__list-bottom-link {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #717171;
  text-decoration: none;
}

.footer__list-bottom-link:hover {
  color: #535353;
}

.page-button {
  background-color: #EA1D2C;
  color: #fff;
  border-radius: 8px;
  padding: 12px 42px;
  font-size: 18px;
  cursor: pointer;
  font-weight: 500;
  border-style: none;
  text-decoration: none;
  display: inline-flex;
  line-height: 24px;
  justify-content: center;
}

.page-button--full {
  width: 100%;
}

.page-button--secondary {
  background-color: #fff;
  color: #EA1D2C;
  border: 1px solid #EA1D2C;
}

.page-button:disabled {
  background-color: #F2F2F2;
  color: #A6A6A5;
  border-color: #F2F2F2;
  cursor: not-allowed;
}

.input-text {
  display: flex;
  flex-direction: column;
  padding: 16px 0 8px;
}

.input-text--no-margin {
  margin-bottom: 4px;
}

.input-text--hidden {
  display: none;
}

.input-text__wrap {
  display: flex;
  position: relative;
}

.input-text__description {
  margin: 0;
  padding-top: 8px;
  font-size: 14px;
}

.input-text__description:empty {
  padding-top: 0;
}

.input-text__description--error {
  color: #EA1D2C;
}

.input-text__placeholder {
  position: absolute;
  top: -35%;
  transform: translateY(-50%);
  background-color: #fff;
  color: #A6A6A6;
  pointer-events: none;
  transition: top 0.3s;
  padding: 0;
  line-height: 1em;
  border-radius: 4px;
}

.input-text__placeholder .input-text__placeholder--username {
  color: #717171;
}

.input-text__field {
  padding: 8px 16px;
  border: 1px solid #DCDCDC;
  background-color: #fff;
  border-radius: 8px;
  width: 100%;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  transition: border-color 0.3s;
}

.input-text--open .input-text__placeholder {
  top: -1em;
  left: 0;
}

.input-text--filled .input-text__field {
  border-color: #A6A6A5;
}

.input-text--error .input-text__field {
  border-color: #EA1D2C;
}

.input-text--disabled .input-text__field {
  border-color: #A6A6A5;
  background-color: #DCDCDC;
  color: #717171;
}

.input-text__after {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.input-text__after+.input-text__field {
  padding-right: 32px;
}

.input-text__password-view {
  height: 100%;
  position: relative;
}

.input-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  font-size: 16px;
}

.input-checkbox__field {
  position: absolute;
  filter: opacity(0);
}

.input-checkbox__check {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid #A6A6A5;
  position: relative;
}

.input-checkbox__check:before {
  content: '';
  position: absolute;
  left: 1px;
  top: 1px;
  width: 5px;
  height: 2px;
  border: 2px solid transparent;
  border-left-color: #fff;
  border-bottom-color: #fff;
  transform: rotate(-45deg);
  border-radius: 2px;
}

.input-checkbox__field:checked+.input-checkbox__check {
  background-color: #EA1D2C;
  border-color: #EA1D2C;
}

.input-checkbox__placeholder {
  transform: translateY(1px);
  user-select: none;
}

@media (max-width: 999px) {
  .page-header {
    padding: 20px 16px;
  }

  .page-header .page-button {
    padding: 8px 16px;
    font-size: 14px;
  }

  .page-header__logo {
    width: 56px;
  }

  .footer {
    display: none;
    padding: 32px 16px;
  }

  .footer__content {
    flex-direction: column;
    padding: 0 28px 28px;
    gap: 40px;
  }

  .footer__list-item:last-child {
    padding-bottom: 0;
  }

  .footer__title {
    margin-bottom: 32px;
  }

  .footer__payments {
    margin: -16px 0 48px;
  }

  .footer__security {
    margin-top: -16px;
  }

  .footer__bottom {
    padding: 32px 20px 8px;
    flex-direction: column-reverse;
  }

  .footer__list-bottom {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .footer__nav-bottom {
    padding-bottom: 40px;
  }

  .footer__sign-text {
    flex: 1;
  }
}