/* Главная по документу «Главная страница Khalimon Legal (1).docx» (2026-10-12).
   Новые блоки (kh-*) в стиле архива: те же цвета (#2F2F2E, #3A3A39, #1C1C1C, золото #D6AF46),
   те же имена шрифтов ('IntroWeb', 'Montserrat-Medium'), чтобы подмена шрифтов подействовала сразу. */

html {
	scroll-behavior: smooth;
}

section[id] {
	scroll-margin-top: 100px;
}

/* --- Первый экран ----------------------------------------------------- */
.work > .container.kh-hero-container {
	height: auto;
	min-height: calc(100vh - 153px - 215px);
}

.work > .container.kh-hero-container {
	padding-bottom: 270px;
}

.kh-hero {
	width: 90%;
	padding-bottom: 20px;
}

.kh-hero .work-suptitle.kh-hero-title {
	font-size: 44px;
	max-width: 900px;
	padding-right: 0;
}

.kh-hero-text {
	max-width: 760px;
	margin-top: 28px;
}

.kh-hero-text p {
	margin: 0 0 12px;
	font-family: "Montserrat-Medium";
	font-size: 20px;
	line-height: 150%;
	color: rgba(255, 255, 255, 0.88);
}

.kh-hero-action {
	margin-top: 36px;
}

.kh-hero-note {
	max-width: 520px;
	margin: 18px 0 0;
	font-family: "Montserrat-Medium";
	font-size: 14px;
	line-height: 150%;
	color: rgba(255, 255, 255, 0.7);
}

.kh-hero-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 20px 44px;
	width: 72%;
}

.kh-hero-nav .work-sl-nav-link {
	margin-bottom: 0;
}

.kh-hero-nav .work-sl-nav-link span {
	margin: 0;
}

/* --- Кнопка ----------------------------------------------------------- */
.kh-btn {
	display: inline-block;
	transition: 300ms;
	font-family: 'IntroWeb';
	font-weight: bold;
	font-size: 16px;
	line-height: 130%;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	color: #ffffff;
	background: #D6AF46;
	padding: 22px 44px;
}

.kh-btn:hover {
	background: #9C9C9D;
	color: #fff;
}

.header-link a.kh-header-cta {
	border: 1px solid #D6AF46;
	padding: 10px 20px;
	white-space: nowrap;
}

.header-link a.kh-header-cta:hover {
	background: #D6AF46;
	color: #fff;
}

/* --- Секции ----------------------------------------------------------- */
.kh-section {
	padding: 120px 0;
	background: #F5F5F5;
}

.kh-section.kh-dark {
	background: #3A3A39;
	color: #fff;
}

.kh-section.kh-why {
	background: #1C1C1C;
}

.kh-kicker {
	margin-bottom: 18px;
	font-family: 'IntroWeb';
	font-size: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #D6AF46;
}

.kh-h2 {
	margin: 0;
	max-width: 980px;
	font-family: 'IntroWeb';
	font-weight: normal;
	font-size: 38px;
	line-height: 130%;
	color: #2F2F2E;
}

.kh-dark .kh-h2,
.kh-h2-light {
	color: #fff;
}

.kh-h2-light {
	font-size: 30px;
}

.kh-h2-small {
	font-size: 26px;
}

.kh-lead {
	max-width: 760px;
	margin: 24px 0 0;
	font-family: "Montserrat-Medium";
	font-size: 18px;
	line-height: 150%;
	color: #373737;
}

.kh-dark .kh-lead {
	color: rgba(255, 255, 255, 0.8);
}

.kh-grid {
	display: grid;
	gap: 30px;
	margin-top: 60px;
}

.kh-grid-2 { grid-template-columns: repeat(2, 1fr); }
.kh-grid-3 { grid-template-columns: repeat(3, 1fr); }
.kh-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Карточки --------------------------------------------------------- */
.kh-card {
	background: #fff;
	padding: 40px;
	border-top: 3px solid transparent;
	transition: all 300ms ease;
}

