/* popup roistat widget */

.popup-roistat-widget {
	position: fixed;
	z-index: 9999;
	width: 200px;
	left: 40px;
	bottom: 30px;
	cursor: pointer;
}

@media (min-width: 980px) {
	body .widget {
		bottom: 110px;
	}
}

@media (max-width: 1280px) {
	.popup-roistat-widget {
		bottom: 20px;
	}
}

@media (max-width: 980px) {
	.popup-roistat-widget {
		display: none;
	}
}

/* popup roistat */

.popup-roistat {
	position:        fixed;
	top:             0;
	left:            0;
	width:           100%;
	height:          100%;
	background:      rgba(0, 0, 0, 0.9); /* Затемнение на 90% */
	display:         flex;
	align-items:     center;
	justify-content: center;
	z-index:         9999;
	text-wrap:       pretty;
}

.popup-roistat--hidden {
	display: none !important;
}

.popup-roistat__overlay {
	position:   absolute;
	top:        0;
	left:       0;
	width:      100%;
	height:     100%;
	background: transparent;
}

.popup-roistat__content {
	overflow-y:    auto;
	background:    white;
	padding:       40px;
	position:      relative;
	width:         auto;
	max-width:     1000px;
	border-radius: 20px;
}

.popup-roistat__advantages {
	display:         flex;
	flex-direction:  column;
	gap:             1rem;
	justify-content: space-between;
}

.popup-roistat__body {
	display:               grid;
	grid-template-columns: repeat(2, 1fr);
	gap:                   1rem;
}

.popup-roistat__info {
	width:                 100%;
	display:               grid;
	grid-template-rows: auto 1fr;
	gap:                   20px;
}

.popup-roistat__close {
	position:     absolute;
	top:          10px;
	right:        10px;
	cursor:       pointer;
}

.popup-roistat__title {
	margin-bottom: 30px;
	color:         #013a51;
	font-family:   Inter, serif;
	font-size:     31px;
	line-height:   1.2;
	font-weight:   600;
	text-align:    left;
}

.popup-roistat__subtitle {
	font-size: 18px;
	font-weight: 500;
}

.popup-roistat__highlight {
	color: #b11706;
}

.popup-roistat__list {
	display: grid;
	gap: 8px;
	list-style-type: auto;
	list-style-position: inside;
}

.popup-roistat__item {
	font-size: 18px;
	line-height: 1.4;
}

.popup-roistat__image {
	height: 100%;
	object-fit: contain;
	object-position: left bottom;
	transform: translate(-40px, 40px);
}

.popup-roistat__form {
	border-radius:    20px;
	background-color: #f4f6f8;
	padding:          30px 20px;
	display:          flex;
	gap:              30px;
	flex-direction:   column;
	transition:       opacity .3s ease;
}

.popup-roistat__form.loading {
	opacity: .6;
	pointer-events: none;
}

.popup-roistat__form-group {
	display:        flex;
	flex-direction: column;
	gap:            18px;
}

.popup-roistat__button {
	margin-top:      15px;
	border-radius:   10px;
	background:      #b11706;
	display:         flex;
	padding:         20px 26px;
	justify-content: center;
	align-items:     center;
	color:           #fff;
	width:           100%;
	border:          none;
	text-align:      center;
	font-size:       18px;
	font-style:      normal;
	font-weight:     600;
	line-height:     130%; /* 26px */
}

.popup-roistat__button:hover {
	opacity: 0.8;
}

.popup-roistat__form-footer {
	display:     flex;
	font-size:   12px;
	text-align:  left;
	Gap:         0.5rem;
	align-items: flex-start;
}

.popup-roistat__label {
	color:       #013a51;
	font-family: Inter;
	text-align:  left;
	width:       100%;
	font-size:   12px;
	font-style:  normal;
	font-weight: 400;
	line-height: normal;
}

.popup-roistat__input-wrapper {
	position: relative;
}

.popup-roistat__input-wrapper .popup-roistat__input {
	padding-top: 35px;
	font-weight: 500;
}

