/*
 * ============================================================
 * ROYAL SERVICES
 *
 * 1/3 + 2/3 ДЕЛАЕТ САМ WPBAKERY.
 * НИКАКОЙ GRID/FLEX ДЛЯ ДВУХ ОСНОВНЫХ КОЛОНОК ЗДЕСЬ НЕТ.
 * ============================================================
 */


/*
 * Вся строка.
 * Обычная ширина темы — НЕ full-width.
 */

.royal-services-row {
	padding-top: 80px;
	padding-bottom: 100px;
}


/*
 * Небольшой воздух между нативными колонками WPBakery.
 */

.royal-services-left-col {
	padding-right: 35px;
	box-sizing: border-box;
}

.royal-services-right-col {
	padding-left: 35px;
	box-sizing: border-box;
}


/*
 * ============================================================
 * LEFT — НАТИВНЫЕ 1/3
 * ============================================================
 */

.royal-services-left {
	width: 100%;
}

.royal-services-left__text {
	margin: 0 0 38px;
	font-family: Montserrat, sans-serif;
	font-size: 17px;
	line-height: 1.65;
}

.royal-services-left__text > :first-child {
	margin-top: 0;
}

.royal-services-left__text > :last-child {
	margin-bottom: 0;
}

.royal-services-left__media {
	width: 100%;
	overflow: hidden;
}

.royal-services-left__media img,
.royal-services-left__media video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
}


/*
 * ============================================================
 * RIGHT — НАТИВНЫЕ 2/3
 * ============================================================
 */

.royal-services-right-col .wpb_wrapper {
	width: 100%;
}


/*
 * Заголовок.
 */

.royal-services-title {
	width: 100%;
	margin: 0 0 48px;
}

.royal-services-title h2 {
	margin: 0;
	padding: 0;
	font-family: Montserrat, sans-serif;
	font-size: clamp(36px, 4vw, 62px);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -0.035em;
}


/*
 * ============================================================
 * SERVICE — ВСЕГДА 100% ПРАВОЙ КОЛОНКИ
 * ============================================================
 */

.royal-service {
	width: 100%;
	min-width: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.18);
	box-sizing: border-box;
}

.royal-service:last-child {
	border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}


/*
 * Верхняя строка:
 *
 * ICON | TITLE | +
 */

.royal-service__toggle {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 36px;
	align-items: center;
	gap: 18px;

	width: 100%;
	min-height: 94px;

	margin: 0;
	padding: 18px 0;

	border: 0;
	background: transparent;
	color: inherit;

	text-align: left;
	cursor: pointer;

	box-shadow: none;
	appearance: none;
}

.royal-service__toggle:hover,
.royal-service__toggle:focus,
.royal-service__toggle:active {
	background: transparent;
	color: inherit;
	box-shadow: none;
}


/*
 * ICON.
 */

.royal-service__icon {
	display: flex;
	align-items: center;
	justify-content: flex-start;

	font-size: 28px;
	line-height: 1;

	color: #82B541;
}

.royal-service__icon i {
	width: 32px;
	text-align: center;
}


/*
 * TITLE.
 */

.royal-service__title {
	min-width: 0;

	font-family: Montserrat, sans-serif;
	font-size: clamp(16px, 1.3vw, 20px);
	font-weight: 500;
	line-height: 1.35;
}


/*
 * PLUS.
 */

.royal-service__plus {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 36px;
	height: 36px;

	margin-left: auto;

	font-family: Montserrat, sans-serif;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;

	transition: transform 0.25s ease;
}

.royal-service.is-open .royal-service__plus {
	transform: rotate(45deg);
}


/*
 * ============================================================
 * OPEN BODY
 * ============================================================
 */

.royal-service__body {
	width: 100%;
	padding: 0 0 30px 66px;
	box-sizing: border-box;
}

.royal-service__body-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 24px;
}

.royal-service__excerpt {
	font-family: Montserrat, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.7;

	color: #555;
}


/*
 * Маленькая кнопка вправо после excerpt.
 */

.royal-service__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 40px;
	height: 40px;

	flex: 0 0 auto;

	border: 1px solid #82B541;
	border-radius: 50%;

	color: #82B541;

	font-size: 19px;
	line-height: 1;

	text-decoration: none;

	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.royal-service__more:hover {
	background: #82B541;
	color: #fff;
}


/*
 * ============================================================
 * TABLET
 * ============================================================
 */

@media (max-width: 900px) {

	.royal-services-left-col,
	.royal-services-right-col {
		padding-left: 15px;
		padding-right: 15px;
	}

	.royal-services-left-col {
		margin-bottom: 55px;
	}
}


/*
 * ============================================================
 * MOBILE
 * ============================================================
 */

@media (max-width: 640px) {

	.royal-services-row {
		padding-top: 60px;
		padding-bottom: 70px;
	}

	.royal-services-title {
		margin-bottom: 32px;
	}

	.royal-service__toggle {
		grid-template-columns: 40px minmax(0, 1fr) 30px;
		gap: 12px;
		min-height: 84px;
	}

	.royal-service__body {
		padding-left: 52px;
	}

	.royal-service__body-inner {
		gap: 15px;
	}
}
