/* subscribe-card-v2 Footer layout + subscribe form — loaded with preprocess:FALSE
   so prod works even if aggregated style.css is stale. */
#footer a {
  margin-top: 0 !important;
}

/* Footer email subscribe: compact — email+btn, captcha, consent
   Вид как на /zakazat: белая карточка с тонкой рамкой — на всём сайте */
#block-webform-client-block-3251 {
	display: inline-block;
	vertical-align: top;
	max-width: 400px;
	width: 100%;
	height: auto !important;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

#block-webform-client-block-3251 > h2 {
	text-align: left;
	margin: 0 0 8px;
	line-height: 1.2;
	font-size: 15px;
	color: #224681;
	font-weight: bold;
}

#block-webform-client-block-3251 .content,
#webform-ajax-wrapper-3251 {
	height: auto !important;
	overflow: visible;
}

#footer #webform-client-form-3251,
#footer .webform-client-form-3251,
#webform-client-form-3251,
.webform-client-form-3251 {
	display: block !important;
	box-sizing: border-box !important;
	border: 1px solid #DBDBDB !important;
	-webkit-border-radius: 5px !important;
	-moz-border-radius: 5px !important;
	border-radius: 5px !important;
	padding: 16px 18px 20px !important;
	background: #fff !important;
	max-width: 400px !important;
	width: 100% !important;
}

#webform-client-form-3251 > div {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 8px 10px;
}

#webform-client-form-3251 #webform-component-elektronnaya-pochta {
	margin: 0;
	order: 0;
	flex: 1 1 200px;
	min-width: 180px;
	max-width: 220px;
}

#webform-client-form-3251 #webform-component-elektronnaya-pochta label {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
	height: 1px;
	width: 1px;
	word-wrap: normal;
}

#edit-submitted-elektronnaya-pochta,
#edit-submitted-elektronnaya-pochta--2,
#edit-submitted-elektronnaya-pochta--3 {
	width: 100% !important;
	max-width: 220px;
	height: 34px !important;
	line-height: 22px !important;
	box-sizing: border-box;
	padding: 5px 10px !important;
	font-size: 14px !important;
	margin: 0 !important;
	vertical-align: top;
	border: 1px solid #DBDBDB !important;
	background: #fff !important;
	-webkit-border-radius: 5px !important;
	-moz-border-radius: 5px !important;
	border-radius: 5px !important;
	outline: 0 none !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
}

#webform-client-form-3251 .form-actions {
	clear: none !important;
	display: flex !important;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
	flex: 0 0 auto;
	order: 1;
	height: 34px;
	line-height: 0;
	position: static !important;
	top: auto !important;
	left: auto !important;
}

#edit-webform-ajax-submit-3251 {
	display: block !important;
	width: auto !important;
	min-width: 108px !important;
	position: static !important;
	top: auto !important;
	left: auto !important;
	height: 34px !important;
	line-height: 34px !important;
	padding: 0 14px !important;
	font-size: 14px !important;
	margin: 0 !important;
	border: none !important;
	white-space: nowrap;
	vertical-align: top;
	background: url(../images/send.png) 0 0 no-repeat !important;
	background-size: 108px 102px !important;
	box-sizing: border-box;
	overflow: hidden;
}

#webform-client-form-3251 .captcha {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	flex: 1 1 100%;
	order: 2;
}

#webform-client-form-3251 .captcha > img {
	width: 170px !important;
	height: 56px !important;
	display: block;
	flex-shrink: 0;
	margin: 0;
	image-rendering: auto;
}

#webform-client-form-3251 .form-item-captcha-response {
	margin: 0;
	padding: 0;
	float: none;
	clear: none;
	overflow: visible;
}

#webform-client-form-3251 .form-item-captcha-response label {
	position: absolute !important;
	clip: rect(1px, 1px, 1px, 1px);
	overflow: hidden;
	height: 1px;
	width: 1px;
	word-wrap: normal;
}