.popup-roistat__input-top-placeholder {
	position: absolute;
	top: 10px;
	left: 20px;
	font-size: 14px;
	color: #848484;
}

.popup-roistat__input {
	color:         #013a51;
	font-size:     18px;
	font-style:    normal;
	font-weight:   400;
	border-radius: 10px;
	border:        1px solid #d3d3d3;
	background:    #fff;
	display:       flex;
	width:         100%;
	padding:       16px 20px;
}

.popup-roistat__input::placeholder {
	font: inherit;
	color: #848484;
}

.popup-roistat__radios {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.popup-roistat__radio {
	background-color: #e9e8eb;
	color: #595959;
	padding: 10px 25px;
	font-size: 12px;
	border-radius: 999px;
	cursor: pointer;
}

.popup-roistat__radio.active {
	background-color: #013a51;
	color: #fff;
}

.popup-roistat__small-text {
	margin-top: 5px;
	font-size: 9px;
	color: #959796;
	line-height: 1.2;
}

.popup-roistat__notice {
	margin-top: 20px;
	display: flex;
	justify-content: center;
	align-items: end;
	gap: 10px;
	font-size: 14px;
}

.popup-roistat__notice .popup-roistat__highlight {
	font-weight: 700;
}

.popup-roistat .main-info__person-info {
	justify-content: center;
}

.popup-roistat .main-info__person {
	bottom:  10px;
	left:    10px;
	padding: 10px;
}

.popup-roistat .main-info__person-title, .main-info__person-jobs {
	font-size:  12px;
	text-align: left;
}

.popup-roistat-success__content {
	display:        flex;
	gap:            1rem;
	text-align:     center;
	background:     #fff;
	padding:        45px;
	flex-direction: column;
	align-items:    center;
}

.popup-roistat-success {
	position:        fixed;
	top:             0;
	left:            0;
	width:           100%;
	height:          100%;
	background:      rgba(0, 0, 0, 0.9); /* Затемнение на 90% */
	display:         flex;
	align-items:     center;
	justify-content: center;
	z-index:         1000;
}

.popup-roistat-success__content h2 {
	color:       #030d4f;
	text-align:  center;
	font-family: Raleway, serif;
	font-size:   44px;
	font-style:  normal;
	font-weight: 600;
	line-height: 120%; /* 52.8px */
}

.popup-roistat-success__content p {
	color:       #333;
	text-align:  center;
	font-family: Raleway, serif;
	font-size:   28px;
	font-style:  normal;
	font-weight: 600;
	line-height: 140%; /* 39.2px */
}

@media (max-width: 992px) {
	.popup-roistat__body {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.popup-roistat__list {
		display: none;
	}

	.popup-roistat__image {
		display: none;
	}

	.popup-roistat__info {
		gap: 0;
		padding: 15px;
	}

	.popup-roistat__title {
		font-size: 20px;
		margin-bottom: 0;
	}

	.popup-roistat__title br {
		display: none;
	}

	.popup-roistat__content {
		padding: 0;
	}

	.popup-roistat__subtitle {
		font-size: 13px;
		font-weight: 400;
	}

	.popup-roistat__input-top-placeholder {
		font-size: 12px;
	}

	.popup-roistat__input {
		font-size: 12px;
	}

	.popup-roistat__form-group {
		gap: 8px;
	}

	.popup-roistat__radios {
		gap: 8px;
	}

	.popup-roistat__label {
		color: #848484;
	}

	.popup-roistat__form {
		gap: 10px;
		padding: 15px;
	}

	.popup-roistat__input-wrapper .popup-roistat__input {
		padding-top: 28px;
	}

	.popup-roistat__input {
		padding: 10px 20px;
	}

	.popup-roistat__button {
		padding: 8px 40px;
		font-size: 14px;
	}

	.popup-roistat__notice {
		margin-top: 10px;
	}

	.popup-roistat__close svg {
		width: 15px;
		height: 15px;
	}
}