.kh-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.kh-card-link:hover,
.kh-case:hover {
	border-top-color: #D6AF46;
	transform: translateY(-4px);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.kh-card-dark {
	background: #3A3A39;
	color: #fff;
}

.kh-card-dark.questios-remain-block2 {
	width: auto;
}

.kh-card-dark .kh-card-text {
	color: rgba(255, 255, 255, 0.8);
	margin-bottom: 24px;
}

.kh-card-title {
	margin: 0 0 16px;
	font-family: 'IntroWeb';
	font-weight: bold;
	font-size: 20px;
	line-height: 130%;
	letter-spacing: 0.02em;
	color: #2F2F2E;
}

.kh-card-dark .kh-card-title,
.kh-dark .kh-card-title {
	color: #fff;
}

.kh-card-text {
	margin: 0;
	font-family: "Montserrat-Medium";
	font-size: 16px;
	line-height: 150%;
	color: #373737;
}

.kh-dark .kh-card-text {
	color: rgba(255, 255, 255, 0.8);
}

.kh-card-text2 {
	margin-top: 14px;
	color: #2F2F2E;
}

/* --- Как мы работаем / почему ---------------------------------------- */
.kh-step,
.kh-why-item {
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.kh-steps {
	margin-bottom: 60px;
}

/* --- Кейсы ------------------------------------------------------------ */
.kh-case {
	display: flex;
	flex-direction: column;
	min-height: 240px;
	text-decoration: none;
}

.kh-case-cat {
	font-family: 'IntroWeb';
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #D6AF46;
}

.kh-case-more {
	margin-top: auto;
	padding-top: 28px;
	font-family: 'IntroWeb';
	font-weight: bold;
	font-size: 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #2F2F2E;
}

/* --- Команда (3 карточки) --------------------------------------------- */
.kh-team-wrap .team-block {
	padding: 120px 60px 100px 195px;
}

.kh-team-wrap .team-block2 {
	padding: 120px 195px 120px 100px;
}

.kh-team-text p {
	margin: 0 0 16px;
}

.kh-people {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.kh-people .slider-people-img a {
	display: block;
	height: auto;
}

/* --- Нам доверяют / рейтинги ------------------------------------------ */
.kh-trusted-text {
	margin: 24px 0 0;
	max-width: 320px;
	font-family: "Montserrat-Medium";
	font-size: 16px;
	line-height: 150%;
	color: #373737;
}

.kh-section.kh-ratings {
	padding: 80px 0;
	background: #3A3A39;
}

.kh-ratings .kh-h2 {
	color: #fff;
}

.kh-ratings-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 30px 80px;
	margin-top: 40px;
}

.kh-ratings-logos img {
	max-height: 70px;
	width: auto;
}

/* --- Финальный блок --------------------------------------------------- */
.kh-final .kh-final-title {
	max-width: none;
	font-size: 38px;
	line-height: 130%;
	text-transform: none;
}

.kh-final-text p {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 150%;
}

.kh-final-direct {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 40px;
	font-family: "Montserrat-Medium";
	font-size: 16px;
	color: #fff;
}

.kh-final-direct a {
	font-family: 'IntroWeb';
	font-weight: bold;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	color: #D6AF46;
}

.kh-final-direct a:hover {
	color: #fff;
}

.kh-consent {
	margin: 16px 0 0;
	max-width: 619px;
	font-family: "Montserrat-Medium";
	font-size: 13px;
	line-height: 150%;
	color: rgba(255, 255, 255, 0.7);
}

/* --- Подвал ----------------------------------------------------------- */
.kh-footer-tagline {
	margin: 0 0 8px;
	color: #fff;
	font-family: "Montserrat-Medium";
}

.kh-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
	margin: 22px 0;
}

.kh-footer-menu a {
	font-family: 'IntroWeb';
	font-size: 14px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
}

.kh-footer-menu a:hover {
	color: #D6AF46;
}

/* --- Окно «Обсудить ситуацию» ----------------------------------------- */
.backdrop {
	background-color: rgba(0, 0, 0, 0.7);
}

#infoModal.modal {
	inset: auto;
	top: 50%;
	left: 50%;
	width: min(560px, 92vw);
	max-height: 92vh;
	overflow-y: auto;
	transform: translate(-50%, -50%) scale(0);
}

#infoModal.modal.modalActive {
	transform: translate(-50%, -50%) scale(1);
}

#infoModal .modalContent.kh-modal-content {
	max-width: none;
	height: auto;
	padding: 10px 40px 40px;
}

.kh-modal-text {
	margin: 14px 0 26px;
	font-family: "Montserrat-Medium";
	font-size: 15px;
	line-height: 150%;
	color: rgba(255, 255, 255, 0.8);
}

#infoModal .questios-remain-block2 {
	width: 100%;
}