#webform-client-form-3251 .form-item-captcha-response input,
#webform-client-form-3251 input[name="captcha_response"] {
	width: 140px !important;
	min-width: 140px !important;
	height: 34px !important;
	line-height: 22px !important;
	box-sizing: border-box;
	padding: 5px 10px !important;
	font-size: 14px !important;
	font-weight: bold !important;
	letter-spacing: 0;
	border: 1px solid #DBDBDB !important;
	background: #fff !important;
	-webkit-border-radius: 5px !important;
	-moz-border-radius: 5px !important;
	border-radius: 5px !important;
	outline: 0 none !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
}

#webform-client-form-3251 .form-item-captcha-response input:hover,
#webform-client-form-3251 .form-item-captcha-response input:focus,
#webform-client-form-3251 .form-item-captcha-response input:focus-visible,
#webform-client-form-3251 input[name="captcha_response"]:hover,
#webform-client-form-3251 input[name="captcha_response"]:focus,
#webform-client-form-3251 input[name="captcha_response"]:focus-visible {
	border: 1px solid #DBDBDB !important;
	outline: 0 none !important;
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
}

#edit-webform-ajax-submit-3251:hover {
	background-position: 0 -34px !important;
}

#edit-webform-ajax-submit-3251:active {
	background-position: 0 -68px !important;
}

#webform-client-form-3251 #webform-component-obrabotka-personalnih {
	flex: 1 1 100%;
	order: 3;
	margin: 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.3;
	clear: none;
	overflow: visible;
}

#webform-client-form-3251 #webform-component-obrabotka-personalnih p {
	margin: 0;
	line-height: 1.3;
}

#webform-client-form-3251 #webform-component-obrabotka-personalnih input[type="checkbox"] {
	display: inline-block !important;
	width: 16px !important;
	height: 16px !important;
	margin: 0 8px 0 0 !important;
	vertical-align: middle;
	cursor: pointer;
}

@media (max-width: 768px) {
	#block-webform-client-block-3251 {
		max-width: 100%;
	}
	#webform-client-form-3251 #webform-component-elektronnaya-pochta,
	#edit-submitted-elektronnaya-pochta,
	#edit-submitted-elektronnaya-pochta--2,
	#edit-submitted-elektronnaya-pochta--3 {
		width: 100% !important;
		max-width: 280px;
		flex-basis: auto;
	}
	#webform-client-form-3251 .captcha > img {
		width: 160px !important;
		height: 54px !important;
	}
	#webform-client-form-3251 .form-item-captcha-response input {
		width: 110px !important;
		min-width: 110px !important;
	}
}

/* ===== Footer 3-column layout ===== */
#footer {
  clear: both;
  padding: 28px 30px 20px;
  position: relative;
  background: #ededed;
  margin-top: 60px;
}

#footer .footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}

#footer .footer-cols {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
}

#footer .footer-col {
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}

#footer .footer-col--contacts {
  flex: 1 1 240px;
  max-width: 280px;
}

#footer .footer-col--mid {
  flex: 1 1 260px;
  max-width: 360px;
}

#footer .footer-col--subscribe {
  flex: 1 1 280px;
  max-width: 380px;
}

#footer .footer-contact {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px !important;
  text-decoration: none !important;
  color: #000;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
}

#footer .footer-col--contacts .footer-contact:last-of-type {
  margin-bottom: 0;
}

#footer .footer-contact:hover {
  color: #224681;
}

#footer .footer-ico {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: inline-block;
  border-radius: 50%;
  background-color: #224681;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
}

#footer .footer-ico--phone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6.6 10.8c1.4 2.8 3.8 5.1 6.6 6.6l2.2-2.2c.3-.3.7-.4 1.1-.3 1.2.4 2.5.6 3.8.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.6.6 3.8.1.4 0 .8-.3 1.1L6.6 10.8z'/%3E%3C/svg%3E");
}

#footer .footer-ico--mail {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z'/%3E%3C/svg%3E");
}

#footer .footer-messengers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  line-height: 0;
  overflow: visible;
}

#footer .footer-messenger {
  width: 35px;
  height: 35px;
  margin: 0 !important;
  padding: 0;
  flex: 0 0 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 50%;
  overflow: hidden;
  text-decoration: none !important;
  line-height: 0;
  font-size: 0;
  box-shadow: none !important;
  color: #fff !important;
  transition: opacity .15s ease, transform .15s ease;
}

