.referral {
  max-width: 800px;
  width: 100%;
}

.title {
  position: relative;
  max-width: 594px;
  padding-bottom: 15px;
  margin: 0 auto;
  margin-bottom: 15px;
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
}

.title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 90px;
  height: 3px;
  background: #FFA724;
  border-radius: 5px;
}

.title--center {
  text-align: center;
}

.title--center::after {
  left: 50%;
  transform: translateX(-50%);
}

.title--big {
  font-size: 24px;
  line-height: 36px;
  max-width: none;
  width: 100%;
}

.referral__wrap, .pay_once {
  padding: 25px 20px;
  border: 3px solid #004688;
  border-radius: 20px;
}

.referral__wrap--padding {
  padding: 30px 20px;
  padding-right: 60px;
}

.referral__text {
  margin: 0;
  margin-bottom: 15px;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  
}

.referral__text a,
.referral__bold a {
  color: #004688;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
  white-space: break-spaces;
  word-wrap: break-word;
}

.referral__text a.bold {
  font-weight: 700;
}

.referral__wrap--padding .referral__text {
  margin-bottom: 17px;
}

.referral__wrap--partner2 .referral__text,
.referral__wrap--partner2 .referral__bold {
  margin-bottom: 20px;
}

.referral__wrap .referral__text:last-child {
  margin-bottom: 0;
}



.pay_once {
	margin-bottom:30px;
	justify-content:space-evenly;
	display:flex;
	align-items: center;
	padding: 25px 20px;
	border: 3px solid #004688;
	border-radius: 20px;
}
.pay_once__text {
  margin-bottom: 0;
}
.pay_once__text {
  margin: 0;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: #000000;
}
.pay_once_left {
	max-width: 250px;
}
.pay_once_right {
	max-width: 250px;
}

.pay_once__old_price {
	font-size: 30px;
	font-weight: 700;
	position: relative;
	margin:10px;
	color:grey;
}
.pay_once__old_price:before {
	content: "";
	border-bottom: 2px solid red;
	position: absolute;
	width: 100%;
	height: 50%;
	transform: rotate(-10deg);
	margin-top:-8px;

}
.pay_once__price {
	font-size: 36px;
	font-weight: 700;
	color:green;
	line-height: 40px;
}
.pay_once__price_before {
	padding:20px;
	font-size:16px;
}




.referral__text a:hover,
.referral__bold a:hover {
  border-color: #004688;
}

.referral__text--margin {
  margin-bottom: 10px;
}

.referral__text-percent-big {
  font-size: 20px;
  font-weight: 700;
}

.referral__text-percent-big span {
  color: #004688;
  font-size: 24px;
}

.referral__text-percent {
  color: #004688;
  font-weight: 700;
}

.referral__social-item p {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  margin-bottom: 15px;
}

.referral__subtitle {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #000000;
}

.referral__subtitle svg {
  margin-right: 10px;
}

.referral__subtitle--icon {
  font-weight: 600;
}

.referral__subtitle--icon svg {
  margin-right: 0;
  margin-left: 7px;
}

.referral__subtitle--margin {
  margin-top: 21px;
  margin-bottom: 15px;
}

.referral__main>.referral__subtitle {
  margin-bottom: 30px;
}

