@font-face {
  font-family: "SF Compact Display";

  src: url("./fonts/FontsFree-Net-SFCompactDisplay-Bold.ttf") format("opentype");
  font-style: normal;
  font-weight: bold;
}
@font-face {
  font-family: "SF Compact Display reg";

  src: url("./fonts/FontsFree-Net-SFCompactDisplay-Regular.ttf")
    format("opentype");
  font-style: normal;
  font-weight: normal;
}
body {
  min-width: 1104px;
}

p {
  font-family: SF Compact Display reg;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;

  color: #ffffff;
}
.wrap {
  width: 100%;
  height: 723px;
  max-width: 1104px;
  background-color: #3c4349;
  padding: 79px 114px 0 117px;
  margin: 0 auto;
  overflow: hidden;
}

.container {
  max-width: 870px;
  margin: 0 auto;

  position: relative;
}
.header_title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 42px;
}
.header_back {
  display: flex;
  align-items: center;
  padding: 1.5px;
}
i {
  border: solid wheat;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
}
.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
}

.header_back a {
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;

  color: #ffffff;
}
.header_name {
  font-family: SF Compact Display;
  font-weight: 900;
  font-size: 40px;
  line-height: 0.73;
  color: #ffffff;
}
.header_details {
  font-weight: 600;
  font-size: 12px;
  color: #ffffff;
  padding: 1px;
  cursor: pointer;
  text-transform: uppercase;
}
.header_submenu {
  margin: 0 auto;
  max-width: 374px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sub_items {
  display: flex;
  justify-content: space-between;
}
.sub_item {
  width: 66px;
  height: 33px;
  color: #ffffff;
  font-size: 12px;
  display: flex;
  justify-content: center;

  align-items: center;
}

.sub_item:nth-child(1) {
  background-color: #63696d;
  border-radius: 10px;
}
.header_balance {
  color: #ffffff;
}
.header_balance span {
  opacity: 40%;
  margin-right: 7px;
}
.order_details_window {
  padding: 23px 20px;
  width: 194px;
  height: 98px;
  display: grid;
  grid-template-columns: 1fr 39px;
  grid-template-rows: 1fr 1fr;
  grid-gap: 25px;
  background-color: #ffffff;
  border-radius: 8px;
  position: relative;
}
.dr {
  position: absolute;
  top: -5px;
  left: 143.5px;
  width: 38px;
  height: 23px;
  background-color: #ffffff;
  border-radius: 8px;
}
.order_details_window p:nth-child(odd) {
  color: #111111;
  opacity: 0.5;
  font-weight: 400;
  font-size: 12px;
}
.order_details_window p:nth-child(even) {
  color: #111111;

  font-weight: 400;
  font-size: 12px;
}
.order_details_window_wrap {
  position: absolute;
  top: 40%;
  left: 79%;
}
.header {
  margin-bottom: 87px;
}
.main {
  display: flex;
  justify-content: space-between;
}
.add_new_card {
  position: relative;
}
.add_items {
  padding: 19px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #7fcdfa;
  border-radius: 8px;
  width: 100%;
  max-width: 300px;
  margin-bottom: 12px;
  background-color: #47494e;
}
.add_items p {
  padding-right: 22px;
}
.add_items p:nth-child(2) {
  font-size: 16px;
}
.add_items p:nth-child(5) {
  padding-right: 32.5px;
  font-size: 12.5px;
}
.add_items:nth-child(2) {
  padding: 17.5px 16px;
  border: 0;
  border-radius: 8px;
  position: relative;
}
.add_items:last-child {
  border: 1px solid #ffffff;
  opacity: 0.5;
  text-transform: uppercase;
  margin: 32px 0 0 0;
  justify-content: center;
}
.add_items img {
  max-width: 37px;
  max-height: 12px;
  margin-right: 36.5px;
}
.img_mc {
  display: flex;
  align-items: center;
  margin-right: 36.5px;
}
.img_mc img {
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: 17.02px;
  max-height: 21.04px;
  position: relative;
  z-index: 2;
}
.img_mc img:nth-child(1) {
  margin-right: -4.6px;
}
.img_mc img:nth-child(3) {
  margin-left: -4.6px;
}
.img_mc img:nth-child(2) {
  max-width: 9.2px;
  max-height: 16.52px;
  z-index: 1;
}
.card,
.card_visa {
  width: 100%;
  height: 100%;
  max-width: 354px;
  max-height: 223px;

  position: relative;
}
.card_visa {
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 24px;
}

.sub {
  background-color: #47494e;

  height: 100%;
  width: 100%;

  border-radius: 7px;

  position: relative;
  overflow: hidden;
}
.sub_visa {
  background-color: #47494e;

  height: 100%;
  width: 100%;

  border-radius: 7px;

  position: relative;
  overflow: hidden;
}

.sub img:nth-child(1) {
  width: 100%;
  max-width: 354px;
  max-height: 223px;
  padding: 0;
  padding-top: 7px;
  position: relative;
  height: 100%;
  top: 0;
  left: 0px;
}

.sub img:nth-child(2) {
  width: 100%;
  max-width: 180px;
  position: absolute;
  top: 40px;
  left: 185px;
}
.sub_visa_img {
  height: 223px;
}
.sub_visa_img img {
  max-height: 187px;
  max-width: 354px;
  position: absolute;
  top: 22.42%;
  left: 1.695%;
}
.tree_dots_wrap {
  position: absolute;
  top: 49%;
  left: 93.6%;
  max-width: 4px;
}
.tree_dots {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #fff;

  position: relative;
}
.tree_dots::before {
  content: "";
  width: 4px;
  height: 4px;
  background-color: #fff;
  border-radius: 50%;

  position: absolute;
  top: -200%;
  left: 0;
}
.tree_dots:after {
  content: "";
  width: 4px;
  height: 4px;
  background-color: #fff;
  border-radius: 50%;

  position: absolute;
  top: 200%;
  left: 0;
}
.some_circle_wrap {
  position: absolute;
  top: 73%;
  left: 50%;
}
.some_circle {
  line-height: 10em; /* подробнее про line-height */
  text-align: center;
  margin-left: -14px;
  width: 28px;
  height: 28px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
}
.some_circle span {
  position: absolute;
  top: -200%;
  left: 11px;
  max-height: 15px;
  font-family: SF Compact Display reg;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
}
.card_func_wrap {
  position: absolute;
  top: 28.699%;
  left: 37.877%;
}

.card_func {
  padding: 16px 24px 20px 20px;

  width: 100%;
  max-width: 106px;

  display: grid;
  grid-template-columns: 1fr 34px;
  grid-template-rows: 1fr 1fr;
  grid-row-gap: 17px;
  grid-column-gap: 17px;
  background-color: #ffffff;
  border-radius: 8px;
  position: relative;
}

.card_func p {
  color: #111111;
  display: flex;
  align-items: center;
}
.card_func_img_2_wrap + p {
  opacity: 0.4;
}

.gr {
  position: absolute;
  top: 12%;
  left: -4.5%;
  width: 23px;
  height: 38px;
  background-color: #ffffff;
  border-radius: 8px;
}

.card_func_img_1,
.card_func_img_2 {
  position: relative;
}
.card_func_img_2 {
  max-width: 22px;
  max-height: 24px;
  opacity: 0.4;
}

.card_func_img_1 img:nth-child(1) {
  max-width: 20px;
  max-height: 20px;
}
.card_func_img_1 img:nth-child(2) {
  position: absolute;
  top: -13.5238%;
  left: 45%;

  max-width: 13px;
  max-height: 13px;
}
.card_func_img_2 img:nth-child(1) {
  max-width: 24px;
  max-height: 24px;
  color: #111111;
}

.card_img_mc {
  display: flex;
  align-items: center;
  margin: 2px 0 0 10px;
}
.card_img_mc .img_mc {
  margin-right: 7px;
}
#mc_vector_img {
  max-width: 79px;
  max-height: 10px;
}
.card_content_wrap {
  width: 100%;
  height: 100%;
  padding: 20px;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  grid-row-gap: 50px;
}
.card_content_item_1 {
  display: flex;
  justify-content: space-between;
}
#card_img_2 {
  max-width: 24px;
  max-height: 20px;
}
.card_content_item_2 {
  display: flex;
  justify-content: space-between;
  margin-bottom: -13px;
}
.card_content_item_2 p {
  font-weight: 500;
  font-size: 24px;
  line-height: 29px;
}
.card_content_item_3 {
  display: flex;
  justify-content: space-between;
}
.cvv {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 122px;
  justify-content: space-between;
}
.expire_date {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.expire_date p:nth-child(2) {
  font-size: 14px;
  line-height: 17px;
}
#cvv_icon {
  max-width: 16px;
  max-height: 16px;
}
.cvv_btn {
  background: #ffffff;
  opacity: 0.7;
  border-radius: 20px;
}
.cvv_btn p {
  font-size: 15px;
  line-height: 18px;
  color: #4e5055;
  margin: 10px 32px;
}
#card_visa_img {
  width: 100%;
  height: 100%;
  max-width: 40px;
  max-height: 13px;
}
.price {
  display: flex;
  justify-content: space-between;
  max-width: 300px;
}
#price {
  font-weight: 500;
  font-size: 24px;
  line-height: 29px;
  margin-top: 3px;
}
#price_slach {
  font-size: 24px;
  margin: 0 45px 0 37px;
}
input[type="checkbox"]:checked,
input[type="checkbox"]:not(:checked) {
  position: absolute;
  left: -9999px;
}