#footer .footer-messenger:hover,
#footer .footer-messenger:focus {
  opacity: .9;
  transform: translateY(-1px);
  outline: 0;
}

#footer .footer-messenger svg {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

#footer .footer-messenger--vk { background: #0077FF !important; }
#footer .footer-messenger--tg { background: #2AABEE !important; }
#footer .footer-messenger--wa { background: #25D366 !important; }
#footer .footer-messenger--vb {
  background: #7360F2 !important;
  background-image: linear-gradient(135deg, #9B7BFF 0%, #7360F2 55%, #5B4BD6 100%) !important;
}
#footer .footer-messenger--max { background: #8B00FF !important; }
#footer .footer-messenger--yt { background: #FF0000 !important; }

#footer .footer-col--mid #block-search-form,
#footer .footer-col--mid .block-search {
  margin: 0 0 14px;
  padding: 0;
  float: none;
  display: block;
  width: 100%;
  max-width: none;
}

#footer .footer-col--mid #block-search-form .content,
#footer .footer-col--mid #search-block-form,
#footer .footer-col--mid #search-block-form > div,
#footer .footer-col--mid #search-block-form .container-inline {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: none;
}

#footer .footer-col--mid #block-search-form .form-item-search-block-form {
  flex: 1 1 auto;
  margin: 0;
  width: auto;
  max-width: none;
}

/* Поиск в подвале: оранжевая граница без чёрного focus-кольца браузера */
#footer .footer-col--mid #search-block-form input.form-text,
#footer .footer-col--mid #block-search-form input.form-text,
#footer .footer-col--mid input.form-text,
#footer .footer-col--mid input[type="text"],
#footer .footer-col--mid input[type="search"] {
  width: 100% !important;
  max-width: none !important;
  height: 34px !important;
  box-sizing: border-box;
  -webkit-appearance: textfield;
  appearance: textfield;
  border-top: 2px solid #ee701c !important;
  border-right: 2px solid #ee701c !important;
  border-bottom: 2px solid #ee701c !important;
  border-left: 2px solid #ee701c !important;
  border-radius: 8px 0 0 8px;
  padding: 0 12px;
  background: #fff;
  font-size: 14px;
  outline: 0 none !important;
  outline-offset: 0 !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

#footer .footer-col--mid #search-block-form input.form-text:hover,
#footer .footer-col--mid #search-block-form input.form-text:focus,
#footer .footer-col--mid #search-block-form input.form-text:focus-visible,
#footer .footer-col--mid #search-block-form input.form-text:active,
#footer .footer-col--mid #block-search-form input.form-text:hover,
#footer .footer-col--mid #block-search-form input.form-text:focus,
#footer .footer-col--mid #block-search-form input.form-text:focus-visible,
#footer .footer-col--mid #block-search-form input.form-text:active,
#footer .footer-col--mid input.form-text:hover,
#footer .footer-col--mid input.form-text:focus,
#footer .footer-col--mid input.form-text:focus-visible,
#footer .footer-col--mid input.form-text:active,
#footer .footer-col--mid input[type="text"]:hover,
#footer .footer-col--mid input[type="text"]:focus,
#footer .footer-col--mid input[type="text"]:focus-visible,
#footer .footer-col--mid input[type="text"]:active,
#footer .footer-col--mid input[type="search"]:hover,
#footer .footer-col--mid input[type="search"]:focus,
#footer .footer-col--mid input[type="search"]:focus-visible,
#footer .footer-col--mid input[type="search"]:active {
  border-top: 2px solid #ee701c !important;
  border-right: 2px solid #ee701c !important;
  border-bottom: 2px solid #ee701c !important;
  border-left: 2px solid #ee701c !important;
  outline: 0 none !important;
  outline-offset: 0 !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