/* --- Адаптив ---------------------------------------------------------- */
@media only screen and (max-width: 1400px) {
	.kh-team-wrap .team-block { padding: 100px 40px 80px 80px; }
	.kh-team-wrap .team-block2 { padding: 100px 60px 100px 60px; }
	.kh-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media only screen and (max-width: 1100px) {
	.kh-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.kh-people { grid-template-columns: repeat(2, 1fr); }
}

@media only screen and (max-width: 910px) {
	.kh-section { padding: 70px 0; }
	.kh-h2 { font-size: 28px; }
	.kh-hero { width: 100%; }
	.kh-hero .work-suptitle.kh-hero-title { font-size: 28px; }
	.kh-hero-text p { font-size: 16px; }
	.kh-hero-nav { display: none; }
	.kh-grid { margin-top: 36px; gap: 20px; }
	.kh-grid-2,
	.kh-grid-3,
	.kh-grid-4 { grid-template-columns: 1fr; }
	.kh-card { padding: 28px 24px; }
	.kh-team-wrap { flex-direction: column; }
	.kh-team-wrap .team-block,
	.kh-team-wrap .team-block2 { width: 100%; padding: 60px 24px; }
	.kh-people { grid-template-columns: 1fr; }
	.kh-final .kh-final-title { font-size: 28px; }
	.kh-final .questios-remain-wrap { flex-direction: column; }
	.kh-final .questios-remain-block,
	.kh-final .questios-remain-block2 { width: 100%; margin-right: 0; }
	.kh-final .questios-remain-block2 { margin-top: 40px; }
	.kh-ratings-logos { gap: 24px 40px; }
	#infoModal .modalContent.kh-modal-content { padding: 10px 22px 30px; }
}

/* --- Правки после проверки на стенде --------------------------------- */
.wearein {
	padding-bottom: 100px;
}

.wearein-number {
	font-size: 64px;
	text-transform: none;
	white-space: nowrap;
}

.kh-situations .kh-card-dark {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 60px;
	align-items: start;
}

.kh-situations .kh-card-dark .kh-card-title,
.kh-situations .kh-card-dark .kh-card-text {
	grid-column: 1;
}

.kh-situations .kh-card-dark .wpcf7 {
	grid-column: 2;
	grid-row: 1 / span 3;
}

.kh-card-dark .wpcf7-form textarea.wpcf7-form-control {
	min-height: 80px;
}

@media only screen and (max-width: 910px) {
	.work > .container.kh-hero-container { padding-bottom: 60px; }
	.wearein-number { font-size: 48px; }
	.wearein-wrap { flex-wrap: wrap; gap: 30px 0; }
	.wearein-block { width: 50%; }
	.kh-situations .kh-card-dark { display: block; }
}

/* --- Мобильные правки (проверка 375 px) ------------------------------- */
.kh-footer-menu a:visited {
	color: #fff;
}

#infoModal .wpcf7-form textarea.wpcf7-form-control {
	min-height: 70px;
}

@media only screen and (max-width: 910px) {
	.work-block2 {
		width: 100%;
		right: 0;
	}
	.work-block2 .work-block-wrap {
		justify-content: flex-start;
		gap: 24px;
		flex-wrap: wrap;
	}
	.work-block2 .work-img2 {
		padding-top: 0;
	}
	.wearein-number {
		font-size: 34px;
		white-space: normal;
	}
	.wearein-suptitle {
		font-size: 16px;
		overflow-wrap: anywhere;
	}
}

/* --- Без горизонтального скролла ------------------------------------- */
html,
body {
	max-width: 100%;
	overflow-x: hidden;
}

.wpcf7,
.wpcf7 form,
.wpcf7-form-control-wrap,
.wpcf7 input,
.wpcf7 textarea {
	max-width: 100%;
	box-sizing: border-box;
}

.wpcf7-form-control-wrap {
	display: block;
}

.wpcf7-response-output,
.wpcf7-not-valid-tip {
	overflow-wrap: anywhere;
}

@media only screen and (max-width: 600px) {
	.container {
		padding-left: 20px;
		padding-right: 20px;
	}
	.kh-section { padding: 56px 0; }
	.kh-card { padding: 22px 18px; }
	.kh-grid { gap: 14px; margin-top: 28px; }
	.kh-final .questios-remain-wrap { padding: 0; }
	.questios-remain { padding: 60px 0; }
	.kh-team-wrap .team-block,
	.kh-team-wrap .team-block2 { padding: 40px 20px; }
	.kh-hero-note,
	.kh-consent { max-width: 100%; }
	#infoModal.modal { width: 94vw; }
	#infoModal .modalContent.kh-modal-content { padding: 6px 16px 24px; }
}

/* --- Кейсы: карточка-кнопка и попап ----------------------------------- */
.kh-case {
	cursor: pointer;
}

.kh-case-tpl {
	display: none;
}

.kh-pop[hidden] {
	display: none;
}

.kh-pop {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.kh-pop-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}