.referral__field {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.referral__field-wrap {
  display: flex;
  width: 74%;
}

.referral__field .referral__title {
  margin: 0 auto;
  font-weight: 600;
  margin-bottom: 20px;
}

.referral__field .referral__title svg {
  margin-right: 0;
  margin-left: 7px;
}

.referral__input-code {
  width: 85%;
  display: block;
  padding: 8px 5px;
  margin-right: 10px;
  border-left: 10px solid #004688;
  background: #CCE3FF;
  font: inherit;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  color: #004688;
}

.referral__input-code:focus {
  outline-color: #004688;
}

.referral__btn {
  display: block;
  border: 1px solid #CCE3FF;
  background: #fff;
  border-radius: 5px;
  margin: 0;
  padding: 8px;
  padding-left: 45px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  background-image: url("/img/icons3/copylink.svg");
  background-repeat: no-repeat;
  background-size: 30px;
  background-position-y: center;
  background-position-x: 10px;
  cursor: pointer;
  outline: 0;
  transition: all 0.3s;
}

.referral__btn:hover {
  border-color: #004688;
}

.referral__social {
  margin: 20px 0;
  display: flex;
}

.referral__social-item {
  margin-right: 90px;
  display: flex;
  flex-direction: column;
}

.referral__social-item>div {
  margin-top: auto;
}

.ya-share2__list.ya-share2__list_direction_horizontal>.ya-share2__item,
.ya-share2__badge {
  width: 40px !important;
  height: 40px !important;
}

.ya-share2__badge {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.ya-share2__container_shape_round.ya-share2__container_size_m .ya-share2__badge .ya-share2__icon:not(.ya-share2__icon_messenger-contact):not(.ya-share2__icon_more):not(.ya-share2__icon_copy) {
  background-size: 30px 30px !important;
}

.ya-share2__container_size_l .ya-share2__badge .ya-share2__icon {
  width: 40px !important;
  height: 40px !important;
}

.ya-share2__container_shape_round.ya-share2__container_size_l .ya-share2__badge .ya-share2__icon:not(.ya-share2__icon_messenger-contact):not(.ya-share2__icon_more):not(.ya-share2__icon_copy) {
  background-size: 30px 30px !important;
  background-repeat: no-repeat;
}

.referral__main {
  margin: 25px 0;
  margin-bottom: 20px;
}

.referral__item {
  margin-bottom: 16px;
}

.referral__item input {
  display: block;
  max-width: 740px;
  padding: 10px;
  width: 100%;
  border: 1px solid #004688;
  border-radius: 5px;
}

.referral__item input:focus {
  outline: 0;
  border-color: #004688;
}

.referral__item--width input {
  max-width: 639px;
}

.btn-blue {
  display: block;
  margin: 20px 0;
  padding: 19px 15px;
  text-align: center;
  font: inherit;
  background: #004586;
  border-radius: 5px;
  border: none;
  font-weight: 500;
  font-size: 18px;
  line-height: 22px;
  color: #FFFFFF;
  cursor: pointer;
  outline: 0;
  transition: all 0.3s;
}

.btn-blue:hover {
  background: #023d74;
}

a.btn-blue {
  max-width: 539px;
  margin: 25px auto;
  padding: 25px 15px;
}

.referral__text--icon {
  position: relative;
  display: inline-block;
  padding-right: 45px;
}

.copylink  {
  position: absolute;
  top: -2px;
  right: 0;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.referral__bold {
  margin-bottom: 30px;
  font-weight: 600;
  width: 90%;
  font-size: 16px;
  line-height: 24px;
}

.referral__bold span, .reflink_refid {
  background: #CCE3FF;
  padding: 4px;
  border-left: 10px solid #004688;
  font-size: 14px;
  font-weight: 700;
}

.referral__bold:last-child {
  margin-bottom: 0;
}

.referral__bottom {
  display: flex;
}

.referral__bottom-block:first-child {
  margin-right: 33px;
}

.referral__table,
.referral__table tbody {
  display: block;
  width: 100%;
}

.referral__table tr {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #CCE3FF;
  padding-right: 20px;
  width: 100%;
}

.referral__table tr:first-of-type {
  border-top: 1px solid #CCE3FF;
}

.referral__table td {
  padding: 8px 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
}

.referral__bottom-table {
  display: flex;
}
.referral__bottom-table-header {
  margin: 30px 0px 10px 0px;
  font-weight: 600;
}
.referral__bottom-table-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0px;
  padding: 10px;
  flex-grow: 1;
  max-width: 160px;
  text-align: center;

  font-size: 16px;
  line-height: 20px;
  color: #444444;
  border: 1px solid #444444;
  background: #FFFAF2;
}

.referral__bottom-table-item:first-of-type {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

.referral__bottom-table-item:last-of-type {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

.referral__bottom-table-item:not(:last-of-type) {
  border-right: none;
}

@media (max-width: 1199px) {
  .referral__field-wrap {
    width: 100%;
  }

  .referral__social-item {
    margin-right: 50px;
  }
}


@media (max-width: 1023px) {
  .referral__title {
    padding-bottom: 10px;
    margin: 0;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 24px;
    text-align: left;
  }

  .title--center::after {
    left: 0;
    transform: none;
  }

  .referral__wrap, .pay_once {
    padding: 10px 15px;
  }

  .referral__field-wrap {
    flex-wrap: wrap;
  }

  .referral__field {
    align-items: flex-start;
  }

  .referral__text {
    font-size: 14px;
    line-height: 20px;
  }

  .referral__input-code {
    width: 100%;
    margin-bottom: 10px;
    margin-right: 0;
  }

  .referral__social {
    margin: 15px 0;
  }

  .referral__social-item {
    margin-right: 50px;
    width: 47%;
  }

  .referral__social-item:last-child {
    margin-right: 0;
  }

  .referral__social-item p {
    font-size: 14px;
    line-height: 20px;
  }

  .ya-share2__list.ya-share2__list_direction_horizontal>.ya-share2__item,
  .ya-share2__badge {
    width: 30px !important;
    height: 30px !important;
  }

  .ya-share2__container_shape_round.ya-share2__container_size_m .ya-share2__badge .ya-share2__icon:not(.ya-share2__icon_messenger-contact):not(.ya-share2__icon_more):not(.ya-share2__icon_copy) {
    background-size: 20px 20px !important;
  }

  .referral__subtitle {
    font-size: 16px;
    line-height: 24px;
    align-items: flex-start;
  }

  .referral__subtitle--icon {
    font-size: 20px;
    line-height: 24px;
  }

  .referral__subtitle svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .referral__main {
    margin: 15px 0;
  }

  .referral__main>.referral__subtitle {
    margin-bottom: 15px;
  }

  .referral__item {
    margin-bottom: 20px;
  }

  .referral__item:first-of-type .referral__text {
    max-width: 90%;
  }


  .referral__wrap--padding .referral__item:first-of-type .referral__text {
    max-width: none;
  }

 .referral__text-percent-big {
    font-size: 16px;
    line-height: 20px;
  }

  .referral__text-percent-big span {
    font-size: 18px;
    line-height: 24px;
  }

  .referral__text--icon {
    padding-right: 35px;
  }

  .referral__text--icon::after {
    width: 24px;
    height: 24px;
    background-size: 24px;
  }

  .btn-blue {
    margin: 15px 0;
    padding: 15px;
    font-weight: 500;
    font-size: 14px;
    line-height: 17px;
    color: #FFFFFF;
  }

  .referral__bold {
    width: 100%;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 20px;
  }

  .referral__bold span {
    padding: 4px 2px;
  }

  .referral__bottom {
    flex-wrap: wrap;
  }

  .referral__bottom-block {
    width: 100%;
  }

  .referral__bottom-block:first-child {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .referral__table {
    width: 80%;
  }

  .referral__table td {
    padding: 4px 0;
    font-size: 14px;
    line-height: 24px;
  }

  .referral__bottom-table-item {
    font-size: 12px;
    line-height: 18px;
    padding: 12px 6px;
  }

  a.btn-blue {
    max-width: 100%;
    margin: 20px 0;
    padding: 17px 20px;
    font-size: 12px;
    line-height: 15px;
  }

  .referral__title br {
    display: none;
  }
}

@media (max-width: 767px) {
  .referral__wrap, .pay_once {
    padding: 15px;
  }

  .referral__subtitle {
    margin-bottom: 10px;
  }

  .referral__subtitle--icon {
    font-size: 16px;
    line-height: 24px;
  }

  .referral__subtitle--icon svg {
    display: none;
  }

  .referral__input-code {
    padding-left: 2px;
    font-size: 13px;
    line-height: 24px;
    border-left-width: 4px;
  }

  .referral__input-code::placeholder {
    font-size: 13px;
    line-height: 24px;
  }

  .referral__btn {
    font-size: 14px;
    line-height: 24px;
  }

  .referral__social {
    flex-wrap: wrap;
    margin-bottom: 5px;
  }

  .referral__social-item {
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .referral__social-item p {
    margin-bottom: 10px;
  }

  .referral__main {
    margin: 5px 0;
  }

  .referral__main>.referral__subtitle {
    margin-bottom: 10px;
  }

  .btn-blue {
    width: 100%;
    padding: 17px;
    font-size: 12px;
    line-height: 15px;
  }

  .referral__item {
    margin-bottom: 15px;
  }

  .referral__bold {
    margin-bottom: 15px;
  }

  a.btn-blue {
    padding: 17px 25px;
  }

  .referral__bottom-table {
    flex-wrap: wrap;
    margin: 25px 0;
  }
  
  .referral__bottom-table-item {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 7px 15px;
    font-size: 14px;
    line-height: 18px;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .referral__bottom-table-item:not(:last-of-type) {
    border-right: 1px solid #444444;
  }

  .referral__bottom-table-item:first-of-type {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 0;
  }

  .referral__bottom-table-item:last-of-type {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 0;
  }

  .referral__bottom-table-item:not(:last-of-type) {
    border-bottom: none;
  }
	.referral__bottom-table-header {
		display: none;
	}
	.referral__bottom-table {
		margin:5px auto;
	}
  
}


@media (max-width: 479px) {
	.pay_once__text {
	  font-size: 16px;
	}
}
  
