/* Страница «Методичка по качеству» — /offer3.

   Вёрстка своя (wsn-of3-*). На витрине это был zero-блок 1200×710 с фоном
   #f2f2f2: логотип, две строки заголовка, россыпь из семи фотографий с
   наклонами, текст и две кнопки. Здесь то же самое обычным стеком, а полоса
   с фотографиями — контейнер с пропорцией, внутри которого снимки стоят в
   процентах от его ширины, поэтому раскладка не рассыпается на узких экранах. */

.wsn-of3 {
	min-height: 100vh;
	box-sizing: border-box;
	padding: 40px 20px 50px;
	background: #f2f2f2;
	font-family: 'Montserrat', Arial, sans-serif;
	color: #000;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.wsn-of3__logo {
	width: 131px;
	height: 46px;
	margin-bottom: 34px;
}

.wsn-of3__lead {
	margin: 0 0 6px;
	font-size: 35px;
	line-height: 1.2;
	font-weight: 400;
}

.wsn-of3__lead strong { font-weight: 700; }

.wsn-of3__title {
	max-width: 849px;
	margin: 0 0 10px;
	font-size: 35px;
	line-height: 1.2;
	font-weight: 400;
}

/* ------------------------------------------------------------------ *
 *  Полоса с фотографиями
 * ------------------------------------------------------------------ */

/* Пропорция полосы взята с витрины: фотографии занимали там участок примерно
   1050×310 внутри блока. Высота считается от ширины, снимки расставлены в
   процентах — их координаты приходят из шаблона. */
.wsn-of3__shots {
	position: relative;
	width: 100%;
	max-width: 1200px;
	aspect-ratio: 1200 / 236;
	margin: 0 auto 6px;
}

.wsn-of3__shot {
	position: absolute;
	object-fit: cover;
	border-radius: 11px;
	transform: rotate(var(--wsn-of3-rot, 0deg));
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.wsn-of3__text {
	margin: 0 0 26px;
	font-size: 16px;
	line-height: 1.45;
	font-weight: 400;
}

/* ------------------------------------------------------------------ *
 *  Кнопки
 * ------------------------------------------------------------------ */

.wsn-of3__btns {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}

.wsn-of3__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 450px;
	max-width: 100%;
	height: 54px;
	padding: 0 20px;
	border-radius: 30px;
	border: 1px solid transparent;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease-in-out, border-color .2s ease-in-out, color .2s ease-in-out;
}

.wsn-of3__btn_tg {
	background: #1084d1;
	border-color: #1084d1;
	color: #fff;
}

.wsn-of3__btn_tg:hover,
.wsn-of3__btn_tg:focus { background: #0773bb; border-color: #0773bb; color: #fff; }

.wsn-of3__btn_no {
	background: transparent;
	border-color: #dedede;
	color: #8b8b8b;
	font-weight: 500;
}

.wsn-of3__btn_no:hover,
.wsn-of3__btn_no:focus { border-color: #8b8b8b; color: #000; }

/* ------------------------------------------------------------------ *
 *  Окно с формой
 * ------------------------------------------------------------------ */

/* display:flex перебивает атрибут hidden, поэтому прячем окно явно. */
.wsn-of3-modal[hidden] { display: none; }

.wsn-of3-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.wsn-of3-modal__back {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .6);
}

.wsn-of3-modal__win {
	position: relative;
	width: 100%;
	max-width: 490px;
	max-height: 90vh;
	overflow-y: auto;
	box-sizing: border-box;
	padding: 40px 40px 30px;
	border-radius: 16px;
	background: #fff;
	font-family: 'Montserrat', Arial, sans-serif;
	text-align: center;
}

.wsn-of3-modal__x {
	position: absolute;
	top: 10px;
	right: 14px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	color: #8b8b8b;
	cursor: pointer;
}

.wsn-of3-modal__x:hover { color: #000; }

.wsn-of3-modal__title {
	margin: 0 0 10px;
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	color: #000;
}

.wsn-of3-modal__sub {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.4;
	color: #000;
}

.wsn-of3-form { text-align: left; }

/* Поля и кнопку после отправки прячет скрипт атрибутом hidden, а у них задан
   свой display — поэтому гасим их явно, как и само окно. */
.wsn-of3-form [hidden] { display: none !important; }

.wsn-of3-form__label {
	display: block;
	margin-bottom: 8px;
	font-size: 16px;
	line-height: 1.35;
	color: #000;
}

.wsn-of3-form__input {
	box-sizing: border-box;
	width: 100%;
	height: 56px;
	margin-bottom: 6px;
	padding: 0 18px;
	border: 1px solid #1084d1;
	border-radius: 10px;
	background: #fff;
	font-family: inherit;
	font-size: 16px;
	color: #000;
}

.wsn-of3-form__input:focus { outline: none; border-color: #0773bb; }
.wsn-of3-form__input.is-bad  { border-color: #d0021b; }

.wsn-of3-form__error {
	margin: 0 0 14px;
	min-height: 16px;
	font-size: 13px;
	line-height: 1.3;
	color: #d0021b;
}

.wsn-of3-form__btn {
	display: block;
	width: 100%;
	height: 56px;
	margin: 6px 0 14px;
	border: 1px solid #1084d1;
	border-radius: 30px;
	background: #1084d1;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease-in-out, border-color .2s ease-in-out;
}

.wsn-of3-form__btn:hover:not(:disabled),
.wsn-of3-form__btn:focus:not(:disabled) { background: #0773bb; border-color: #0773bb; }

.wsn-of3-form__btn:disabled { opacity: .6; cursor: default; }

.wsn-of3-form__done {
	margin: 0 0 14px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #5cc98c;
	font-size: 15px;
	line-height: 1.4;
	color: #fff;
	text-align: center;
}

.wsn-of3-form__consent {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: #8b8b8b;
	text-align: center;
}

.wsn-of3-form__consent a { color: #8b8b8b; text-decoration: underline; }

/* ------------------------------------------------------------------ *
 *  Узкие экраны
 * ------------------------------------------------------------------ */

@media (max-width: 959px) {
	.wsn-of3__lead,
	.wsn-of3__title { font-size: 28px; }

	.wsn-of3__shots { aspect-ratio: 1200 / 260; }
}

@media (max-width: 639px) {
	.wsn-of3 { padding: 26px 16px 36px; }

	.wsn-of3__logo  { margin-bottom: 22px; }
	.wsn-of3__lead,
	.wsn-of3__title { font-size: 20px; }
	.wsn-of3__text  { font-size: 14px; }

	.wsn-of3__shots { aspect-ratio: 1200 / 300; }

	.wsn-of3__btn { height: 50px; font-size: 13px; }

	.wsn-of3-modal__win   { padding: 32px 20px 24px; }
	.wsn-of3-modal__title { font-size: 22px; }
	.wsn-of3-modal__sub   { font-size: 14px; }
}
