@import url('../vars.css');

.rki-page {
	margin-bottom: var(--mb);
	color: var(--text);
	font-family: var(--desktop-body-font), sans-serif;
	font-size: var(--desktop-body-size);
	font-weight: var(--desktop-body-weight);
	line-height: 1.45;
}

.rki-page *,
.rki-page *::before,
.rki-page *::after {
	box-sizing: border-box;
}

.rki-page a {
	color: var(--primary-brand-2);
	text-decoration: none;
}

/* WP/Neve gives <p> margin by default; Figma spacing is via gaps. */
.page-content .rki-page p,
.rki-page p {
	margin: 0;
	margin-bottom: 0;
}

/* Titles (avoid clashes with extrastyles h2/h3) */
.page-content .rki-page h2,
.rki-page h2,
.page-content .rki-page h3,
.rki-page h3 {
	margin: 0;
	margin-bottom: 0;
	padding: 0;
}

/* ——— Breadcrumbs ——— */
.rki-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--gray-400);
	font-size: 12px;
	line-height: 1.2;
	margin: 0 0 var(--spacing-5);
}

.rki-breadcrumbs a {
	color: var(--gray-400);
	text-decoration: none;
}

.rki-breadcrumbs span {
	color: var(--text);
}

/* ——— Hero ——— */
.rki-hero {
	position: relative;
	background: linear-gradient(252.45deg, #ff7981 2.09%, #d03954 90.87%);
	border-radius: 16px;
	box-shadow: var(--drop-shadow-200);
	overflow: hidden;
	min-height: 507px;
	margin-bottom: calc(var(--spacing-10) - var(--spacing-2));
}

/* Compatibility with old hero markup (rki-hero__bg/rki-hero__grid/buttons). */
.rki-hero__bg,
.rki-badge {
	display: none;
}

.rki-hero__cta {
	position: relative;
	z-index: 2;
	margin-top: 24px;
	display: flex !important;
	gap: 12px;
}

.rki-hero__cta .rki-btn--outline {
	display: none !important;
}

.rki-hero::before {
	content: '';
	position: absolute;
	left: -263px;
	top: -243px;
	width: 1447px;
	height: 996px;
	background-image: url('/wp-content/themes/neve/assets/img/rki-teacher-school/hero-shapes.svg');
	background-repeat: no-repeat;
	background-size: 100% 100%;
	z-index: 0;
	pointer-events: none;
}

.rki-hero::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	width: 56%;
	height: 100%;
	background-image: url('/wp-content/themes/neve/assets/img/rki-teacher-school/hero-raw-1.png');
	background-repeat: no-repeat;
	background-size: auto 150%;
	background-position: 40% 28%;
	z-index: 1;
	pointer-events: none;
	/* Bottom of the cut is always the photo layer’s bottom-left corner. */
	clip-path: polygon(55% 0, 100% 0, 100% 100%, 0 100%);
}

.rki-hero__grid {
	display: block;
	position: relative;
	z-index: 2;
}

.rki-hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--spacing-12);
	width: 705px;
	max-width: 50%;
	padding: 72px 32px 72px 72px;
}

.page-content .rki-page h1.rki-hero__title,
.rki-page h1.rki-hero__title {
	margin: 0;
	padding: 0;
	font-family: var(--desktop-h1-font), sans-serif;
	font-size: var(--desktop-h1-size);
	line-height: 1;
	font-weight: var(--desktop-h1-weight);
	color: #fff;
	letter-spacing: 0;
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
	hyphens: none;
	max-width: none;
}

.rki-hero__lead {
	margin: 0;
	color: #fff;
	font-family: var(--desktop-body-font), sans-serif;
	font-size: var(--desktop-body-size);
	font-weight: var(--desktop-body-weight);
	line-height: 1.2;
	max-width: 512px;
}

.rki-hero__shapes {
	position: absolute;
	left: -263px;
	top: -243px;
	width: 1447px;
	height: 996px;
	z-index: 0;
	pointer-events: none;
}

.rki-hero__shapes img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Old rotated Figma export — must not render together with ::after photo */
.rki-hero__photo {
	display: none !important;
}

.rki-page a.rki-hero__ctaButton,
.rki-hero__ctaButton {
	display: flex;
	width: 415px;
	height: 40px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #fff;
	border-radius: 999px;
	padding: 8px 12px 8px 24px;
	color: #d24256;
	text-decoration: none;
	font-family: var(--desktop-body-font), sans-serif;
	font-size: var(--desktop-body-size);
	font-weight: var(--desktop-body-weight);
	line-height: 1;
}

