/*
 * Страница «Kontakt» (contact.php). Макет: Figma NutriW22, фрейм 99:889.
 * Разметка формы приходит из Contact Form 7, отсюда правила по её классам.
 */

.w22-kontakt {
	--w22-kontakt-black: #101012;
	--w22-kontakt-gutter: var(--w22-header-gutter, 1rem);

	padding-bottom: 90px;
	font-family: 'Roboto', sans-serif;
	line-height: normal;
	color: var(--w22-kontakt-black);
	background: #f4f4f4;
	overflow-x: clip;
}

/* Общий стиль темы красит заголовки в #333, в макете они чёрные. */
.w22-kontakt__title,
.w22-kontakt__heading,
.w22-kontakt-office__hours-title {
	color: var(--w22-kontakt-black);
}

.w22-kontakt__breadcrumbs.blog-page__breadcrumbs-bar {
	max-width: calc(1320px + 2 * var(--w22-kontakt-gutter));
	padding-top: calc(var(--w22-header-height, 81px) + 12px);
	padding-bottom: 0;
}

.w22-kontakt__inner {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(1320px + 2 * var(--w22-kontakt-gutter));
	margin: 0 auto;
	padding: 34px var(--w22-kontakt-gutter) 90px;
}

.w22-kontakt__title {
	margin: 0 0 43px;
	font-size: 40px;
	font-weight: 500;
	line-height: 47px;
	text-transform: uppercase;
}

.w22-kontakt__columns {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 40px;
}

.w22-kontakt__heading {
	margin: 0;
	font-size: 32px;
	font-weight: 500;
	line-height: 38px;
	text-transform: uppercase;
}

.w22-kontakt__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	min-height: 49px;
	padding: 0 24px;
	border: 1px solid var(--w22-kontakt-black);
	font-size: 18px;
	font-weight: 500;
	line-height: 21px;
	color: var(--w22-kontakt-black);
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.w22-kontakt__button:hover,
.w22-kontakt__button:focus-visible {
	color: #fff;
	background: var(--w22-kontakt-black);
}

.w22-kontakt__button:hover img,
.w22-kontakt__button:focus-visible img {
	filter: invert(1);
}

/* === Офис === */
.w22-kontakt-office {
	flex: 0 1 570px;
	min-width: 0;
}

.w22-kontakt-office__details {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
	margin-top: 24px;
}

.w22-kontakt-office__company {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 500;
	line-height: 28px;
}

/* В макете подпись стоит ниже названия компании на 5 px: у них общая линия текста. */
.w22-kontakt-office__hours-title {
	margin: 5px 0 24px;
	font-size: 20px;
	font-weight: 500;
	line-height: 23px;
}

.w22-kontakt-office__text {
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 21px;
}

.w22-kontakt-office__text strong,
.w22-kontakt-office__availability strong {
	font-weight: 500;
}

/* Телефоны с подписями и почта: тем же размером, что адрес и часы работы. */
.w22-kontakt-office__links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-top: 24px;
	font-size: 18px;
	font-weight: 400;
	line-height: 21px;
}

.w22-kontakt-office__phone-line {
	margin: 0;
}

.w22-kontakt-office__phone-line strong {
	font-weight: 500;
}

.w22-kontakt-office__phone {
	color: inherit;
	text-decoration: none;
}

.w22-kontakt-office__email {
	color: inherit;
	text-decoration: underline;
}

.w22-kontakt-office__phone:hover,
.w22-kontakt-office__email:hover {
	opacity: 0.65;
}

.w22-kontakt-office__whatsapp {
	margin-top: 40px;
}

.w22-kontakt-office__availability {
	margin: 40px 0 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 19px;
}

.w22-kontakt-office__social-title {
	margin: 40px 0 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 19px;
}

.w22-kontakt-office__socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.w22-kontakt-office__socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background: #f4f4f4;
	transition: background-color 0.2s ease;
}

.w22-kontakt-office__socials a:hover,
.w22-kontakt-office__socials a:focus-visible {
	background: #e4e4e6;
}

.w22-kontakt-office__socials img {
	display: block;
}

/* === Отзывы === */
.w22-kontakt-reviews {
	display: flex;
	flex: 0 1 660px;
	flex-direction: column;
	min-width: 0;
}

.w22-kontakt-reviews > .w22-kontakt__heading,
.w22-kontakt-reviews__score {
	padding-left: 55px;
}

.w22-kontakt-reviews__score {
	display: flex;
	align-items: center;
	margin-top: 40px;
}

.w22-kontakt-reviews__google {
	display: block;
	flex: none;
	margin-right: 24px;
}

.w22-kontakt-reviews__average {
	margin-right: 24px;
	font-size: 64px;
	font-weight: 600;
	line-height: 75px;
	color: #000;
}

.w22-kontakt-reviews__stars {
	display: flex;
	gap: 4px;
}

.w22-kontakt-reviews__stars img {
	display: block;
}