.kh-pop-box {
	position: relative;
	width: min(680px, 100%);
	max-height: 90vh;
	overflow-y: auto;
	padding: 48px 44px 40px;
	background: #3A3A39;
	color: #fff;
}

.kh-pop-close {
	position: absolute;
	top: 10px;
	right: 16px;
	font-size: 34px;
	line-height: 1;
	color: #fff;
	background: none;
	cursor: pointer;
}

.kh-pop-close:hover {
	color: #D6AF46;
}

.kh-pop-title {
	margin: 12px 0 22px;
	font-family: 'IntroWeb';
	font-weight: bold;
	font-size: 26px;
	line-height: 130%;
	color: #fff;
}

.kh-pop-body {
	margin-bottom: 30px;
	font-family: "Montserrat-Medium";
	font-size: 16px;
	line-height: 160%;
	color: rgba(255, 255, 255, 0.85);
}

.kh-pop-body p {
	margin: 0 0 14px;
}

body.kh-pop-open {
	overflow: hidden;
}

@media only screen and (max-width: 600px) {
	.kh-pop-box { padding: 40px 20px 28px; }
	.kh-pop-title { font-size: 21px; }
}

/* --- Слайдеры логотипов («Нам доверяют», рейтинги) ---------------------- */
.kh-logo-slider {
	margin: 44px -8px 0;
}

.kh-logo-slider .slick-slide {
	padding: 0 8px;
}

.kh-logo {
	display: flex !important;
	align-items: center;
	justify-content: center;
	height: 120px;
	padding: 18px;
	background: #fff;
	border: 1px solid #e6e6e6;
	transition: all 300ms ease;
}

.kh-logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(100%);
	opacity: 0.7;
	transition: all 300ms ease;
}

.kh-logo:hover {
	border-color: #D6AF46;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.kh-logo:hover img {
	filter: none;
	opacity: 1;
}

.kh-ratings-slider .kh-logo {
	height: 90px;
	background: transparent;
	border-color: rgba(255, 255, 255, 0.22);
}

.kh-ratings-slider .kh-logo img {
	filter: none;
	opacity: 0.9;
}

.kh-ratings-slider .kh-logo:hover {
	border-color: #D6AF46;
	box-shadow: none;
}

.kh-logo-slider .slick-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.kh-logo-slider .slick-dots li button {
	width: 8px;
	height: 8px;
	padding: 0;
	font-size: 0;
	border-radius: 50%;
	background: #bdbdbd;
}

.kh-logo-slider .slick-dots li.slick-active button {
	background: #D6AF46;
}

.kh-trusted {
	background: #F5F5F5;
	padding-bottom: 90px;
}

.kh-section.kh-ratings {
	padding: 70px 0 80px;
}

@media only screen and (max-width: 560px) {
	.kh-logo { height: 96px; padding: 12px; }
	.kh-ratings-slider .kh-logo { height: 76px; }
}

.kh-logo-slider .slick-dots {
	display: none !important;
}

/* --- Полоса практик под первым экраном: одна строка -------------------- */
.work-inner .work-inner-block.kh-hero-nav {
	flex: 1 1 auto;
	flex-wrap: nowrap;
	justify-content: space-between;
	gap: 0 clamp(14px, 1.6vw, 32px);
	width: auto;
	min-width: 0;
	padding-left: 20px;
	padding-right: clamp(14px, 1.6vw, 32px);
}

.work-inner .kh-hero-nav .work-sl-nav-link {
	white-space: nowrap;
	font-size: clamp(11px, 0.95vw, 14px);
}

.work-inner .kh-hero-nav .work-inner-logo {
	flex: 0 0 auto;
}

.work-blur .work-inner-link-bg {
	width: 20%;
}

.work-inner .work-inner-block.kh-hero-nav {
	padding-right: calc(20% + 60px);
}

@media only screen and (max-width: 1100px) {
	.work-inner .work-inner-block.kh-hero-nav {
		flex-wrap: wrap;
		gap: 14px clamp(14px, 1.6vw, 32px);
	}
}

/* --- Ноутбучные ширины (проверка на 1440): первый экран, полоса практик, команда --- */
.work > .container.kh-hero-container {
	padding-top: 36px;
}

.work-blur .work-inner-link-bg {
	width: 16%;
}

.work-inner .work-inner-block.kh-hero-nav {
	padding-right: calc(16% + 90px);
	gap: 0 clamp(12px, 1.2vw, 32px);
}

.work-inner .kh-hero-nav .work-sl-nav-link {
	font-size: clamp(10px, 0.83vw, 14px);
}

