.widget {
	position: fixed;
	z-index: 99;
	bottom: 0;
	right: 0;
	width: fit-content;
}

.widget.active {
	width: 100%;
	padding: 12px;
}

@media (min-width: 769px) {
	.widget {
			left: inherit;
			right: 24px;
			bottom: 24px;
	}
	.widget.active {
		width: fit-content;
	}
}

.widget.widget-thanks .widget__head{
	display: none;
}

.widget.widget-thanks .widget__head-thanks{
	display: block;
}

.widget.widget-thanks .widget__body {
	background: #ED131C;
}

.widget.widget-thanks .widget__body .widget__thanks .widget__form-button {
	box-shadow: 0 6px 2px 0 rgba(82, 82, 82, 0.18);
	background: #fff;
	color: #1c1c1c;
}

.widget.widget-thanks .widget__body .widget__thanks .widget__form-button {
	box-shadow: 0 6px 2px 0 rgba(82, 82, 82, 0.18);
	background: #fff;
	color: #1c1c1c;
}

.widget .widget__icon {
  display: flex;
  flex: 0 0 auto;
  max-width: 74px;
  margin-right: 16px;
  margin-bottom: 35px;
  cursor: pointer;
}

@media (min-width: 769px) {
  .widget .widget__icon {
      max-width: 100px;
      margin-right: 0;
      margin-bottom: 0;
  }
}

.widget .widget__box {
  box-shadow: 0 4px 32px 0 rgba(150, 150, 150, 0.32);
  width: 100%;
	border-radius: 16px;
	overflow: hidden;
  display: none;
}

@media (min-width: 769px) {
  .widget .widget__box {
      width: 600px;
  }
}

.widget .widget__head {
  border-radius: 12px 12px 0 0;
	padding: 16px 16px 30px 16px;
  background: #ed131c;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
	min-height: 56px;
  height: 100%;
}


@media (min-width: 576px) {
  .widget .widget__head {
      border-radius: 16px 16px 0 0;
      padding: 20px 24px 35px;
			min-height: 78px;
  }
}

.widget .widget__head-thanks {
	height: 133px;
	position: relative;
	background: #fff;
	display: none;
}

.widget .widget__head-thanks picture {
	display: flex;
	height: 100%;
	width: 100%;
	position: absolute;
	align-items: center;
	justify-content: center;
}

.widget .widget__head-thanks picture:nth-child(1) img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


.widget .widget__head-thanks picture:nth-child(2) {
	top: 47%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
}


@media (min-width: 576px) {
	.widget .widget__head-thanks {
		height: 240px;
	}

	.widget .widget__head-thanks picture:nth-child(1) img {
		width: 100%;
		height: 100%;
		object-fit: inherit;
	}
}

.widget .widget__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.widget .widget__logo img {
  max-width: 30px;
  flex: 0 0 auto;
  display: flex;
  display: none;
}

.widget .widget__logo span {
  font-weight: 600;
  font-size: 18px;
  line-height: 133%;
  color: #fff;
}

@media (min-width: 576px) {
  .widget .widget__logo img {
      max-width: 35px;
  }
  .widget .widget__logo span {
		font-size: 38px;
		line-height: 100%;
  }
}

.widget .widget__close {
  display: flex;
  flex: 0 0 auto;
  cursor: pointer;
  max-width: 24px;
  margin-top: 0;
}

@media (min-width: 576px) {
  .widget .widget__close {
      max-width: 32px;
  }
}

.widget .widget__body {
  border-radius: 16px;
	margin-top: -15px;
	padding: 16px 12px 12px 12px;
  background: #fff;
	position: relative;
	z-index: 2;
}

.widget .widget__body h3 {
  font-weight: 500;
  font-size: 14px;
  line-height: 143%;
  text-align: center;
  color: #1c1c1c;
  margin-bottom: 20px;
  margin-top: 0;
  border: none;
}

@media (min-width: 576px) {

	.widget .widget__body {
		padding: 24px;
	}

  .widget .widget__body h3 {
		font-size: 19px;
		line-height: 120%;
  }
}

.widget .widget__body ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
  margin: 0;
}

.widget .widget__body ul li {
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 12px;
  display: flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.widget .widget__body ul li:nth-child(2), .widget .widget__body ul li:nth-child(3) {
	border: 1px solid #ed131c;
}

.widget .widget__body ul li.single {
  grid-column: span 2;
}

.widget .widget__body ul li a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: inherit;
  height: 100%;
  width: 100%;
  justify-content: center;
}