.w22-kontakt-reviews__slider {
	position: relative;
	margin-top: 40px;
	padding: 0 55px;
}

.w22-kontakt-reviews__swiper {
	width: 100%;
}

/* Пока не загрузился Swiper — те же две карточки, без скачка при запуске. */
.w22-kontakt-reviews__swiper:not(.swiper-initialized) .w22-kontakt-review {
	width: calc((100% - 12px) / 2);
	margin-right: 12px;
}

.w22-kontakt-reviews__arrow {
	position: absolute;
	top: 93px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0.5px solid #cbcbcb;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	-webkit-backdrop-filter: blur(40px);
	backdrop-filter: blur(40px);
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.w22-kontakt-reviews__arrow--prev {
	left: 7px;
}

.w22-kontakt-reviews__arrow--next {
	right: 7px;
}

.w22-kontakt-reviews__arrow.swiper-button-disabled {
	opacity: 0.4;
	cursor: default;
}

.w22-kontakt-review {
	box-sizing: border-box;
	height: 196px;
	padding: 16px 20px;
	background: #fff;
}

.w22-kontakt-review__header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.w22-kontakt-review__avatar {
	position: relative;
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 50%;
	font-size: 24px;
	font-weight: 500;
	color: #381f15;
	background: #e5dad0;
}

.w22-kontakt-review__avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.w22-kontakt-review__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.w22-kontakt-review__author {
	overflow: hidden;
	font-size: 16px;
	font-weight: 500;
	color: #000;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.w22-kontakt-review__date {
	font-size: 12px;
	font-weight: 500;
	color: #8c8b8b;
}

.w22-kontakt-review__stars {
	display: flex;
	gap: 2px;
	height: 16px;
	margin-top: 8px;
}

.w22-kontakt-review__stars img {
	display: block;
}

.w22-kontakt-review__text {
	display: -webkit-box;
	margin: 8px 0 0;
	overflow: hidden;
	font-size: 12px;
	font-weight: 500;
	line-height: 14px;
	color: #000;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	line-clamp: 6;
}

.w22-kontakt-reviews__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
	min-height: 8px;
}

.w22-kontakt-reviews__dots .swiper-pagination-bullet {
	display: block;
	width: 8px;
	height: 8px;
	margin: 0 !important;
	border-radius: 50%;
	background: #d9d9d9;
	opacity: 1;
	cursor: pointer;
}

.w22-kontakt-reviews__dots .swiper-pagination-bullet-active {
	background: #000;
}

.w22-kontakt-reviews__all {
	align-self: center;
	margin-top: 40px;
}

/* === Форма === */
.w22-kontakt-form {
	background: #f6f7f1;
}

.w22-kontakt-form__inner {
	display: flex;
	align-items: center;
	gap: 40px;
	box-sizing: border-box;
	width: 100%;
	max-width: calc(1320px + 2 * var(--w22-kontakt-gutter));
	margin: 0 auto;
	padding: 24px var(--w22-kontakt-gutter);
}

.w22-kontakt-form__photo {
	position: relative;
	flex: 0 0 auto;
	width: min(579px, 44%);
	aspect-ratio: 579 / 538;
	margin: 0;
	overflow: hidden;
}

.w22-kontakt-form__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.w22-kontakt-form__caption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	min-height: 116px;
	padding: 16px 16px 18px;
	font-weight: 500;
	line-height: normal;
	text-align: center;
	color: #fff;
	isolation: isolate;
}

/* Размытие сходит на нет кверху, как на главной и в Firmengeschenke. */
.w22-kontakt-form__caption::before {
	content: '';
	position: absolute;
	top: -72px;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
	pointer-events: none;
	background: rgba(1, 1, 1, 0.12);
	-webkit-backdrop-filter: blur(40px);
	backdrop-filter: blur(40px);
	-webkit-mask-image: linear-gradient(to top, #000 0%, #000 35%, rgba(0, 0, 0, 0.45) 70%, transparent 100%);
	mask-image: linear-gradient(to top, #000 0%, #000 35%, rgba(0, 0, 0, 0.45) 70%, transparent 100%);
}

.w22-kontakt-form__name {
	font-size: 24px;
}

.w22-kontakt-form__role {
	font-size: 18px;
}

.w22-kontakt-form__form {
	flex: 1 1 0;
	min-width: 0;
}

.w22-kontakt-form__form .wpcf7-form {
	margin: 0;
}

.w22-kontakt-form__form .wpcf7-form-control-wrap {
	display: block;
}

.w22-kontakt-form__form .wpcf7-text,
.w22-kontakt-form__form .wpcf7-textarea {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 47px;
	margin: 0 0 12px;
	padding: 0 16px;
	border: 1px solid #bbbbc2;
	border-radius: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	color: var(--w22-kontakt-black);
	background: #fff;
	outline: none;
	box-shadow: none;
	appearance: none;
}

.w22-kontakt-form__form .wpcf7-textarea {
	height: 140px;
	min-height: 96px;
	margin-bottom: 0;
	padding: 16px;
	resize: vertical;
}

.w22-kontakt-form__form .wpcf7-text:focus,
.w22-kontakt-form__form .wpcf7-textarea:focus {
	border-color: var(--w22-kontakt-black);
}

.w22-kontakt-form__form .wpcf7-text::placeholder,
.w22-kontakt-form__form .wpcf7-textarea::placeholder {
	color: #77777c;
	opacity: 1;
}

/* Turnstile в макете не виден: он появится, только если нужна проверка. */
.w22-kontakt-form__form .cf7-question > .flex {
	margin: 0;
}

.w22-kontakt-form__form .cf7-question > p {
	margin: 24px 0 0;
}

.w22-kontakt-form__form .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

.w22-kontakt-form__form .wpcf7-acceptance label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 16px;
	font-weight: 500;
	line-height: 20px;
	color: var(--w22-kontakt-black);
	cursor: pointer;
}

.w22-kontakt-form__form .wpcf7-acceptance input[type='checkbox'] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1px solid #adadad;
	border-radius: 4px;
	background: #fff center / 14px no-repeat;
	cursor: pointer;
	appearance: none;
}