@media only screen and (max-width: 1600px) {
	.work-inner .kh-hero-nav .work-inner-logo {
		display: none;
	}
}

@media only screen and (max-width: 1700px) {
	.kh-team-wrap .team-block {
		padding: 100px 40px 80px 80px;
	}
	.kh-team-wrap .team-block2 {
		padding: 100px 80px 100px 60px;
	}
}

@media only screen and (max-width: 1200px) {
	.kh-team-wrap {
		flex-direction: column;
	}
	.kh-team-wrap .team-block,
	.kh-team-wrap .team-block2 {
		width: 100%;
	}
	.kh-team-wrap .team-block {
		padding: 70px 40px 30px;
	}
	.kh-team-wrap .team-block2 {
		padding: 30px 40px 80px;
	}
	.work-inner .work-inner-block.kh-hero-nav {
		padding-right: calc(16% + 40px);
	}
}

/* --- Полоса «Все практики»: тонкая, плашка не заезжает на пункты ------ */
.work-blur .work-inner {
	padding: 22px 0;
}

.work-blur .work-inner-link-bg:after {
	transform: skewX(-30deg) translateX(46px);
}

.work > .container.kh-hero-container {
	padding-bottom: 100px;
}

.work-inner .work-inner-block.kh-hero-nav {
	padding-right: calc(16% + 70px);
}

@media only screen and (max-width: 910px) {
	.work > .container.kh-hero-container {
		padding-bottom: 80px;
	}
}

/* --- Мобильная версия: полоса практик чипами, пресс-центр табами ------ */
@media only screen and (max-width: 910px) {
	.work-blur {
		position: relative;
		bottom: auto;
		max-height: none;
		background: rgba(255, 255, 255, 0.12);
	}
	.work-blur .work-inner {
		display: block;
		padding: 18px 0 22px;
	}
	.work-inner .work-inner-block.kh-hero-nav {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		width: 100%;
		padding: 0;
		justify-content: flex-start;
	}
	.work-inner .kh-hero-nav .work-inner-logo {
		display: none;
	}
	.work-inner .kh-hero-nav .work-sl-nav-link {
		display: block;
		white-space: normal;
		font-size: 12px;
		line-height: 130%;
		margin: 0;
		padding: 9px 12px;
		border: 1px solid rgba(255, 255, 255, 0.35);
		opacity: 1;
	}
	.work-inner .kh-hero-nav .work-sl-nav-link span {
		margin: 0;
	}
	.work-inner .kh-hero-nav .work-sl-nav-link span:before {
		display: none;
	}
	.work-blur .work-inner-link-bg {
		position: static;
		width: 100%;
		height: auto;
		margin-top: 14px;
		background: #D6AF46;
	}
	.work-blur .work-inner-link-bg:after {
		display: none;
	}
	.work-blur .work-inner-link-bg a {
		padding: 16px 10px;
		height: auto;
		color: #fff;
	}

	.press-center-ul2.tabs__caption1 {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		padding: 28px 0 14px;
	}
	.press-center-li {
		list-style: none;
	}
	.press-center-li .press-center-item {
		display: block;
		padding: 9px 14px;
		border: 1px solid #bdbdbd;
		font-size: 12px;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: #2F2F2E;
		background: transparent;
		cursor: pointer;
	}
	.press-center-li.active .press-center-item {
		background: #D6AF46;
		border-color: #D6AF46;
		color: #fff;
	}
	.press-center-li:before,
	.press-center-li:after,
	.press-center-li .press-center-item:before,
	.press-center-li .press-center-item:after {
		display: none;
	}

	.wearein-block {
		padding-right: 14px;
	}
}

/* --- Мобильная версия: цифры, отступы, меню подвала (тема 1.6) ------------- */
@media (max-width: 910px) {
	.wearein {
		padding: 48px 0 44px;
	}
	.wearein-wrap {
		gap: 24px 0;
	}
	.wearein-block {
		width: 50%;
		padding-right: 6px;
		padding-bottom: 0;
	}
	.wearein-number {
		white-space: nowrap;
		font-size: 30px;
	}
	.wearein-suptitle {
		overflow-wrap: break-word;
		word-break: normal;
		hyphens: none;
		letter-spacing: 0.3px;
	}
	.kh-trusted {
		padding-bottom: 36px;
	}
	.kh-section.kh-ratings {
		padding: 44px 0 48px;
	}
	.kh-footer-menu {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px 20px;
	}
}

@media (max-width: 420px) {
	.wearein-number {
		font-size: 26px;
	}
}

@media (max-width: 340px) {
	.wearein-suptitle {
		font-size: 14px;
	}
}