.widget .widget__body ul li:nth-child(2) span, .widget .widget__body ul li:nth-child(3) span {
	color: #ed131c;
}


.widget .widget__body ul li img {
  display: flex;
  flex: 0 0 auto;
}

.widget .widget__body ul li span {
  font-weight: 600;
  font-size: 13px;
  line-height: 133%;
  color: #1c1c1c;
}

@media (min-width: 576px) {
	.widget .widget__body ul li span {
		font-size: 16px;
		line-height: 120%;
	}
}

.widget .widget__form ::-webkit-input-placeholder {
  color: #7e7f81;
}

.widget .widget__form ::-moz-placeholder {
  color: #7e7f81;
}

.widget .widget__form ::-ms-input-placeholder {
  color: #7e7f81;
}

.widget .widget__form ::placeholder {
  color: #7e7f81;
}

.widget .widget__form :-ms-input-placeholder {
  color: #7e7f81;
}

.widget__contacts {
	display: none;
}

.widget .widget__form {
  display: none;
}

.widget .widget__form .widget__form-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.widget .widget__form .widget__form-item {
  width: 100%;
  display: flex;
  max-width: 100%;
  height: 100%;
}

.widget .widget__form .widget__form-input {
  width: 100%;
  padding-left: 16px;
  -webkit-appearance: none;
  outline: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #1c1c1c;
  font-weight: 500;
  font-size: 14px;
  line-height: 129%;
  height: 45px;
  background: #ecedf0;
  font-variant-ligatures: no-common-ligatures;
  font-variant-numeric: tabular-nums lining-nums;
}

@media (min-width: 576px) {
	.widget .widget__form .widget__form-input {
		font-size: 19px;
		line-height: 120%;
		height: 54px;
	}
}

.widget .widget__form .widget__form-footer {
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 25px;
}

.widget .widget__form .widget__form-checkbox {
  position: absolute;
  cursor: pointer;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
	border-radius: 4px;
	width: 16px;
	height: 16px;
	background: #e0e1e5;
  border: none;
}

.widget .widget__form .widget__form-checkbox input {
  display: none;
}

.widget .widget__form .widget__form-icon {
  line-height: 0;
  font-size: 0;
}

.widget .widget__form .widget__form-icon::before {
  display: none;
  content: url('../img/widget/check.svg');
}

.widget .widget__form input:checked + .widget__form-icon:before {
  display: block;
}

.widget .widget__form .widget__form-text {
	font-weight: 500;
	font-size: 10px;
	line-height: 130%;
	color: #7e7f81;
}

@media (min-width: 576px) {
	.widget .widget__form .widget__form-text {
		font-size: 14px;
		line-height: 120%;
  }
}

.widget .widget__form .widget__form-link {
  color: inherit;
}

.widget .widget__form-button {
  box-shadow: 0 5px 2px 0 rgba(82, 82, 82, 0.18);
	background: #1c1c1c;
  color: #fff;
  display: flex;	
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 8px;
	height: 45px;
	font-weight: 600;
	font-size: 17px;
	line-height: 120%;
  border: none;
  transition: all 0.3s ease;
  cursor: pointer;
  line-height: 0;
  -webkit-appearance: none;
}

@media (min-width: 576px) {
	.widget .widget__form-button {
		font-size: 23px;
		line-height: 120%;
		height: 59px;
	}
}

.widget .widget__form-button::after {
	display: none;
}

.widget .widget__thanks {
  display: none;
}

.widget .widget__thanks .widget__thanks-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  flex: 0 0 auto;
}

.widget .widget__thanks p {
	font-weight: 600;
	font-size: 13px;
	text-align: center;
	color: #fff;
	max-width: 277px;
	margin: 0 auto 20px auto;
}

.widget .widget__thanks h3 {
	font-weight: 700;
	font-size: 20px;
	line-height: 120%;
	color: #fff;
}

@media (min-width: 576px) {
	.widget .widget__thanks p {
		font-size: 19px;
		line-height: 110%;
    max-width: 400px;
	}
	.widget .widget__thanks h3 {
		font-size: 48px;
		line-height: 110%;
		letter-spacing: -0.02em;
	}
}