input[type="checkbox"]:checked + label,
input[type="checkbox"]:not(:checked) + label {
  display: inline-block;
  position: relative;
  padding-left: 28px;
  line-height: 20px;
  cursor: pointer;
}
input[type="checkbox"]:checked + label:before,
input[type="checkbox"]:not(:checked) + label:before {
  content: "";
  position: absolute;
  left: 0px;
  top: 0px;
  width: 24px;
  height: 24px;
  border: 1px solid #dddddd;
  background: rgba(255, 255, 255, 0.1);
}

input[type="checkbox"]:checked + label:before,
input[type="checkbox"]:not(:checked) + label:before {
  border-radius: 4px;
}

input[type="checkbox"]:checked + label:after,
input[type="checkbox"]:not(:checked) + label:after {
  content: "";
  position: absolute;

  transition: all 0.2s ease;
}

input[type="checkbox"]:checked + label:after,
input[type="checkbox"]:not(:checked) + label:after {
  left: 5px;
  top: 6px;
  width: 13.61px;
  height: 7.65px;
  border-radius: 1px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;

  transform: rotate(-45deg);
}
input[type="checkbox"]:not(:checked) + label:after {
  opacity: 0;
}

input[type="checkbox"]:checked + label:after {
  opacity: 1;
}

.label_wrap p {
  margin-top: 1.5px;
}
.pay {
  display: flex;
  justify-content: space-between;
  margin: 58px 0 69px 0;
}
.pay_btn {
  width: 141px;
  height: 35px;
  background: linear-gradient(
    360deg,
    #67c870 0%,
    #81e79b 99.99%,
    rgba(103, 200, 112, 0) 100%
  );
  border-radius: 8px;
  margin-left: 36px;
}
.pay_btn p {
  font-size: 15px;
  line-height: 18px;
}
.submit_pay,
.pay_btn {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer p {
  text-transform: uppercase;
  color: #a6a6a6;
  text-align: center;
}
.footer span {
  text-transform: uppercase;
  color: #fff;
}
.footer {
  margin-bottom: 41px;
}