.rki-hero__ctaIcon {
	width: 16px;
	height: 16px;
	border-radius: 12px;
	background: #d24256;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 16px;
}

.rki-hero__ctaIcon img {
	display: block;
	width: 12px;
	height: 12px;
	object-fit: contain;
}

/* Old buttons (when rki-btn markup is present). */
.rki-hero .rki-btn--outline {
	display: none;
}

.rki-hero .rki-btn--primary {
	width: 415px;
	height: 40px;
	border-radius: 999px;
	background: #fff;
	color: #d24256;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px 8px 24px;
	font-family: var(--desktop-body-font), sans-serif;
	font-size: var(--desktop-body-size);
	font-weight: var(--desktop-body-weight);
	line-height: 1;
}

.rki-hero .rki-btn__arrow {
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: #d24256;
	position: relative;
	flex: 0 0 16px;
}

.rki-hero .rki-btn__arrow::after {
	content: '';
	position: absolute;
	inset: 0;
	margin: auto;
	width: 12px;
	height: 12px;
	background-image: url('/wp-content/themes/neve/assets/img/rki-teacher-school/hero-button-arrow.svg');
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
}

/* ——— About cards (carousel-like row) ——— */
.rki-cardsRow {
	margin-top: 0;
	overflow: visible;
	position: relative;
}

.rki-cardsRow__swiper {
	overflow: hidden;
	/* Room for card shadows + nav overlay at edges */
	padding: var(--spacing-2) calc(56px + var(--spacing-3));
	box-sizing: border-box;
}

.rki-cardsRow__swiper .swiper-wrapper {
	display: flex;
	align-items: stretch;
	padding: var(--spacing-2) 0;
}

.rki-cardsRow__swiper .swiper-slide {
	flex: 0 0 415px;
	width: 415px;
	display: flex; /* ensures inner card can stretch to equal height */
}

.rki-cardsRow__nav {
	position: absolute;
	left: var(--spacing-2);
	right: var(--spacing-2);
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0;
	z-index: 4;
	pointer-events: none;
}

.rki-cardsRow .swiper-button-prev::after,
.rki-cardsRow .swiper-button-next::after {
	display: none;
	content: none;
}

.rki-cardsRow .swiper-button-prev,
.rki-cardsRow .swiper-button-next {
	position: static;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #3366cc;
	box-shadow: none;
	pointer-events: auto;
	z-index: 5;
	padding: 8px;
}

.rki-cardsRow .swiper-button-prev img,
.rki-cardsRow .swiper-button-next img {
	display: block;
	width: 6px;
	height: 13px;
	flex-shrink: 0;
}

.rki-cardsRow .swiper-button-prev img {
	transform: rotate(180deg);
}

.rki-cardsRow .swiper-button-disabled {
	opacity: 0.45;
	pointer-events: none;
}

.rki-aboutCard {
	background: #fff;
	border-radius: 16px;
	padding: 28px 24px 16px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
	display: flex;
	flex-direction: column;
	flex: 1;
	height: 407px;
	gap: 20px;
}

.rki-aboutCard__title {
	font-family: Montserrat, sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	color: var(--primary-brand-2);
}

.rki-aboutCard__text {
	color: var(--text);
	font-family: var(--desktop-body-font), sans-serif;
	font-size: var(--desktop-body-size);
	font-weight: var(--desktop-body-weight);
	line-height: 1;
	flex: 1; /* equal height cards */
}

/* ——— Apply section ——— */
.rki-apply {
	margin-top: var(--spacing-8);
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: var(--spacing-6);
	padding: 29px 37px 27px 20px;
	background: var(--primary-brand-2);
	border-radius: 16px;
	box-shadow: var(--drop-shadow-200);
}

.rki-apply__content {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 1116px;
}

.rki-apply__title {
	font-family: Montserrat, sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: var(--white);
	line-height: 1;
}

.rki-apply__text {
	color: var(--white);
	font-family: var(--desktop-body-font), sans-serif;
	font-size: 15px;
	font-weight: var(--desktop-body-weight);
	line-height: 1;
	max-width: 772px;
}

.rki-apply__button {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 391px;
	min-width: 391px;
	height: 40px;
	padding: 8px 12px 8px 24px;
	border-radius: 999px;
	background: var(--white);
	color: var(--primary-brand-2);
	font-family: var(--desktop-button-font), sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
	align-self: flex-end;
}

