/* /monitoring/ - верстка по макету "Мониторинг серверов" */

.mon-container {
	max-width: 1220px;
	width: 100%;
	margin: 0 auto;
}

.mon-container,
.mon-container *,
.mon-container *:before,
.mon-container *:after,
.mon-why,
.mon-how,
.mon-flow,
.mon-flow *,
.mon-flow *:before,
.mon-flow *:after {
	box-sizing: border-box;
}

/* кнопки: канон из claude/frontend.md */

.mon-btn {
	background: #0254A2;
	color: #fff;
	border: none;
	padding: 10px 40px;
	font-family: StemWebLight, Verdana;
	font-size: 22px;
	line-height: 1.4;
	border-radius: 5px;
	cursor: pointer;
	transition-duration: 200ms;
	white-space: nowrap;
}

.mon-btn:hover { background: #0F4985 }

.mon-btn--green { background: #72B634 }
.mon-btn--green:hover { background: #5d9f24 }

/* общие заголовки секций */

.mon-why__header,
.mon-how__header,
.mon-types__header,
.mon-feat__header,
.mon-steps__header,
.mon-faq__title {
	font-size: 52px;
	font-weight: 200;
	line-height: 120%;
	color: #222;
	margin: 0;
	overflow-wrap: break-word;
	text-align: center;
}

/* первый экран */

.mon-hero {
	display: flex;
	align-items: center;
	gap: 40px;
	padding: 20px 0 60px 0;
}

.mon-hero__column {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.mon-hero__column:first-child { flex: 1 1 auto }
.mon-hero__column:last-child { flex: 0 1 auto }

.mon-hero__title {
	font-size: 60px;
	overflow-wrap: break-word;
	font-weight: 500;
	line-height: 120%;
	color: #222;
	margin: 10px 0 30px 0;
}

.mon-hero__text {
	font-size: 20px;
	line-height: 150%;
	color: #222;
	max-width: 520px;
}

.mon-hero__marks {
	display: flex;
	flex-wrap: wrap;
	gap: 15px 45px;
	margin: 45px 0 45px 0;
}

.mon-hero__mark {
	border-left: 4px solid #72B634;
	border-radius: 2px;
	padding: 2px 0 2px 12px;
	font-size: 15px;
	line-height: 130%;
	color: #222;
	max-width: 160px;
}

.mon-hero__image {
	display: block;
	width: 520px;
	max-width: 100%;
	height: auto;
}

/* почему стоит выбрать */

.mon-why { padding: 40px 0 60px 0 }

.mon-why__header {
	text-align: center;
	max-width: 760px;
	margin: 0 auto;
}

.mon-why__items {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	gap: 90px;
	margin-top: 40px;
}

.mon-cap {
	position: relative;
	overflow: hidden;
	width: 206px;
	flex: 0 0 206px;
	border-radius: 103px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0 24px 45px 24px;
	color: #fff;
}

/* тёмный узор из макета: волна из одной кубической кривой - одна дуга
   (border-radius) такую форму не повторяет: у неё нет перегиба.
   Цвет зашит в svg, поэтому картинка своя у каждой плашки */
.mon-cap:before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 75%;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

.mon-cap__icon {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	width: 84px;
	height: auto;
	z-index: 1;
}

.mon-cap__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.mon-cap__title {
	font-size: 16px;
	line-height: 130%;
	text-align: center;
}

.mon-cap__text {
	font-size: 15px;
	line-height: 140%;
	text-align: center;
}

.mon-cap--1 { background: #02B1E2; height: 540px; margin-top: 160px }
.mon-cap--1:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='206' height='487' viewBox='0 0 206 487' preserveAspectRatio='none'%3E%3Cpath fill='%230183AB' d='M0 0C73.6 128.6 131.1 6.1 206 130.7V487H0Z'/%3E%3C/svg%3E") }
.mon-cap--1 .mon-cap__icon { top: 40px }

.mon-cap--2 { background: #0180C9; height: 540px }
.mon-cap--2:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='206' height='487' viewBox='0 0 206 487' preserveAspectRatio='none'%3E%3Cpath fill='%23006098' d='M0 0C73.6 128.6 131.1 6.1 206 130.7V487H0Z'/%3E%3C/svg%3E") }
.mon-cap--2 .mon-cap__icon { top: 35px }

.mon-cap--3 { background: #0054A5; height: 540px; margin-top: 160px }
.mon-cap--3:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='206' height='487' viewBox='0 0 206 487' preserveAspectRatio='none'%3E%3Cpath fill='%2300417B' d='M0 0C73.6 128.6 131.1 6.1 206 130.7V487H0Z'/%3E%3C/svg%3E") }
.mon-cap--3 .mon-cap__icon { top: 55px }

.mon-cap--4 { background: #28338C; height: 540px }
.mon-cap--4:before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='206' height='487' viewBox='0 0 206 487' preserveAspectRatio='none'%3E%3Cpath fill='%231D2668' d='M0 0C73.6 128.6 131.1 6.1 206 130.7V487H0Z'/%3E%3C/svg%3E") }
.mon-cap--4 .mon-cap__icon { top: 35px }

/* автоматический мониторинг */

.mon-about {
	background: #F2F5FE url(/im/mon/server.png) no-repeat left center;
	background-size: cover;
	border-radius: 40px;
	display: flex;
	justify-content: flex-end;
	padding: 45px 50px;
	min-height: 426px;
}

.mon-about__text {
	width: 56%;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mon-about__header {
	font-size: 40px;
	overflow-wrap: break-word;
	font-weight: 200;
	line-height: 120%;
	color: #222;
	margin: 0;
}

.mon-about p {
	margin: 0;
	max-width: none;
	font-size: 17px;
	line-height: 150%;
	color: #222;
}

/* как работает */

.mon-how { padding: 60px 0 0 0 }

.mon-how__lead {
	font-size: 20px;
	line-height: 150%;
	color: #222;
	max-width: 800px;
	margin-top: 15px;
}

.mon-flow {
	position: relative;
	margin-top: 50px;
	overflow: hidden;
}

.mon-flow:before,
.mon-flow:after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 0;
}

.mon-flow:before {
	left: 0;
	width: 46%;
	background: linear-gradient(to bottom, #62C2E3 0 25%, #05B0E0 25% 50%, #0480CA 50% 75%, #0055A4 75% 100%);
	clip-path: polygon(0 0, 73.4% 0, 100% 100%, 0 100%);
}

.mon-flow:after {
	right: 0;
	width: 24.2%;
	background: linear-gradient(to bottom, #B1E68F 0 25%, #6AC844 25% 50%, #3A9927 50% 75%, #1B6C13 75% 100%);
	clip-path: polygon(0 0, 100% 0, 100% 100%, 46.8% 100%);
}

.mon-flow__row {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 7%;
	min-height: 121px;
	padding: 10px 0;
}

.mon-flow__row--1 { padding-left: 28% }
.mon-flow__row--2 { padding-left: 31.2% }
.mon-flow__row--3 { padding-left: 34.4% }
.mon-flow__row--4 { padding-left: 37.6% }

.mon-flow__icon {
	flex: 0 0 60px;
	width: 60px;
	height: auto;
}

.mon-flow__body {
	max-width: 38%;
	min-width: 0;
}

.mon-flow__title {
	font-size: 20px;
	line-height: 130%;
	color: #222;
	margin-bottom: 10px;
}

.mon-flow__text {
	font-size: 14px;
	line-height: 140%;
	color: #222;
}

/* типы проверок */

.mon-types { padding: 60px 0 }

.mon-types__lead {
	font-size: 20px;
	line-height: 150%;
	color: #222;
	margin-top: 20px;
}

.mon-types__items {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin-top: 35px;
}

.mon-type {
	border-radius: 16px;
	padding: 20px 12px 25px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
	text-align: center;
	color: #fff;
}

.mon-type__icon {
	width: 96px;
	height: 96px;
	border-radius: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mon-type__icon img {
	width: 68px;
	height: auto;
}

.mon-type__name {
	font-size: 17px;
	line-height: 120%;
}

.mon-type__text {
	font-size: 14px;
	line-height: 140%;
}

.mon-type--9 { background: #62C2E3 }
.mon-type--9 .mon-type__icon { background: #A0D2E8 }
.mon-type--10 { background: #05B0E0 }
.mon-type--10 .mon-type__icon { background: #72C5E5 }
.mon-type--14 { background: #0480CA }
.mon-type--14 .mon-type__icon { background: #66A4D5 }
.mon-type--11 { background: #0055A4 }
.mon-type--11 .mon-type__icon { background: #5B86BA }
.mon-type--13 { background: #28368D }
.mon-type--13 .mon-type__icon { background: #6B72AA }
.mon-type--12 { background: #061263 }
.mon-type--12 .mon-type__icon { background: #52598E }

/* возможности */

.mon-feat { padding: 20px 0 60px 0 }

.mon-feat__header { text-align: center }

.mon-feat__columns {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	margin-top: 40px;
}

.mon-feat__list {
	background: #fff;
	box-shadow: 0 0 25px rgba(34, 34, 34, .1);
	border-radius: 20px;
	padding: 0 25px;
}

.mon-feat__item {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 18px 0;
}

.mon-feat__item + .mon-feat__item { border-top: 1px solid #EDEFF2 }

.mon-feat__icon {
	flex: 0 0 auto;
	width: 34px;
	height: auto;
}

.mon-feat__text {
	font-size: 15px;
	line-height: 140%;
	color: #222;
}

/* как подключить */

.mon-steps { padding: 20px 0 60px 0 }

.mon-steps__header { text-align: center }

.mon-steps__items {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.mon-step {
	background: #fff;
	box-shadow: 0 0 25px rgba(34, 34, 34, .1);
	border-radius: 20px;
	padding: 25px 20px 30px 20px;
	text-align: center;
}

.mon-step__top {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 20px;
}

.mon-step__number {
	font-size: 60px;
	font-weight: 200;
	line-height: 1;
	color: #72B634;
}

.mon-step__image {
	width: 110px;
	height: auto;
}

.mon-step__title {
	font-size: 16px;
	line-height: 130%;
	color: #222;
	margin-bottom: 15px;
}

.mon-step__text {
	font-size: 15px;
	line-height: 140%;
	color: #222;
}

.mon-steps__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 35px;
}

/* FAQ - общий блок, эталон в claude/faq.md */

.mon-faq { padding: 40px 0 }

.faq_items {
	display: flex;
	flex-direction: column;
	gap: 20px;
	width: 100%;
	margin-top: 40px;
}

.faq_item {
	background: #fff;
	box-shadow: 0 0 25px rgba(34, 34, 34, .1);
	border-radius: 20px;
	overflow: hidden;
}

.faq_question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	cursor: pointer;
}

.faq_question-text {
	color: #222;
	font-size: 24px;
	font-weight: 500;
	font-style: normal;
	line-height: 120%;
	margin: 0 20px 0 0;
}

.faq_toggle {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.faq_chevron {
	width: 40px;
	height: 40px;
	transition: transform .3s ease;
}

.faq_answer {
	color: #222;
	font-size: 17px;
	font-weight: 350;
	padding: 0 20px 20px;
	display: none;
	line-height: 150%;
}

.faq_item--active .faq_answer { display: block }
.faq_item--active .faq_chevron { transform: rotate(180deg) }

/* нижний призыв */

.mon-cta {
	display: flex;
	align-items: center;
	gap: 30px;
	background: #fff;
	box-shadow: 0 0 25px rgba(34, 34, 34, .1);
	border-radius: 20px;
	padding: 20px 40px 20px 20px;
	margin-bottom: 60px;
}

.mon-cta__illustration {
	flex: 0 0 auto;
	max-width: 100%;
	border-right: 1px solid #EDEFF2;
	padding-right: 30px;
}

.mon-cta__image {
	display: block;
	width: 320px;
	max-width: 100%;
	height: auto;
}

.mon-cta__text {
	flex: 1 1 auto;
	font-size: 17px;
	line-height: 150%;
	color: #222;
}

.mon-cta__action { flex: 0 0 auto }

/* адаптив */

@media (max-width: 1300px) {
	.mon-container {
		padding-left: 20px;
		padding-right: 20px;
	}

	.mon-why__items { gap: 40px }

	.mon-hero__image { width: 42vw }
}

@media (max-width: 1100px) {
	.mon-why__header,
	.mon-how__header,
	.mon-types__header,
	.mon-feat__header,
	.mon-steps__header,
	.mon-faq__title {
		font-size: 40px;
	}

	.mon-hero__title { font-size: 46px }

	.mon-about__header { font-size: 34px }

	.mon-about {
		flex-direction: column;
		justify-content: flex-start;
		background-image: none;
		background-color: #F2F5FE;
		min-height: 0;
		padding: 35px 30px;
	}

	.mon-about__text { width: 100% }

	.mon-about:before {
		content: '';
		display: block;
		width: 100%;
		height: 230px;
		background: url(/im/mon/server.png) no-repeat left center;
		background-size: contain;
		margin-bottom: 15px;
	}

	/* плоский вариант схемы: диагонали убираем */
	.mon-flow {
		display: flex;
		flex-direction: column;
		gap: 15px;
		max-width: 1220px;
		margin: 50px auto 0 auto;
		padding: 0 20px;
	}
	.mon-flow:before, .mon-flow:after { display: none }

	.mon-flow__row {
		min-height: 0;
		padding: 15px 20px !important;
		gap: 20px;
		border-radius: 16px;
		color: #fff;
	}

	.mon-flow__icon { flex: 0 0 60px; width: 60px }

	.mon-flow__body { max-width: none }

	.mon-flow__title, .mon-flow__text { color: #fff }

	.mon-flow__row--1 { background: #62C2E3 }
	.mon-flow__row--2 { background: #05B0E0 }
	.mon-flow__row--3 { background: #0480CA }
	.mon-flow__row--4 { background: #0055A4 }

	.mon-why__items {
		flex-wrap: wrap;
		gap: 25px;
	}

	.mon-cap {
		width: calc(50% - 13px);
		flex: 0 0 calc(50% - 13px);
		height: auto !important;
		min-height: 420px;
		margin-top: 0 !important;
		border-radius: 24px;
		padding: 150px 24px 35px 24px;
	}

	/* карточка ниже и шире - волна опускается под иконку */
	.mon-cap:before { height: 56% }

	.mon-cap__icon { top: 35px !important }

	.mon-types__items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px }

	.mon-steps__items { grid-template-columns: repeat(2, minmax(0, 1fr)) }

	.faq_question-text { font-size: 20px }
}

@media (max-width: 900px) {
	.mon-hero {
		flex-direction: column;
		align-items: flex-start;
		gap: 30px;
	}

	.mon-hero__image { width: 440px }

	.mon-hero__text { max-width: none }

	.mon-cta {
		flex-wrap: wrap;
		padding: 20px;
		justify-content: center;
		text-align: center;
	}

	.mon-cta__illustration {
		border-right: 0;
		padding-right: 0;
	}

	.mon-cta__text { flex: 1 1 100% }
}

@media (max-width: 705px) {
	.mon-why__header,
	.mon-how__header,
	.mon-types__header,
	.mon-feat__header,
	.mon-steps__header,
	.mon-faq__title {
		font-size: 32px;
	}

	.mon-hero__title { font-size: 36px }

	.mon-about__header { font-size: 28px }

	.mon-hero__text,
	.mon-how__lead,
	.mon-types__lead { font-size: 17px }

	.mon-hero__image { width: 100% }

	.mon-types__items { grid-template-columns: repeat(2, minmax(0, 1fr)) }

	.mon-feat__columns { grid-template-columns: minmax(0, 1fr); gap: 20px }

	.mon-steps__footer { justify-content: center }

	.mon-about:before { height: 180px }

	.faq_question-text { font-size: 17px }

	.faq_toggle, .faq_chevron { width: 28px; height: 28px }

	.faq_chevron svg { width: 28px; height: 28px }
}

@media (max-width: 560px) {
	.mon-btn {
		width: 100%;
		padding: 12px 20px;
		font-size: 19px;
	}

	.mon-hero__marks { gap: 12px 25px }

	.mon-hero__mark { max-width: 45% }

	.mon-why__items { flex-direction: column }

	.mon-cap {
		width: 100%;
		flex: 0 0 auto;
		min-height: 0;
		padding: 140px 24px 30px 24px;
	}

	.mon-types__items { grid-template-columns: minmax(0, 1fr) }

	.mon-steps__items { grid-template-columns: minmax(0, 1fr) }

	.mon-about { padding: 25px 20px }

	.mon-about__header { font-size: 24px }

	.mon-cta__image { width: 230px }
}
