
@font-face {
  font-family: 'Rubik';
  src: url('../fonts/Rubik-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rubik';
  src: url('../fonts/Rubik-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Rubik';
  src: url('../fonts/Rubik-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

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

html {
  font-family: 'Rubik', Arial, Helvetica, sans-serif;
}

body {
  background: radial-gradient(86.56% 115.41% at 20.09% 53.71%, #2C35A2 1%, #252C88 16%, #1B2167 40%, #15194F 62%, #101540 83%, #0F133B 100%);;
}

button, input {
  font-family: inherit;
}

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

ul {
  list-style: none;
}

h1, h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.container {
  margin: 0 auto;
  width: 90%;
  max-width: 1160px;
}

.btn {
  background-color: transparent;
  border: none;
  border-radius: 25px;
}

/* HEADER */
.header {
  padding: 37px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.header__logo-small {
  display: none;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  color: #ffffff;
}

.header__nav_list{
  display: flex;
  gap: 1.5rem;
}

.header__nav_list_item a {
  font-size: 16px;
}

.signup-btn {
  padding: 0.5rem 1.5rem;
  background-color: #6DE0F6;
}

.header__nav__login-btn, 
.header__nav__logout-btn,
.footer__login_btn,
.footer__logout_btn {
  padding: 0.5rem 1rem;
  color: #ffffff;
  border: 1px solid #6DE0F6;
}

.logout-btn {
  display: none;
}

/* BURGER */

.burger-menu{
  display: none;
}

.burger-menu__open-btn{
  width: 40px;
  height: 40px;
  border: none;
  background: url('../img/burger.svg') no-repeat;
  background-size: cover;
}

.burger-blur,
.modal-blur {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  backdrop-filter: blur(5px);
  display: none;
}

.burger-menu__wrapper {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 100vh;
  padding: 75px 18px;
  background-color: #CEEDFF;
}

.burger-close__span {
  position: absolute;
  right: 28px;
  top: 47px;
  display: block;
  width: 20px;
  height: 20px;
  background: url('../img/burger-close.svg') no-repeat;
  background-size: cover;
}

.burger-btn {
  margin-bottom: 55px;
  padding: 13px 65px;
  font-size: 18px;
  border: none;
  background-color: transparent;
  background-image: url('../img/burger-log-btn.svg');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.burger__logout-btn {
  display: none;
}

.burger-menu_list {
  margin-bottom: 85px;
}

.burger-menu_list_item {
  color: #0F133B;
  margin-bottom: 18px;
}

.search-form {
  position: relative;
}

.search-form__input {
  padding: 15px;
  width: 100%;
  border: none;
}

.search-input__button {
  position: absolute;
  right: 15px;
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border: orange;
  background: url('../img/search.svg');
}

/* MAIN */
.promo {
  margin-bottom: 100px;
}

.promo .container {
  color: #ffffff;
  background: url('../img/main.svg') no-repeat;
  background-position: right center;
  background-size: 50%;
}

.promo__head {
  max-width: 40%;
  font-size: 40px;
}

.promo__description {
  margin-bottom: 3rem;
  font-size: 18px;
  line-height: 1.5;
}

.exchange_form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  width: 50%;
  background: url('../img/arrows.png') no-repeat;
  background-position: 50% 68px;
}

.exchange_form__column{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: .5rem;
  width: calc(100% / 2 - 10px);
}

.exchange_form__column input,
.exchange_form__select {
  padding: 12px;
  width: 100%;
  font-size: 18px;
  background-color: #CEEDFF;
  border-radius: 5px;
}

.exchange_form_label-give::before {
  content: "You give";
}

.exchange_form_label-recieve::before {
  content: "You receive";
}

.exchange_form__row{
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 10px;
  width: 100%;
}

.exchange_form__rate,
.exchange_form__commission {
  width: 50%;
}

.exchange_form__rate::before,
.exchange_form__commission::before {
  display: block;
  margin-bottom: 0.5rem;
}

.exchange_form__rate::before{
  content: "Rate";
}

.exchange_form__commission::before {
  content: "Commission";
}

.exchange_form__rate span,
.exchange_form__commission span {
  color: #8B8B8B;
}

.exchange_form__submit {
  align-self: center;
  margin-bottom: 1.5rem;
  padding: .8rem 0;
  width: 65%;
  text-transform: uppercase;
  font-size: 18px;
  color: #ffffff;
  background-color: #D4088C;
}

.exchange_form__checkbox-label {
  text-align: center;
}

.exchange_form__checkbox-label a {
  border-bottom: 1px solid #fff;
}

/* APPLICATION */
.applications {
  position: relative;
  margin-bottom: 100px;
  padding-top: 50px;
  padding-bottom: 50px;
  background: #CEEDFF;
}

.applications__heading {
  margin-bottom: 3rem;
}

.applications::before {
  content: '';
  position: absolute;
  top: -49px;
  width:0;
  height:0;
  border-bottom: 50px solid #CEEDFF; 
  border-right: 100vw solid transparent;  
}

.applications::after {
  content: '';
  position: absolute;
  bottom: -49px;
  width:0;
  height:0;
  border-top: 50px solid #CEEDFF; 
  border-left: 100vw solid transparent;  
}

.applications__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 72px;
}

.applications__list_item {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.applications_list_item_time{
  width: 100%;
  text-align: center;
  font-size: 18px;
}

.applications__received_currency,
.applications__give_currency {
  font-weight: 500;
}

.applications__received_currency span,
.applications__give_currency span {
  font-weight: 400;
}

/* MODAL */
.modal {
  position: fixed;
  width: 300px;
  height: 400px;
  left: calc(50% - 150px);
  top: calc(50% - 200px);
  background: #CEEDFF;
  display: none;
}

.modal__close {
  float: right;
  padding: 20px;
  background: url('../img/close.svg') no-repeat center;
  background-size: 20px;
  cursor: pointer;
}
.modal__header {
  padding: 50px 20px 0;
  text-align: center;
}
.modal__content {
  padding: 20px;
  font-size: 16px;
  text-align: center;
}

/* FOOTER */
.footer {
  padding-top: 56px;
  padding-bottom: 90px;
  background-color: #323232;
  color: #FBFBFB;
}

.footer .container {
  display: flex;
  justify-content: space-between;
}

.footer__figure {
  margin-bottom: 20px;
}

.footer__copyright {
  text-align: center;
}

.footer__popular__list {
  margin-top: 12px;
  line-height: 1.2;
}

.footer__popular__list li::before {
  content: '';
  display: block;
  width: 3px;
  height: 3px;
  position: relative;
  top: 12px;
  background-color: #fff;
}

.footer__menu {
 display: flex;
 flex-direction: column;
 flex-wrap: wrap;
 max-height: 140px;
}

.footer__menu_item:not(:last-child) {
  margin-bottom: 7px;
  margin-right: 50px;
}

.footer__signup_btn {
  margin-right: 24px;
}

@media screen and (max-width: 1180px) {
  .header .container,
  .header__nav,
  .header__nav_list{
    gap: 1rem;
  }

  .footer__menu {
    max-height: initial;
  }
}

@media screen and (max-width: 992px){
  .container {
    width: 95%;
  }

  .header__logo {
    display: none;
  }

  .header__logo-small {
    display: initial;
  }

  .header__nav {
    gap: 3rem;
  }

  .header__nav_list {
    display: none;
  }

  .signup-btn {
    padding: 0.7rem 3rem;
    align-self: center;
  }

  .header__nav__login-btn{
    display: none !important;
  }

  .burger-menu {
    display: initial;
  }

  /* PROMO */

  .promo .container {
    background: none;
  }

  .promo__head{
    margin-bottom: 25px;
    max-width: 100%;
    text-align: center;
  }

  .promo__description {
    text-align: center;
  }

  /* PROMO FORM */
  .exchange_form {
    display: block;
    margin: 0 auto;
    background: url('../img/exchange-black.svg') no-repeat;
    background-position: 50% 164px
  }

  .exchange_form__column{
    width: 100%;
  }

  .exchange_form__column:first-child{
    margin-bottom: 4rem;
  }

  .exchange_form_label-give::before,
  .exchange_form_label-recieve::before {
    display: block;
    margin-bottom: 0.3rem;
    text-align: center;
  }

  .exchange_form__rate,
  .exchange_form__commission {
    width: 100%;
    height: 40px;
    text-align: center;
  }

  .exchange_form__rate {
    margin-bottom: 20px;
  }

  .exchange_form__rate::before,
  .exchange_form__commission::before {
    text-align: center;
  }

  .exchange_form__submit {
    width: 100%;
  }

  .exchange_form__checkbox-label {
    display: block;
  }

  /* APPLICATION */

  .applications__list {
    grid-template-columns: 1fr;
  }

  .applications__heading {
    text-align: center;
  }

  /* FOOTER */
  .footer .container {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
  }

  .footer__wrapper:nth-child(2) {
    order: 1;
  }

  .footer__wrapper:nth-child(3) {
    order: 2;
  }

  .footer__popular__list li {
    position: relative;
    text-align: center;
  }

  .footer__menu_item {
    text-align: center;
  }

  .footer__menu_item:not(:last-child){
    margin-right: 0;
  }
}

@media screen and (max-width: 767px) {
  .exchange_form {
    width: 100%;
  }
}