#footer .footer-col--mid #search-block-form input.form-submit,
#footer .footer-col--mid #block-search-form input.form-submit,
#footer .footer-col--mid input.form-submit {
  position: static !important;
  left: auto !important;
  flex: 0 0 40px;
  width: 40px !important;
  height: 34px !important;
  margin: 0 0 0 -2px;
  -webkit-appearance: none;
  appearance: none;
  border-top: 2px solid #ee701c !important;
  border-right: 2px solid #ee701c !important;
  border-bottom: 2px solid #ee701c !important;
  border-left: 0 !important;
  border-radius: 0 8px 8px 0;
  background: #fff url(../images/lupa.png) center center no-repeat;
  cursor: pointer;
  text-indent: -9999px;
  overflow: hidden;
  outline: 0 none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

#footer .footer-col--mid #search-block-form input.form-submit:hover,
#footer .footer-col--mid #search-block-form input.form-submit:focus,
#footer .footer-col--mid #search-block-form input.form-submit:focus-visible,
#footer .footer-col--mid #search-block-form input.form-submit:active,
#footer .footer-col--mid #block-search-form input.form-submit:hover,
#footer .footer-col--mid #block-search-form input.form-submit:focus,
#footer .footer-col--mid #block-search-form input.form-submit:focus-visible,
#footer .footer-col--mid #block-search-form input.form-submit:active,
#footer .footer-col--mid input.form-submit:hover,
#footer .footer-col--mid input.form-submit:focus,
#footer .footer-col--mid input.form-submit:focus-visible,
#footer .footer-col--mid input.form-submit:active {
  border-top: 2px solid #ee701c !important;
  border-right: 2px solid #ee701c !important;
  border-bottom: 2px solid #ee701c !important;
  border-left: 0 !important;
  outline: 0 none !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

#footer .footer-col--mid #block-search-form .form-actions {
  margin: 0;
  padding: 0;
  clear: none;
  flex: 0 0 auto;
}

#footer .footer-disclaimer {
  margin: 0 0 10px;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.35;
  color: #333;
}

#footer .footer-sitemap {
  margin: 0;
}

#footer .footer-sitemap a {
  font-size: 14px;
  color: #224681;
}

#footer .footer-col--subscribe #block-webform-client-block-3251 {
  display: block;
  max-width: 100%;
  height: auto !important;
  margin: 0;
}

#footer .footer-col--subscribe #block-webform-client-block-3251 > h2,
#footer .footer-col--subscribe > .block-title {
  margin: 0 0 8px;
  font-size: 15px;
  color: #224681;
  font-weight: bold;
  text-align: left;
}

#footer .footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #d5d5d5;
  text-align: center;
}

#footer .footer-meta {
  margin: 0;
  line-height: 1.5;
  font-size: 13px;
  color: #222;
}

#footer .footer-meta a {
  color: #224681;
  white-space: nowrap;
}

#footer .footer-sep {
  margin: 0 8px;
  color: #888;
}

@media (max-width: 700px) {
  #footer .footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
  }
}

@media (max-width: 1024px) {
  #footer .footer-cols {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 20px !important;
  }
  #footer .footer-col,
  #footer .footer-col--contacts,
  #footer .footer-col--mid,
  #footer .footer-col--subscribe {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: flex-start;
  }
  #footer .footer-disclaimer {
    max-width: none;
  }
  #footer .footer-col--subscribe #block-webform-client-block-3251 > h2,
  #footer .footer-col--subscribe > .block-title {
    text-align: left;
  }
}

/* ===== Форма «Заказать» (webform 50) — без агрегации ===== */
.page-node-50 h1,
.page-node-50 #page-title,
.page-node-50 .title {
  text-align: center !important;
}

#webform-ajax-wrapper-50,
.page-node-50 #content .webform-client-form,
.page-node-50 #webform-client-form-50 {
  margin-left: auto !important;
  margin-right: auto !important;
}

#webform-client-form-50,
.page-node-50 .webform-client-form,
.zakazat .webform-client-form {
  max-width: 760px !important;
  width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  border: 1px solid #DBDBDB;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  border-radius: 5px;
  padding: 16px 18px 20px;
  background: #fff;
}

/* Дубль заголовка «Заказать» внутри webform (остаётся H1 страницы) */
#webform-client-form-50 #webform-component-text,
.page-node-50 #webform-component-text,
.zakazat #webform-component-text {
  display: none !important;
}

