* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1rem;
}

.task-1 {
  padding: 2rem 3rem;
  background-color: lightpink;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.task-1__viewport {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.task-1__slider {
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease;
}
.task-1__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 250px;
  width: calc(50% - 10px);
  max-width: 250px;
  min-height: 300px;
  background-color: #fff;
  border-radius: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  padding: 2rem;
  flex: 0 0 auto;
}
.task-1__card-image {
  border-radius: 1rem;
}
.task-1__card-content {
  text-align: center;
  margin-top: 1.5rem;
}
.task-1__buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-inline: auto;
  gap: 2rem;
}
.task-1__button {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  width: 3rem;
  height: 3rem;
  border: 2px solid grey;
  border-radius: 50%;
  background-color: grey;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.task-1__button:disabled {
  background-color: lightgrey;
  color: grey;
  border: 2px solid lightgrey;
}
.task-1__button:disabled:hover {
  border: 2px solid lightgrey;
}
.task-1__button:hover {
  border: 2px solid white;
}

@media (max-width: 768px) {
  .task-1__card {
    width: calc(100% - 20px);
  }
  .task-1__viewport {
    padding: 0 10px;
  }
}
@media (min-width: 769px) and (max-width: 1200px) {
  .task-1__card {
    width: calc(50% - 10px);
  }
}
@media (min-width: 1201px) {
  .task-1__card {
    width: 250px;
  }
}
.task-2 {
  padding: 5rem 10rem;
  background-color: lightpink;
}
.task-2__form {
  background-color: white;
  border-radius: 3rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  min-width: 500px;
  max-width: 700px;
  margin: 0 auto;
}
.task-2__form-title {
  font-size: 1.5rem;
}
.task-2__form-label {
  color: gray;
  margin-top: 1.5rem;
}
.task-2__form-input {
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: 1rem;
  border: 2px solid grey;
  font-size: 1.2rem;
  font-family: inherit;
  font-weight: 600;
  position: relative;
  width: 100%;
}
.task-2__form-input::placeholder {
  font-weight: 400;
  color: lightgrey;
}
.task-2__form-input:focus {
  outline-color: lightpink;
}
.task-2__form-input.valid {
  border-color: green;
  background-color: #eaffea;
}
.task-2__form-input.invalid {
  border-color: red;
  background-color: #fff0f0;
}
.task-2__form .input-wrapper {
  position: relative;
}
.task-2__form .input-wrapper .status-icon {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  pointer-events: none;
  font-size: 1.2rem;
}
.task-2__form .input-wrapper .status-icon.success {
  color: green;
}
.task-2__form .input-wrapper .status-icon.error {
  color: red;
}
.task-2__form .error-message {
  color: red;
  font-size: 1rem;
  margin-top: 0.5rem;
}
.task-2__form-button {
  padding: 2rem;
  border-radius: 2rem;
  margin-top: 3rem;
  border: none;
  background-color: lightpink;
  font-size: 1.6rem;
  font-family: inherit;
  font-weight: 600;
  color: dimgrey;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}
.task-2__form-button:hover {
  background-color: #fd8799;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 10px 20px 4px rgba(255, 182, 193, 0.7);
}
.task-2__form-button:focus {
  outline-color: lightpink;
}
@media (max-width: 768px) {
  .task-2 {
    padding: 3rem 2rem;
  }
  .task-2__form {
    padding: 2rem;
    min-width: auto;
    max-width: 500px;
  }
  .task-2__form-title {
    font-size: 1.3rem;
  }
  .task-2__form-label {
    font-size: 1rem;
  }
  .task-2__form-input {
    font-size: 1rem;
    padding: 0.8rem;
  }
  .task-2__form-button {
    padding: 1.5rem;
    font-size: 1.3rem;
  }
}
@media (max-width: 480px) {
  .task-2 {
    padding: 2rem 1rem;
  }
  .task-2__form {
    padding: 1.5rem;
    border-radius: 2rem;
    width: 100%;
  }
  .task-2__form-title {
    font-size: 1.1rem;
  }
  .task-2__form-label {
    font-size: 0.9rem;
  }
  .task-2__form-input {
    font-size: 0.9rem;
    padding: 0.6rem;
  }
  .task-2__form-button {
    padding: 1rem;
    font-size: 1.1rem;
  }
}

.task-3 {
  margin-top: 5rem;
  padding-inline: 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.task-3__title {
  font-size: 3rem;
  margin: 0 auto;
  text-align: center;
}
.task-3__search-input {
  padding: 1rem;
  border-radius: 1rem;
  font-size: 1rem;
  border: 2px solid grey;
  width: 100%;
  margin-top: 1rem;
}
.task-3__search-input:focus {
  outline-color: lightpink;
}
.task-3__list {
  display: flex;
  width: 50%;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin-top: 1rem;
}
.task-3__list-item {
  width: 100%;
  border: 1px solid grey;
  border-radius: 1rem;
  padding: 1rem;
  text-align: center;
}
@media (max-width: 768px) {
  .task-3 {
    padding-inline: 3rem;
  }
  .task-3__title {
    font-size: 2.2rem;
  }
  .task-3__list {
    width: 70%;
  }
  .task-3__list-item {
    padding: 0.8rem;
    font-size: 0.95rem;
  }
  .task-3__search-input {
    padding: 0.8rem;
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  .task-3 {
    padding-inline: 1.5rem;
  }
  .task-3__title {
    font-size: 1.8rem;
  }
  .task-3__list {
    width: 100%;
  }
  .task-3__list-item {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
  .task-3__search-input {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}

.task-4 {
  margin-top: 5rem;
  padding: 5rem;
  background-color: lightpink;
  position: relative;
  min-width: 930px;
}
.task-4__image {
  position: absolute;
  bottom: -0.5rem;
  right: 2rem;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}
.task-4 .currency-widget {
  background-color: white;
  padding: 3rem 4rem;
  border-radius: 2rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.task-4 .currency-widget__title {
  font-size: 1.5rem;
}
.task-4 .currency-widget__subtitle {
  font-size: 1.2rem;
  margin-top: 2rem;
}
.task-4 .currency-widget__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 130px));
  gap: 1rem;
  list-style: none;
  margin-top: 1.5rem;
}
.task-4 .currency-widget__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: lightpink;
  padding: 1rem;
  border-radius: 1rem;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.task-4 .currency-widget__link {
  display: block;
  text-decoration: none;
  color: grey;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 4rem;
}
.task-4 .currency-widget__link:hover {
  text-decoration: underline;
}
@media (max-width: 768px) {
  .task-4 {
    padding: 2rem;
    min-width: auto;
  }
  .task-4__image {
    position: static;
    display: block;
    margin: 2rem auto 0 auto;
    width: 70%;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
  }
  .task-4 .currency-widget {
    padding: 2rem 1.5rem;
  }
  .task-4 .currency-widget__list {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .task-4 .currency-widget__item {
    font-size: 0.9rem;
    padding: 0.75rem;
  }
  .task-4 .currency-widget__title {
    font-size: 1.3rem;
  }
  .task-4 .currency-widget__subtitle {
    font-size: 1rem;
    margin-top: 1rem;
  }
  .task-4 .currency-widget__link {
    font-size: 1rem;
    margin-top: 2rem;
  }
}
@media (max-width: 480px) {
  .task-4__list {
    grid-template-columns: 1fr;
  }
  .task-4 .currency-widget__item {
    gap: 0.3rem;
  }
}

.task-5 {
  margin-top: 10rem;
  position: relative;
}
.task-5__button-up {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: black;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.task-5__button-up.visible {
  opacity: 1;
  pointer-events: auto;
}
.task-5__button-up.visible:hover {
  opacity: 0.7;
}

/*# sourceMappingURL=main.css.map */
