/**
 * /new210h — общие стили своей вёрстки (27.11.2026): формы, галерея отчёта, окно «Спасибо»,
 * плашка ошибки формы и анимация кнопок «Да/Нет». Положение элементов на раскладках —
 * в assets/css/block-new210h-*.css, поведение — assets/js/page-new210h.js.
 *
 * Всё — копия того, как это выглядело у Tilda (замеры живой страницы 27.11.2026):
 *  - форма Zero (tilda-forms + tilda-zero-form-horizontal): поля #eee, скругление 10px, высота 52px,
 *    подпись «Имя» внутри поля уезжает вверх при вводе (scale .7), телефон с флагом и «+7»,
 *    кнопка-пилюля; подпись о согласии 13px под формой с отступом 15px;
 *  - галерея t-slds: фото на всю рамку (cover), скругление 22px, новое фото проявляется поверх
 *    за 0,5 с, круглые стрелки 30px #e8e8e8 снаружи рамки на 20px;
 *  - окно t390: затемнение rgba(0,0,0,.4), белая плашка 560px со скруглением 12px по центру,
 *    крестик 23px справа вверху;
 *  - плашка ошибки: красная #f95d51 в правом нижнем углу окна (как у Zero-форм Tilda).
 */

/* ---------------------------------------------------------------- форма */
.wsn-n210f { display: block; margin: 0; font-family: 'Montserrat', Arial, sans-serif; }
.wsn-n210f * { box-sizing: border-box; }
.wsn-n210f__row { display: flex; flex-wrap: wrap; align-items: flex-end; row-gap: 15px; }
.wsn-n210f__group { position: relative; flex: 1; min-width: 0; padding: 0 var(--n210-mr, 30px) 0 0; }
.wsn-n210f__submit { flex: 0 0 auto; }
.wsn-n210f__field { position: relative; display: block; margin: 0; }
.wsn-n210f__input {
	display: block; width: 100%; height: var(--n210-ih, 52px); margin: 0;
	padding: 26px 20px 10px; border: 0; border-radius: 10px; outline: none;
	background-color: #eeeeee; color: #000000;
	font-family: 'Montserrat', Arial, sans-serif; font-size: 14px; font-weight: 500; line-height: 1.33;
	-webkit-appearance: none; appearance: none; box-shadow: none;
}
.wsn-n210f__ph {
	position: absolute; left: 20px; top: calc((var(--n210-ih, 52px) - 14px) / 2);
	width: calc(100% - 40px); height: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	color: #000000; opacity: .5; pointer-events: none;
	font-size: 14px; font-weight: 500; line-height: 1;
	transform: translateZ(0); transform-origin: left; transition: transform .2s linear;
}
.wsn-n210f__input:focus + .wsn-n210f__ph,
.wsn-n210f__input.is-filled + .wsn-n210f__ph { transform: translateY(-100%) scale(.7); text-overflow: inherit; width: 100%; }