.w22-kontakt-form__form .wpcf7-acceptance input[type='checkbox']:checked {
	border-color: var(--w22-kontakt-black);
	background-color: var(--w22-kontakt-black);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M2.5 7.5l3 3 6-7' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
}

.w22-kontakt-form__form .wpcf7-acceptance a {
	color: inherit;
	text-decoration: underline;
}

.w22-kontakt-form__form .cf7-question > .mt-5 {
	position: relative;
	margin-top: 24px;
}

.w22-kontakt-form__form .wpcf7-submit {
	box-sizing: border-box;
	width: 180px;
	height: 49px;
	padding: 0 24px;
	border: 0;
	border-radius: 0;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	color: #fff;
	background: var(--w22-kontakt-black);
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.w22-kontakt-form__form .wpcf7-submit:hover {
	opacity: 0.8;
}

.w22-kontakt-form__form .wpcf7-spinner {
	position: absolute;
	top: 12px;
	left: 192px;
	margin: 0;
}

.w22-kontakt-form__form .wpcf7-not-valid-tip {
	margin: -8px 0 12px;
	font-size: 14px;
}

.w22-kontakt-form__form .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	font-size: 14px;
}

/* === До 1200: колонки друг под другом === */
@media (max-width: 1200px) {
	.w22-kontakt__columns {
		flex-direction: column;
		gap: 64px;
	}

	.w22-kontakt-office,
	.w22-kontakt-reviews {
		flex: none;
		width: 100%;
		max-width: 660px;
	}

	.w22-kontakt-reviews > .w22-kontakt__heading,
	.w22-kontakt-reviews__score {
		padding-left: 0;
	}
}

/* === До 900: форма под фото === */
@media (max-width: 900px) {
	.w22-kontakt__inner {
		padding-bottom: 64px;
	}

	.w22-kontakt-form__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.w22-kontakt-form__photo {
		width: 100%;
	}

	.w22-kontakt-form__form {
		flex: none;
		width: 100%;
	}

	.w22-kontakt {
		padding-bottom: 64px;
	}
}

/* === До 768: телефоны, отзывы по одному === */
@media (max-width: 767.98px) {
	.w22-kontakt__title {
		margin-bottom: 32px;
		font-size: 28px;
	}

	.w22-kontakt__heading {
		font-size: 24px;
	}

	.w22-kontakt-office__details {
		margin-top: 20px;
	}

	.w22-kontakt-office__company {
		margin-bottom: 12px;
		font-size: 20px;
	}

	.w22-kontakt-office__hours-title {
		margin: 0 0 12px;
		font-size: 18px;
	}

	.w22-kontakt-office__text {
		font-size: 16px;
	}

	.w22-kontakt-office__links {
		font-size: 16px;
		line-height: 19px;
	}

	.w22-kontakt-office__whatsapp,
	.w22-kontakt-reviews__all {
		width: 100%;
		padding-right: 16px;
		padding-left: 16px;
		font-size: 16px;
	}

	.w22-kontakt-reviews__score {
		margin-top: 24px;
	}

	.w22-kontakt-reviews__google {
		width: 48px;
		height: 48px;
		margin-right: 16px;
	}

	.w22-kontakt-reviews__average {
		margin-right: 16px;
		font-size: 44px;
		line-height: 52px;
	}

	.w22-kontakt-reviews__stars img {
		width: 22px;
		height: 22px;
	}

	.w22-kontakt-reviews__slider {
		margin-top: 24px;
		padding: 0;
	}

	.w22-kontakt-reviews__arrow {
		display: none;
	}

	.w22-kontakt-reviews__swiper:not(.swiper-initialized) .w22-kontakt-review {
		width: 100%;
		margin-right: 12px;
	}

	.w22-kontakt-review {
		height: 210px;
	}

	.w22-kontakt-review__text {
		-webkit-line-clamp: 7;
		line-clamp: 7;
	}
}