#webform-client-form-50 .webform-component,
#webform-client-form-50 .form-item-captcha-response,
.page-node-50 .webform-component,
.zakazat .webform-component {
  clear: both;
  overflow: hidden;
  margin: 0 0 10px;
}

#webform-client-form-50 .webform-component label,
.page-node-50 .webform-component label,
.zakazat .webform-component label {
  float: left !important;
  display: block !important;
  width: 135px !important;
  margin: 0 10px 0 0 !important;
  padding-top: 6px;
  font-size: 13px;
  line-height: 1.2;
  box-sizing: border-box;
}

#webform-client-form-50 input.form-text,
#webform-client-form-50 input.form-number,
#webform-client-form-50 select.form-select,
#webform-client-form-50 .form-item-captcha-response input,
#webform-client-form-50 input[name="captcha_response"],
.page-node-50 #webform-component-fio input.form-text,
.page-node-50 #webform-component-telefon input.form-text,
.zakazat input.form-text,
.zakazat .form-item-captcha-response input {
  float: left;
  width: 295px !important;
  max-width: calc(100% - 150px) !important;
  min-width: 0 !important;
  height: 28px !important;
  box-sizing: border-box;
  padding: 0 10px !important;
  border: 1px solid #DBDBDB !important;
  background: #fff !important;
  -webkit-border-radius: 5px !important;
  -moz-border-radius: 5px !important;
  border-radius: 5px !important;
  font-size: 14px;
  outline: 0 none !important;
  box-shadow: none !important;
}

#webform-client-form-50 textarea,
#webform-client-form-50 #webform-component-kommentariy textarea,
.zakazat textarea {
  float: left;
  width: 590px !important;
  max-width: calc(100% - 150px) !important;
  min-width: 0 !important;
  height: 87px !important;
  box-sizing: border-box;
  padding: 6px 10px !important;
  border: 1px solid #DBDBDB !important;
  background: #fff !important;
  -webkit-border-radius: 5px !important;
  -moz-border-radius: 5px !important;
  border-radius: 5px !important;
  font-size: 14px;
  outline: 0 none !important;
  box-shadow: none !important;
}

#webform-client-form-50 .form-item-captcha-response input,
#webform-client-form-50 input[name="captcha_response"],
.zakazat .form-item-captcha-response input {
  width: 202px !important;
  font-weight: bold;
}

#webform-client-form-50 .form-item-captcha-response input:focus,
#webform-client-form-50 input[name="captcha_response"]:focus {
  border: 1px solid #DBDBDB !important;
  outline: 0 none !important;
  box-shadow: none !important;
}

#webform-client-form-50 .description,
.page-node-50 .webform-client-form .description,
.zakazat .description {
  clear: both;
  margin-left: 145px !important;
  font-size: 12px;
  font-style: italic;
  color: #737373;
}

#webform-client-form-50 #webform-component-kukiboks input.form-checkbox,
#webform-client-form-50 #webform-component-kukiboks input[type="checkbox"] {
  float: left;
  width: 16px !important;
  min-width: 16px !important;
  max-width: 16px !important;
  height: 16px !important;
  margin: 4px 8px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#webform-client-form-50 #webform-component-kukiboks label {
  float: none !important;
  display: inline !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding-top: 2px;
  vertical-align: middle;
  cursor: pointer;
}

#webform-client-form-50 #webform-component-kukiboks .description {
  margin-left: 24px !important;
}

#webform-client-form-50 .captcha {
  clear: both;
  overflow: hidden;
  margin: 10px 0;
}

#webform-client-form-50 .captcha > img {
  float: left;
  margin: 0 10px 0 145px;
}

#webform-client-form-50 .form-item-captcha-response {
  float: left;
  clear: none;
  overflow: visible;
}

#webform-client-form-50 .form-item-captcha-response label {
  float: none !important;
  width: auto !important;
  display: block !important;
  margin: 0 0 4px !important;
  padding-top: 0;
}

#webform-client-form-50 .form-actions,
.zakazat .form-actions {
  clear: both;
  margin-left: 145px;
}

#webform-client-form-50 input.form-submit,
.zakazat .webform-client-form input.form-submit {
  margin-left: 0;
}