.rki-apply__buttonIcon {
	width: 16px;
	height: 16px;
	border-radius: 12px;
	background: var(--primary-brand-2);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.rki-apply__buttonIcon img {
	display: block;
	width: 9px;
	height: 7px;
}

/* ——— Schedule ——— */
.page-content h2.rki-sectionTitle,
.rki-sectionTitle {
	font-family: var(--desktop-h2-font), serif;
	font-size: var(--desktop-h2-size);
	font-weight: var(--desktop-h2-weight);
	color: var(--text);
	line-height: 1.1;
	margin: var(--spacing-12) 0 var(--spacing-6);
}

/* Contacts title lives inside the bordered box (like abitur) */
.page-content .rki-contactsGrid > h2.rki-sectionTitle,
.rki-contactsGrid > h2.rki-sectionTitle,
.page-content h2#rki-contacts-title,
h2#rki-contacts-title.rki-sectionTitle {
	color: var(--primary-brand-2);
	margin: 0;
}

.rki-schedule__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 48px;
}

.rki-schedule__metaItem {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	padding: 8px 12px;
	border-radius: 999px;
	background: var(--primary-brand-1);
	color: var(--white);
	font-family: var(--desktop-subtitle-font), sans-serif;
	font-size: 10px;
	font-weight: 400;
	line-height: 1;
}

.rki-schedule__metaItem:last-child {
	background: var(--primary-brand-3);
	color: var(--primary-brand-1);
}

.rki-lectures {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rki-schedule__intro {
	max-width: 1140px;
	color: var(--text);
	font-family: var(--desktop-body-font), sans-serif;
	font-size: var(--desktop-body-size);
	font-weight: var(--desktop-body-weight);
	line-height: 1.45;
	margin-bottom: 47px;
}

.rki-lecture {
	display: grid;
	grid-template-columns: 100px minmax(0, 872px) minmax(0, 407px) 56px;
	column-gap: 56px;
	row-gap: 26px;
	align-items: start;
	background: var(--white);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.rki-lecture__dateTime {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

.rki-lecture__datePill {
	background: #d24256;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 999px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.rki-lecture__datePillText {
	font-family: var(--desktop-subtitle-font), sans-serif;
	font-size: var(--desktop-subtitle-size);
	font-weight: var(--desktop-subtitle-weight);
	line-height: 1;
	white-space: nowrap;
}

.rki-lecture__datePill--single {
	width: 72px;
	height: 72px;
	border-radius: 10px;
	flex-direction: column;
	gap: 0;
}

.rki-lecture__datePillDay {
	font-family: var(--desktop-h3-font), serif;
	font-size: var(--desktop-h3-size);
	font-weight: var(--desktop-h3-weight);
	line-height: var(--desktop-h3-line);
	font-feature-settings: "lnum" 1, "pnum" 1;
}

.rki-lecture__datePillMonth {
	font-family: var(--desktop-body2-font), sans-serif;
	font-size: var(--desktop-body2-size);
	font-weight: var(--desktop-body2-weight);
	line-height: 1;
	opacity: 0.5;
}

.rki-lecture__time {
	font-family: var(--desktop-h5-font), sans-serif;
	font-size: var(--desktop-h5-size);
	font-weight: var(--desktop-h5-weight);
	color: var(--primary-brand-1);
	line-height: 1;
	text-align: center;
}

.rki-lecture__main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.rki-lecture__title {
	font-family: var(--desktop-h5-font), sans-serif;
	font-size: var(--desktop-h5-size);
	font-weight: var(--desktop-h5-weight);
	color: var(--text);
	line-height: 1;
}

.rki-lecture__desc {
	color: var(--text);
	font-family: var(--desktop-body-font), sans-serif;
	font-size: var(--desktop-body-size);
	font-weight: var(--desktop-body-weight);
	line-height: 1;
}

.rki-lecture__person {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	min-width: 0; /* allow grid item to shrink */
}

.rki-person {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	min-width: 0;
}

.rki-person__avatar {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	position: relative;
}

.rki-person__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rki-person__avatar--icon {
	background: transparent;
	border: 0;
}

.rki-person__avatarIcon {
	display: block;
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.rki-person__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.rki-person__name {
	font-family: var(--desktop-body2-font), sans-serif;
	font-size: var(--desktop-body2-size);
	font-weight: var(--desktop-body2-weight);
	color: var(--text);
	line-height: 1;
}

.rki-person__role {
	font-family: var(--desktop-body-font), sans-serif;
	font-size: var(--desktop-body-size);
	font-weight: var(--desktop-body-weight);
	line-height: 1.2;
	color: var(--gray-300);
	overflow-wrap: anywhere;
}

/* Figma: Featured icon 56×56 → Arrow box 28×28 → Vector 15.75×15.75 */
.rki-lecture__featuredIcon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--white);
	text-decoration: none;
}

.rki-lecture__featuredIconInner {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
}

.rki-lecture__featuredIcon img {
	width: 16px; /* ~15.75 from Figma vector */
	height: 16px;
	display: block;
}

/* ——— Reviews ——— */
.rki-reviews {
	margin-bottom: var(--spacing-12);
}

.rki-reviewsGrid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 30px;
	padding: 8px;
}

.rki-review {
	background: var(--white);
	border-radius: 20px;
	padding: 16px 28px;
	min-height: 157px;
	display: flex;
	align-items: center;
	box-shadow: 0 4px 5px rgba(0, 0, 0, 0.05);
}

.rki-review__text {
	color: var(--text);
	font-family: var(--desktop-body-font), sans-serif;
	font-size: var(--desktop-body-size);
	font-weight: var(--desktop-body-weight);
	line-height: 1;
}

/* ——— Contacts ——— */
.rki-contacts {
	margin-top: var(--spacing-12);
}

.rki-contactsGrid {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 1140px;
	border: 4px solid var(--secondary-2);
	padding: 24px 32px;
	border-radius: 12px;
}

.rki-staffCard {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}

.rki-staffCard__avatar {
	width: 80px;
	height: 80px;
	border-radius: 40px;
	background: #f6f6f6;
	overflow: hidden;
	flex: 0 0 80px;
}

.rki-staffCard__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rki-staffCard__text {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-2);
	min-width: 0;
}

