/*--------------------------------------------
РОП (новая версия) — template-rop-new.php
Макет Figma «РОП_(новая версия)1920»
--------------------------------------------*/

.ropn {
	--ropn-gap: 8rem;
	--ropn-card-bg: #F3F3F3;
	--ropn-facts-bg: #EBF1F7;
	--ropn-line: #B4B4B4;
	padding-bottom: var(--ropn-gap);
}

.ropn p {
	margin: 0;
}

.ropn-title {
	margin-bottom: 5rem;
	color: rgba(var(--color-green-text), 1);
}

.ropn-h2 {
	line-height: 3.4rem;
	color: rgba(var(--color-blue-firm), 1);
}

.ropn-section,
.ropn-steps,
.ropn-form {
	margin-top: var(--ropn-gap);
}

.ropn-intro + .ropn-section {
	margin-top: calc(var(--ropn-gap) + .9rem);
}

.ropn-section > .ropn-h2 {
	margin-bottom: 4rem;
}

.ropn-link {
	font-size: 1.4rem;
	line-height: 1.8rem;
	color: rgba(var(--color-blue-firm), 1);
	text-decoration: underline;
}

@media (any-hover: hover) {

	.ropn-link:hover {
		color: rgba(var(--color-green-text), 1);
	}

}

.ropn-tag {
	flex-shrink: 0;
	padding: .5rem .8rem;
	font-size: 1.4rem;
	line-height: 1.8rem;
	white-space: nowrap;
	color: rgba(var(--color-gray-dark), 1);
	background: #fff;
	border-radius: 5rem;
}

/* Вступление */

.ropn-intro .ropn-h2 {
	margin-bottom: 4rem;
}

.ropn-intro__body {
	display: flex;
	align-items: flex-start;
	gap: 4rem;
}

.ropn-intro__text {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 2rem;
	min-width: 0;
	padding: 0 3rem;
	line-height: 2rem;
}