/* телефон: флаг России, треугольник выбора страны и «+7», дальше поле с маской */
.wsn-n210f__tel { display: flex; align-items: center; padding: 0 20px; }
.wsn-n210f__code { display: flex; flex: 0 0 auto; align-items: center; margin-right: 5px; }
.wsn-n210f__flag {
	display: block; width: 18px; height: 13px; flex: 0 0 auto;
	background: #c5c5c5 url('../img/page-new210h/flag-ru.png') no-repeat 0 0;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, .3);
}
.wsn-n210f__tri { display: block; width: 0; height: 0; margin-left: 6px; border-style: solid; border-width: 4.66667px 4px 0; border-color: #9a9a9a transparent transparent; }
.wsn-n210f__plus { display: block; margin-left: 10px; font-size: 14px; line-height: 1.33; white-space: nowrap; color: #000000; }
.wsn-n210f__tel input {
	display: block; flex: 1 1 auto; min-width: 0; height: 100%; margin: 0; padding: 0;
	border: 0; outline: none; background: transparent; box-shadow: none;
	color: #000000; font-family: 'Montserrat', Arial, sans-serif; font-size: 14px; font-weight: 500; line-height: 1.33;
	-webkit-appearance: none; appearance: none;
}
.wsn-n210f__tel input::placeholder { color: #000000; opacity: .5; }

.wsn-n210f__btn {
	display: flex; align-items: center; justify-content: center;
	width: var(--n210-bw, 320px); height: var(--n210-bh, 52px); margin: 0; padding: 0 15px;
	border: 0; border-radius: 1000px; background-color: var(--n210-bg, #1084d1); color: #ffffff;
	font-family: 'Montserrat', Arial, sans-serif; font-size: var(--n210-bfs, 15px); font-weight: 600; line-height: normal;
	white-space: nowrap; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.wsn-n210f__btn:disabled { cursor: default; }
.wsn-n210f__bottom { margin-top: 15px; color: #000000; font-size: 13px; font-weight: 400; line-height: 1.4; }
.wsn-n210f__bottom p { margin: 0; }
.wsn-n210f__bottom a { text-decoration: none; }

/* поля в столбик (раскладка «v» у Tilda): поле на всю ширину, между полями 20px */
.wsn-n210f--v .wsn-n210f__row { display: block; }
.wsn-n210f--v .wsn-n210f__group { padding: 0; margin-bottom: 20px; }
.wsn-n210f--v .wsn-n210f__btn { margin: 0 var(--n210-bm-r, 0px) 0 var(--n210-bm-l, 0px); }

/* «Получите бесплатную консультацию»: в ряд, кнопка 320; с 959px — столбиком, кнопка по центру; с 479px кнопка 280 */
.wsn-n210f--consult { --n210-bw: 320px; }
@media (max-width: 959px) {
	.wsn-n210f--consult .wsn-n210f__row { display: block; }
	.wsn-n210f--consult .wsn-n210f__group { padding: 0; margin-bottom: 20px; }
	.wsn-n210f--consult .wsn-n210f__btn { margin: 0 auto; }
}
@media (max-width: 479px) { .wsn-n210f--consult { --n210-bw: 280px; } }

/* «Почему обычной станины…»: только телефон, кнопка #408dda 200 → 160 (шрифт 14) → поля 48px и отступ 20 → столбиком, кнопка 268 */
.wsn-n210f--frame { --n210-bw: 200px; --n210-bg: #408dda; }
@media (max-width: 1199px) { .wsn-n210f--frame { --n210-bw: 160px; --n210-bfs: 14px; } }
@media (max-width: 639px) { .wsn-n210f--frame { --n210-ih: 48px; --n210-bh: 48px; --n210-mr: 20px; } }
@media (max-width: 479px) {
	.wsn-n210f--frame { --n210-bw: 268px; }
	.wsn-n210f--frame .wsn-n210f__row { display: block; }
	.wsn-n210f--frame .wsn-n210f__group { padding: 0; margin-bottom: 20px; }
}

/* «Оставьте заявку на обратный звонок»: всегда столбиком, кнопка по центру 320 → 280 */
.wsn-n210f--callback { --n210-bw: 320px; }
.wsn-n210f--callback .wsn-n210f__row { display: block; }
.wsn-n210f--callback .wsn-n210f__group { padding: 0; margin-bottom: 20px; }
.wsn-n210f--callback .wsn-n210f__btn { margin: 0 auto; }
@media (max-width: 479px) { .wsn-n210f--callback { --n210-bw: 280px; } }

/* плашка ошибки — одна на страницу, ставит page-new210h.js */
.wsn-n210err {
	position: fixed; right: 20px; bottom: 20px; z-index: 10000;
	width: auto; min-width: 260px; max-width: 400px; padding: 10px 30px 10px 10px;
	border-radius: 3px; background: #f95d51; box-shadow: 0 0 3px 1px rgba(0, 0, 0, .2);
	color: #ffffff; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.55; text-align: left;
}
.wsn-n210err[hidden] { display: none; }
.wsn-n210err__close { position: absolute; top: 8px; right: 8px; width: 14px; height: 14px; padding: 0; border: 0; background: none; cursor: pointer; }
.wsn-n210err__close::before, .wsn-n210err__close::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; margin-top: -1px; background: #ffffff; transform: rotate(45deg); }
.wsn-n210err__close::after { transform: rotate(-45deg); }
@media (max-width: 480px) { .wsn-n210err { max-width: 280px; } }

/* ---------------------------------------------------------------- галерея отчёта */
.wsn-n210s { position: relative; width: 100%; height: 100%; }
.wsn-n210s__main { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 22px; }
.wsn-n210s__slide { position: absolute; inset: 0; opacity: 0; z-index: 0; }
.wsn-n210s__slide.is-prev { opacity: 1; z-index: 1; }
.wsn-n210s__slide.is-active { opacity: 1; z-index: 2; }
.wsn-n210s__slide.is-in { animation: wsn-n210s-in .5s linear; }
@keyframes wsn-n210s-in { from { opacity: 0; } to { opacity: 1; } }
.wsn-n210s__slide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center center; }
.wsn-n210s__arrow {
	position: absolute; top: calc(50% - 15px); width: 30px; height: 30px; margin: 0; padding: 0;
	border: 0; border-radius: 100%; background: #e8e8e8; cursor: pointer; line-height: 0;
}
.wsn-n210s__arrow svg { display: block; width: 30px; height: 30px; }
.wsn-n210s__arrow--prev { left: -50px; }
.wsn-n210s__arrow--prev svg { transform: rotate(180deg); }
.wsn-n210s__arrow--next { right: -50px; }

/* ---------------------------------------------------------------- «Да / Нет» и окно «Спасибо» */
/* как пошаговая анимация Tilda по нажатию: кнопка сразу ×1.03, затем за 0,3 с гаснет (под ней —
   белая кнопка с цветным словом), белое слово гаснет так же, значок покачивается 0,5 с */
@keyframes wsn-n210v-btn { 0% { transform: scale(1.03); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes wsn-n210v-txt { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wsn-n210v-yes { 0% { transform: none; } 40% { transform: translateY(-4px) scale(1.08) rotate(-16deg); } 80% { transform: translateY(2px) rotate(5deg); } 100% { transform: none; } }
@keyframes wsn-n210v-no  { 0% { transform: none; } 40% { transform: translateY(-4px) scale(1.08) rotate(16deg); }  80% { transform: translateY(2px) rotate(-5deg); } 100% { transform: none; } }
.wsn-n210-vote.is-yes .wsn-n210-vote__e2, .wsn-n210-vote.is-no .wsn-n210-vote__e7 { animation: wsn-n210v-btn .3s linear forwards; }
.wsn-n210-vote.is-yes .wsn-n210-vote__e4, .wsn-n210-vote.is-no .wsn-n210-vote__e9 { animation: wsn-n210v-txt .3s linear forwards; }
.wsn-n210-vote.is-yes .wsn-n210-vote__e5 { animation: wsn-n210v-yes .5s linear; }
.wsn-n210-vote.is-no .wsn-n210-vote__e10 { animation: wsn-n210v-no .5s linear; }

.wsn-n210p {
	position: fixed; inset: 0; z-index: 10000001; overflow-y: auto; padding: 0 20px;
	background-color: rgba(0, 0, 0, .4); opacity: 0; transition: opacity .3s;
	font-family: 'Montserrat', Arial, sans-serif;
}
.wsn-n210p[hidden] { display: none; }
.wsn-n210p.is-open { opacity: 1; }
.wsn-n210p__close { position: fixed; top: 10px; right: 10px; z-index: 9; box-sizing: border-box; width: 43px; height: 43px; margin: 0; padding: 10px; border: 0; background: none; cursor: pointer; line-height: 0; }
/* пока окно открыто — без прокрутки страницы, как у Tilda (t-body_popupshowed) */
body.wsn-n210p-open { height: 100vh; overflow: hidden; }
.wsn-n210p__close svg { display: block; }
.wsn-n210p__box {
	position: absolute; top: 50%; left: 0; right: 0; z-index: 1; width: 560px; max-width: calc(100% - 40px); margin: 0 auto;
	transform: translateY(-50%); border-radius: 12px; background-color: #ffffff; padding: 40px 45px; box-sizing: border-box;
}
.wsn-n210p__title { color: #000000; font-size: 20px; font-weight: 600; line-height: 1.17; text-align: center; }
@media (max-width: 480px) { .wsn-n210p__title { font-size: 16px; } }