.rki-staffCard__name {
	font-family: var(--desktop-accent-title-font), serif;
	font-size: var(--desktop-accent-title-size);
	font-weight: var(--desktop-accent-title-weight);
	line-height: 1.1;
	color: var(--text);
}

.rki-staffCard__role {
	color: var(--secondary-2);
	font-family: var(--desktop-body-font), sans-serif;
	font-size: var(--desktop-body-size);
	font-weight: var(--desktop-body-weight);
	line-height: 1.2;
}

.rki-staffCard__links {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: 8px;
}

.rki-staffCard__links a {
	color: var(--gray-300);
	text-decoration: none;
	font-family: var(--desktop-body-font), sans-serif;
	font-size: var(--desktop-body-size);
	font-weight: var(--desktop-body-weight);
	line-height: 1;
}

/* ——— Responsive ——— */
@media screen and (max-width: 1400px) {
	.page-content .rki-page h1.rki-hero__title,
	.rki-page h1.rki-hero__title {
		white-space: normal;
	}

	.rki-hero__content {
		max-width: 48%;
		padding-right: 40px;
	}
}

@media screen and (max-width: 1280px) {
	.rki-hero__content {
		max-width: 46%;
		padding: 56px 40px 56px 56px;
	}

	.rki-hero::after {
		width: 50%;
		clip-path: polygon(48% 0, 100% 0, 100% 100%, 0 100%);
		background-position: 40% 30%;
	}

	.rki-apply {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px;
		gap: 16px;
	}

	.rki-apply__button {
		align-self: flex-start;
		width: fit-content;
		min-width: 0;
	}

	.rki-aboutCard {
		min-width: 360px;
		max-width: 360px;
	}

	.rki-cardsRow__swiper .swiper-slide {
		flex-basis: 360px;
		width: 360px;
	}

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

@media screen and (max-width: 1024px) {
	.rki-hero {
		min-height: 507px;
	}

	.rki-hero::before {
		left: -210px;
		top: -182px;
		width: 1113px;
		height: 748px;
	}

	.rki-hero__shapes {
		left: -210px;
		top: -182px;
		width: 1113px;
		height: 748px;
	}

	.rki-hero::after {
		left: 0;
		top: 273px;
		right: auto;
		bottom: auto;
		width: 100%;
		height: 384px;
		clip-path: none;
		background-size: cover;
		background-position: center 42%;
	}

	.page-content .rki-page h1.rki-hero__title,
	.rki-page h1.rki-hero__title {
		font-size: 36px;
		line-height: 1;
		white-space: normal;
	}

	.rki-hero__lead {
		font-size: 13px;
		line-height: 1.3;
		max-width: none;
	}

	.rki-hero__content {
		width: auto;
		max-width: none;
		padding: 32px 24px 0;
		gap: var(--spacing-4);
	}

	.rki-page a.rki-hero__ctaButton,
	.rki-hero__ctaButton {
		width: auto;
		max-width: none;
		font-size: 14px;
	}

	.rki-lecture {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			'datetime datetime'
			'main main'
			'person icon';
		gap: 16px;
		padding: 16px;
	}

	.rki-lecture__dateTime {
		grid-area: datetime;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		gap: 0;
	}

	.rki-lecture__main {
		grid-area: main;
		gap: 12px;
	}

	.rki-lecture__title {
		font-size: 14px;
		font-weight: 700;
		line-height: 1.2;
	}

	.rki-lecture__desc {
		font-size: 12px;
		line-height: 1.3;
	}

	.rki-lecture__time {
		font-size: 15px;
		font-weight: 600;
	}

	.rki-lecture__datePill--single {
		width: 60px;
		height: 60px;
	}

	.rki-lecture__datePillDay {
		font-size: 20px;
		font-weight: 600;
		line-height: 1;
	}

	.rki-lecture__datePillMonth {
		font-size: 12px;
		font-weight: 700;
		opacity: 0.5;
	}

	.rki-lecture__person {
		grid-area: person;
		display: flex;
		min-width: 0;
	}

	.rki-lecture__featuredIcon {
		grid-area: icon;
		display: flex;
		align-self: flex-start;
		width: 32px;
		height: 32px;
		border-radius: 16px;
	}

	.rki-lecture__featuredIconInner {
		width: 16px;
		height: 16px;
		flex: 0 0 16px;
	}

	.rki-lecture__featuredIcon img {
		width: 16px;
		height: 16px;
	}

	.rki-person {
		gap: 12px;
	}

	.rki-person__name {
		font-size: 12px;
		font-weight: 700;
		line-height: 1.2;
	}

	.rki-person__role {
		font-size: 12px;
		line-height: 1.2;
	}
}

@media screen and (max-width: 768px) {
	.rki-hero {
		margin-bottom: var(--spacing-10);
	}

	.rki-breadcrumbs {
		margin-bottom: var(--spacing-4);
	}

	.rki-aboutCard {
		min-width: 0;
		max-width: none;
		width: 100%;
		height: auto;
		padding: var(--spacing-5) var(--spacing-4);
	}

	.rki-aboutCard__title {
		font-size: 16px;
		line-height: 1.1;
	}

	.rki-apply {
		padding: 20px 16px;
	}

	.rki-apply__content {
		gap: 10px;
		max-width: none;
	}

	.rki-apply__title {
		font-size: 16px;
		line-height: 1.1;
	}

	.rki-apply__text {
		max-width: none;
		font-size: 12px;
		line-height: 1.3;
	}

	.rki-cardsRow__swiper .swiper-slide {
		flex-basis: calc(100% - 48px);
		width: calc(100% - 48px);
	}

	.rki-cardsRow__swiper {
		padding-top: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.rki-cardsRow__nav {
		display: none;
	}

	.page-content h2.rki-sectionTitle,
	.rki-sectionTitle {
		margin: var(--spacing-10) 0 var(--spacing-5);
		font-size: 28px;
	}

	.page-content .rki-contactsGrid > h2.rki-sectionTitle,
	.rki-contactsGrid > h2.rki-sectionTitle,
	.page-content h2#rki-contacts-title,
	h2#rki-contacts-title.rki-sectionTitle {
		margin: 0;
	}

	.rki-reviewsGrid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.rki-review {
		min-height: 0;
		height: auto;
		align-items: flex-start;
		padding: 12px 16px;
		border-radius: 16px;
	}

	.rki-contactsGrid {
		padding: 16px;
	}

	.rki-staffCard {
		padding: 0;
		border-radius: 0;
	}
}

@media screen and (max-width: 480px) {
	.rki-hero {
		min-height: 492px;
	}

	.rki-hero::before {
		left: -162px;
		top: -140px;
		width: 817px;
		height: 562px;
	}

	.rki-hero__shapes {
		left: -162px;
		top: -140px;
		width: 817px;
		height: 562px;
	}

	.rki-hero::after {
		top: 306px;
		height: 186px;
		background-size: cover;
		background-position: center 45%;
	}

	.page-content .rki-page h1.rki-hero__title,
	.rki-page h1.rki-hero__title {
		font-size: 28px;
	}

	.rki-hero__lead {
		font-size: 12px;
		line-height: 1.2;
	}

	.rki-hero__content {
		padding: 24px 24px 16px;
		gap: 16px;
	}

	.rki-page a.rki-hero__ctaButton,
	.rki-hero__ctaButton {
		width: 100%;
		font-size: 12px;
	}

	.rki-apply__button {
		width: 100%;
		align-self: stretch;
	}
}

@media screen and (max-width: 360px) {
	.rki-hero {
		min-height: 512px;
	}

	.rki-hero::after {
		top: 326px;
	}

	.rki-hero__content {
		padding-bottom: 20px;
	}

	.rki-staffCard__avatar {
		width: 72px;
		height: 72px;
		flex-basis: 72px;
	}
}