.ropn-intro__what {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ropn-intro__subtitle {
	margin: 0 0 .5rem;
	font: normal 700 2.2rem/1 'Webnar', sans-serif;
	text-transform: uppercase;
	text-box-edge: cap alphabetic;
	text-box-trim: trim-both;
	color: rgba(var(--color-blue-firm), 1);
}

.ropn-intro__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.ropn-facts {
	display: flex;
	flex-shrink: 0;
	gap: 2rem;
	width: 69rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ropn-facts__item {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 1.5rem;
	min-height: 17.4rem;
	padding: 2rem;
	background: var(--ropn-facts-bg);
	border-radius: .8rem;
}

.ropn-facts__num {
	display: block;
	font: italic 300 5.6rem/5.6rem 'Roboto', sans-serif;
	white-space: nowrap;
	text-box-edge: cap alphabetic;
	text-box-trim: trim-both;
	color: rgba(var(--color-blue-add), 1);
}

.ropn-facts__pre {
	margin-right: .6rem;
	font-size: 4.6rem;
}

.ropn-facts__text {
	font-size: 1.8rem;
	line-height: 2.2rem;
	color: rgba(var(--color-blue-firm), 1);
}

/* Почему мы */

.ropn-why {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.ropn-why__item {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 3rem;
	background: var(--ropn-card-bg);
	border-radius: .8rem;
	transition: var(--transition-main);
}

.ropn-why__item_wide {
	grid-column: span 2;
}

.ropn-why__num {
	font-size: 1.4rem;
	line-height: 1.8rem;
}

.ropn-why__title {
	margin: 0;
	font: normal 700 2rem/1.2 'Webnar', sans-serif;
	color: rgba(var(--color-blue-firm), 1);
}

.ropn-why__text {
	font-size: 1.6rem;
	line-height: 2rem;
}

.ropn-why__item_accent {
	color: #fff;
	background: rgba(var(--color-blue-add), 1);
}

.ropn-why__item_accent .ropn-why__num {
	color: rgba(255, 255, 255, .6);
}

.ropn-why__item_accent .ropn-why__title {
	color: #fff;
}

.ropn-why__logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem;
	margin-top: auto;
}

.ropn-why__logos img {
	display: block;
}

.ropn-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Как мы работаем */

.ropn-steps {
	padding: 6rem 3rem 3rem;
	color: #fff;
	background: linear-gradient(-64.94deg, #34355F 0%, #14527C 100%);
	border-radius: .8rem;
}

.ropn-steps__title {
	margin-bottom: 4rem;
	color: #fff;
}

.ropn-steps__list {
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ropn-steps__item {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 1.5rem;
	min-width: 0;
	padding-top: 1.5rem;
	border-top: .1rem solid rgba(255, 255, 255, .3);
}

.ropn-steps__num {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 5rem;
	height: 5rem;
	font: normal 400 2.4rem/1 'Webnar', sans-serif;
	border: .1rem solid #fff;
	border-radius: 50%;
	transition: var(--transition-main);
}

.ropn-steps__item.is-active .ropn-steps__num {
	border-color: rgba(var(--color-green-btn), 1);
	background: rgba(var(--color-green-btn), 1);
}

.ropn-steps__name {
	margin: 0;
	font: normal 700 2rem/2.2rem 'Webnar', sans-serif;
}

.ropn-steps__text {
	margin-top: -.5rem !important;
}

/* Руководитель */

.ropn-boss {
	display: flex;
	align-items: flex-start;
	gap: 3rem;
}

.ropn-boss__photo {
	flex-shrink: 0;
	width: 45rem;
}

.ropn-boss__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 450 / 570;
	object-fit: cover;
	border-radius: .8rem;
}

.ropn-boss__body {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 2rem;
	min-width: 0;
}

.ropn-boss__head {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding-bottom: 2rem;
	border-bottom: .1rem solid var(--ropn-line);
}

.ropn-boss__post {
	font-size: 1.6rem;
	line-height: 2rem;
	color: rgba(var(--color-blue-firm), 1);
}

.ropn-boss__quote {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin: 0;
	padding: 2rem;
	background: var(--ropn-card-bg);
	border-radius: .8rem;
}

.ropn-boss__quote img {
	display: block;
}

.ropn-boss__contacts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.5rem;
}

.ropn-boss__phone {
	font-size: 2rem;
	line-height: 2rem;
	color: #000;
	white-space: nowrap;
}

/* Вопросы и ответы */

.ropn-faq {
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.ropn-faq__item {
	background: var(--ropn-card-bg);
	border-radius: .8rem;
}

.ropn-faq__q {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 2rem;
	font: normal 700 2rem/1.2 'Webnar', sans-serif;
	text-align: left;
	color: rgba(var(--color-blue-firm), 1);
	background: none;
	border: 0;
	cursor: pointer;
}

.ropn-faq__arrow {
	flex-shrink: 0;
	transition: var(--transition-main);
}

.ropn-faq__item.is-open .ropn-faq__arrow {
	transform: rotate(180deg);
}

@media (any-hover: hover) {

	.ropn-faq__q:hover {
		color: rgba(var(--color-green-text), 1);
	}

}

.ropn-faq__a {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding: 0 2rem 2rem;
}

.ropn-faq__a[hidden] {
	display: none;
}

.ropn-faq__text {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.ropn-faq__list {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin: -1rem 0 0;
	padding-left: 2rem;
	list-style: disc;
}

.ropn-faq__list li {
	display: list-item;
	list-style: disc;
}

.ropn-faq__table {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
}

.ropn-faq__cell {
	padding-bottom: 1rem;
	border-bottom: .1rem solid var(--ropn-line);
}

.ropn-faq__cell_head {
	font-weight: 700;
	font-size: 1.6rem;
}

/* Форма */

.ropn-form {
	padding: 7.4rem 6rem 3.4rem;
	background: linear-gradient(180deg, #E8EBED 0%, #fff 100%);
	border-radius: .8rem;
}

.ropn-form__title {
	margin-bottom: 4rem;
	line-height: 3.4rem;
	color: rgba(var(--color-green-text), 1);
}

.ropn-form__descr {
	margin-bottom: 2rem !important;
	font-size: 1.6rem;
	line-height: 2rem;
	color: rgba(var(--color-blue-firm), 1);
}

.ropn-form__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
}

.ropn-form__field {
	display: flex;
	flex-direction: column;
	gap: .8rem;
}

.ropn-form__field .wpcf7-form-control-wrap {
	display: block;
}

.ropn-form__label {
	line-height: 1.8rem;
}

.ropn-form__label span {
	color: #7089A1;
}

.ropn-form__check {
	display: flex;
	grid-column: span 2;
	align-items: flex-end;
	padding-bottom: 1.4rem;
}

.ropn-form .wpcf7-list-item {
	margin: 0;
}

.ropn-form .wpcf7-list-item label {
	display: block;
}

.ropn-form input[type="checkbox"] + span {
	align-items: center;
}

/* подсветка только после попытки отправки: CF7 валидирует всю форму уже при смене чекбокса */
.ropn-form form[data-status="invalid"] .wpcf7-not-valid {
	border-color: red;
}

.ropn-form__message {
	margin-top: 2rem;
}

.ropn-form__select {
	appearance: none;
	-webkit-appearance: none;
	padding: 0 4.3rem 0 1.5rem;
	background: #fff url("../img/rop-new/select-arrow.svg") no-repeat right 1.5rem center / 1.8rem 1.8rem;
	cursor: pointer;
}

.ropn-form__select:has(option[value=""]:checked) {
	color: #9C9C9C;
}

.ropn-form__select option {
	color: #000;
}

@media (any-hover: hover) {

	.ropn-form .text-field:hover,
	.ropn-form .textarea-field:hover {
		border-color: rgba(var(--color-green-btn), 1);
		box-shadow: 0 .4rem 1.2rem rgba(13, 217, 78, .15);
	}

}

.ropn-form__submit {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2rem;
	position: relative;
	margin-top: 2rem;
}

.ropn-form__submit .submit-field {
	width: auto;
}

.ropn-form__submit .wpcf7-spinner {
	position: static;
}

.ropn-form .form-note {
	padding: 0;
}

/* Поп-ап «Группы товаров и упаковки» */

.ropn-popup {
	width: min(100%, 95.6rem);
}

.ropn-popup__title {
	margin-bottom: 2rem;
	padding-right: 4rem;
	line-height: 3.4rem;
}

.ropn-popup__descr {
	margin: 0 0 2rem;
	font-size: 1.6rem;
	line-height: 2rem;
	color: rgba(var(--color-blue-firm), 1);
}

.ropn-popup__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ropn-popup__item {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: .1rem solid var(--ropn-line);
}

.ropn-popup__item .ropn-tag {
	min-width: 4.6rem;
	text-align: center;
}

/* Адаптив */

@media (max-width: 1399px) {

	.ropn-intro__body {
		flex-direction: column;
	}

	/* flex: none — в колонке Safari сжимает элементы с flex-basis 0 до нулевой высоты */
	.ropn-intro__text {
		flex: none;
		padding: 0;
	}

	.ropn-facts {
		width: 100%;
	}

}

@media (max-width: 1199px) {

	.ropn {
		--ropn-gap: 6rem;
	}

	.ropn-why {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ropn-steps__list {
		flex-wrap: wrap;
	}

	.ropn-steps__item {
		flex: 1 1 calc(33.333% - 2rem);
	}

	.ropn-boss__photo {
		width: 34rem;
	}

	.ropn-form {
		padding: 5rem 4rem;
	}

	.ropn-form__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}

@media (max-width: 767px) {

	.ropn {
		--ropn-gap: 4rem;
	}

	.ropn-title {
		margin-bottom: 3rem;
	}

	.ropn-h2,
	.ropn-form__title,
	.ropn-popup__title {
		font-size: 2.4rem;
		line-height: 2.8rem;
	}

	.ropn-section > .ropn-h2,
	.ropn-intro .ropn-h2,
	.ropn-steps__title,
	.ropn-form__title {
		margin-bottom: 2.5rem;
	}

	.ropn-facts {
		flex-direction: column;
		gap: 1rem;
	}

	.ropn-facts__item,
	.ropn-steps__item,
	.ropn-boss__body {
		flex: none;
	}

	.ropn-facts__item {
		min-height: 0;
	}

	.ropn-why {
		grid-template-columns: 1fr;
	}

	.ropn-why__item {
		padding: 2rem;
	}

	.ropn-why__item_wide {
		grid-column: auto;
	}

	.ropn-steps {
		padding: 3rem 2rem 2rem;
	}

	.ropn-steps__list {
		flex-direction: column;
	}

	.ropn-boss {
		flex-direction: column;
	}

	.ropn-boss__photo {
		width: 100%;
		max-width: 45rem;
	}

	.ropn-faq__q {
		font-size: 1.7rem;
	}

	.ropn-faq__table,
	.ropn-popup__list,
	.ropn-form__grid {
		grid-template-columns: 1fr;
	}

	.ropn-form__check {
		grid-column: auto;
		padding-bottom: 0;
	}

	.ropn-form {
		padding: 3rem 2rem;
	}

	.ropn-popup {
		padding: 2rem;
	}

}

/* Обрезка интерлиньяжа по высоте прописных, как в макете (text-box-trim) */

.ropn-facts__text,
.ropn-why__title,
.ropn-why__text,
.ropn-faq__q span,
.ropn-steps__name,
.ropn-boss__post,
.ropn-form__title {
	text-box-edge: cap alphabetic;
	text-box-trim: trim-both;
}
