/* Approved design-test styles, kept separate from the legacy template. */
.test-main-notice {
	position: relative;
	z-index: 20;
	margin: 16px auto 0;
	padding: 10px 16px;
	max-width: 1240px;
	box-sizing: border-box;
	background: #fff4c2;
	border: 1px solid #e4bd00;
	color: #212121;
	font-size: 14px;
	text-align: center;
}

/* Тестовый вариант подвала главной страницы. */
.bg_footer .footer.footer-redesign {
	display: grid;
	grid-template-columns: minmax(250px, 1.35fr) minmax(330px, 1.65fr) minmax(190px, .9fr) minmax(220px, 1fr);
	gap: 28px;
	align-items: start;
	width: 1240px;
	padding-top: 32px;
	padding-bottom: 32px;
	overflow: visible;
}

.footer-redesign .footer_contacts,
.footer-redesign .footer_menu,
.footer-redesign .footer_payment,
.footer-redesign .footer_phone {
	display: block;
	width: auto;
	min-width: 0;
}

.footer_brand_logo {
	display: inline-block;
	max-width: 240px;
	margin: 0 0 22px;
}

.footer_brand_logo img {
	display: block;
	width: 100%;
	height: auto;
}

.footer-redesign .bottom_menu_wrap {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	white-space: normal;
}

.footer-redesign .bottom_menu_wrap .bottom_menu {
	display: block;
	width: auto;
	height: auto;
	padding: 0;
	overflow: visible;
}

.footer-redesign .bottom_menu_wrap .bottom_menu a {
	line-height: 1.35;
	margin-bottom: 7px;
}

.footer_section_title {
	margin: 0 0 16px;
	font-family: 'dinpro', Tahoma, Arial, Sans-Serif;
	font-size: 17px;
	font-weight: bold;
	color: #fff;
}

.footer_payment_note {
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.35;
}

.footer_payment_systems {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.footer_payment_system {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 30px;
	padding: 4px 6px;
	box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 3px;
	background: #fff;
}

.footer_payment_system img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

.footer_payment a,
.footer_phone a {
	color: #fff;
}

.footer-redesign .footer_payment_qr {
	display: block;
	width: auto;
	height: auto;
	margin: 18px 0 0;
	padding: 0;
	text-align: left;
	overflow: visible;
}

.footer-redesign .footer_payment_qr img {
	display: block;
	width: 112px;
	height: 112px;
	border-radius: 4px;
}

.footer-redesign .dis_sberbank_qr_title {
	margin-bottom: 8px;
}

.footer-redesign .dis_sberbank_qr_description {
	margin-top: 7px;
}

.footer-redesign .footer_phone {
	text-align: left;
}

.footer-redesign .footer_phone .phone {
	display: block;
	margin: 0 0 16px;
	font-size: 22px;
}

.footer-redesign .footer_phone .phone a {
	line-height: 1.15;
}

.footer_work_time {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.35;
}

.footer_work_time_label {
	font-weight: bold;
	color: #fed625;
}

.footer-redesign .footer_phone .call_button {
	display: inline-block;
	margin: 0 0 18px;
}

@media screen and (max-width: 1100px) {
	.bg_footer .footer.footer-redesign {
		grid-template-columns: minmax(240px, 1fr) minmax(220px, 1fr);
		gap: 32px 48px;
	}

	.footer-redesign .footer_menu {
		display: block;
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

@media screen and (max-width: 700px) {
	.bg_footer .footer.footer-redesign {
		display: grid;
		grid-template-columns: 1fr;
		gap: 28px;
		padding-top: 26px;
		padding-bottom: 26px;
	}

	.footer-redesign .footer_contacts,
	.footer-redesign .footer_phone {
		text-align: left;
	}

	.footer-redesign .footer_menu {
		display: block;
		grid-column: auto;
		grid-row: auto;
	}

	.footer-redesign .bottom_menu_wrap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.footer-redesign .footer_phone .call_button {
		display: inline-block;
	}
}

/* Heading styles for redesigned sections; preserve original sale headings. */
.test-main-page :where(.tm-section, .workers) h2 {
	display: block !important;
	margin: 0 0 24px !important;
	padding: 0 !important;
	font-size: 34px !important;
	font-weight: 700 !important;
	line-height: 1.15 !important;
	text-align: left !important;
	text-decoration: none !important;
}

.test-main-page :where(.tm-section, .workers) h2 u {
	text-decoration: none !important;
}

.test-main-page .tm-section-heading h2 {
	margin-bottom: 0 !important;
}

@media screen and (max-width: 700px) {
	.test-main-page :where(.tm-section, .workers) h2 {
		margin-bottom: 20px !important;
		font-size: 28px !important;
	}
}

/* Обновлённый блок выездных замерщиков только на тестовой главной. */
.test-main-page .workers {
	display: flex;
	flex-direction: column;
	padding: 36px;
	box-sizing: border-box;
	border-radius: 8px;
	background: #f5f5f3;
	text-align: left;
}

.test-main-page .workers > h2 {
	order: 0;
}

.test-main-page .workers > .workers_text {
	order: 3;
	max-width: 940px;
	margin: 24px auto 0;
	font-size: 15px;
	line-height: 1.5;
	color: #5e5e5e;
	text-align: center;
}

.test-main-page .workers > .workers_text p {
	margin: 0;
}

.test-main-page .workers > .workers_row:not(.uni_parent_col) {
	order: 2;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.test-main-page .workers > .workers_row:not(.uni_parent_col) .workers_item {
	display: flex;
	align-items: center;
	flex-direction: column;
	justify-content: flex-start;
	min-width: 0;
	padding: 24px 18px 20px;
	box-sizing: border-box;
	border: 1px solid #dedede;
	border-radius: 6px;
	background: #fff;
	text-align: center;
}

.test-main-page .workers > .workers_row:not(.uni_parent_col) .workers_item img {
	width: 150px;
	height: 150px;
	max-width: 150px;
	max-height: 150px;
	margin: 0 auto 16px;
	padding: 0;
	border: 1px solid #e2e2e2;
	border-radius: 50%;
	background: #fff;
	object-fit: cover;
}

.test-main-page .workers > .workers_row:not(.uni_parent_col) .workers_item span {
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: #777;
}

.test-main-page .workers > .workers_row:not(.uni_parent_col) .workers_item strong {
	display: inline-block;
	margin-bottom: 3px;
	font-size: 17px;
	color: #25242b;
}

.test-main-page .workers > .workers_row.uni_parent_col {
	order: 4;
	margin-top: 18px;
}

.test-main-page .workers > .workers_row.uni_parent_col .workers_item {
	width: 100%;
	text-align: center;
}

.test-main-page .workers .zamer_button_small {
	padding: 14px 26px !important;
	border: 1px solid #fed625 !important;
	border-radius: 4px !important;
	background: #fed625 !important;
	box-shadow: none !important;
	font-weight: 700 !important;
	color: #25242b !important;
}

.test-main-page .workers > .uni-indents-vertical {
	display: none;
}

/* Единый блок «О магазине» и «Блог установщика» на тестовой главной. */
.test-main-page .tm-about-blog {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
	gap: 32px;
	padding: 36px;
	box-sizing: border-box;
	border-radius: 8px;
	background: #f5f5f3;
}

.test-main-page .tm-about-blog > .uni_col {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
}

.test-main-page .tm-about-blog h3 {
	margin: 0 0 22px;
	font-size: 30px;
	line-height: 1.15;
	font-weight: 700;
	color: #25242b;
}

.test-main-page .tm-about-blog .about-company > .uni-indents-vertical {
	display: none;
}

.test-main-page .tm-about-blog .about_company_description {
	font-size: 16px;
	line-height: 1.55;
	color: #494949;
}

.test-main-page .tm-about-blog .about_company_description p {
	margin: 0 0 12px;
}

.test-main-page .tm-about-blog .about_company_description p:last-child {
	margin: 18px 0 0;
	padding: 16px 18px;
	border-left: 4px solid #fed625;
	border-radius: 0 6px 6px 0;
	background: #fff;
}

.test-main-page .tm-about-blog .main_news_pictures {
	position: static;
	height: 100%;
	padding: 0;
	border-radius: 0;
	background: transparent;
}

.test-main-page .tm-about-blog .main_news_pictures .news_title {
	margin: 0 0 22px;
}

.test-main-page .tm-about-blog .main_news_pictures .news_title a {
	border: 0;
	color: inherit;
	text-decoration: none;
}

.test-main-page .tm-about-blog .main-blog {
	position: relative;
}

.test-main-page .tm-about-blog .tm-all-news {
	position: absolute;
	top: 8px;
	right: 0;
	font-size: 14px;
	font-weight: 700;
	color: #25242b;
}

.test-main-page .tm-about-blog .main_news_pictures .news-item {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 16px;
	width: 100%;
	margin: 0 0 12px;
	padding: 12px;
	box-sizing: border-box;
	border: 1px solid #dedede;
	border-radius: 6px;
	background: #fff;
}

.test-main-page .tm-about-blog .main_news_pictures .news-item:last-child {
	margin-bottom: 0;
	border-bottom: 1px solid #dedede;
}

.test-main-page .tm-about-blog .main_news_pictures .main_news_left,
.test-main-page .tm-about-blog .main_news_pictures .main_news_right {
	display: block;
	width: auto;
	padding: 0;
}

.test-main-page .tm-about-blog .main_news_pictures .main_news_left .img_review,
.test-main-page .tm-about-blog .main_news_pictures .main_news_left .img_review img {
	width: 76px;
	height: 76px;
}

.test-main-page .tm-about-blog .main_news_pictures .main_news_left .img_review img {
	max-width: none;
	max-height: none;
	object-fit: cover;
}

.test-main-page .tm-about-blog .main_news_pictures .name_news {
	margin: 0 0 6px;
	font-size: 17px;
	line-height: 1.25;
}

.test-main-page .tm-about-blog .main_news_pictures .preview {
	font-size: 14px;
	line-height: 1.4;
	color: #666;
}

@media screen and (max-width: 900px) {
	.test-main-page .tm-about-blog {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 28px 20px;
	}
}

@media screen and (max-width: 520px) {
	.test-main-page .tm-about-blog h3 {
		font-size: 26px;
	}

	.test-main-page .tm-about-blog .main_news_pictures .news-item {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 12px;
	}

	.test-main-page .tm-about-blog .main_news_pictures .main_news_left .img_review,
	.test-main-page .tm-about-blog .main_news_pictures .main_news_left .img_review img {
		width: 72px;
		height: 72px;
	}
}

@media screen and (max-width: 700px) {
	.test-main-page .workers {
		padding: 28px 20px;
	}

	.test-main-page .workers > .workers_row:not(.uni_parent_col) {
		grid-template-columns: 1fr;
	}

	.test-main-page .workers > .workers_row:not(.uni_parent_col) .workers_item {
		padding: 22px 16px;
	}
}

@media screen and (max-width: 480px) {
	.footer-redesign .bottom_menu_wrap {
		grid-template-columns: 1fr;
	}

	.footer_brand_logo {
		max-width: 205px;
	}
}

/* Блоки тестовой главной страницы. */
.tm-section {
	margin: 64px 0;
}

.tm-categories {
	margin-top: 32px;
}

.tm-section-heading,
.tm-subheading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
}

.tm-section-heading h2 {
	margin: 0;
}

.tm-subheading h3 {
	margin: 4px 0 0;
}

.tm-section-heading h2 {
	font-size: 34px;
	line-height: 1.15;
}

.tm-section-heading > a,
.tm-subheading > a {
	color: #333;
	font-weight: bold;
	white-space: nowrap;
}

.tm-category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.tm-category-card {
	position: relative;
	display: block;
	min-height: 330px;
	border-radius: 6px;
	overflow: hidden;
	background: #222;
	color: #fff;
}

.tm-category-card > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.tm-category-card:hover > img {
	transform: scale(1.04);
}

.tm-category-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .88), rgba(0, 0, 0, .05) 72%);
}

.tm-category-content {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 22px;
}

.tm-category-content strong,
.tm-category-content small,
.tm-category-content > span {
	display: block;
}

.tm-category-content strong {
	font-size: 22px;
	line-height: 1.15;
}

.tm-category-content small {
	min-height: 34px;
	margin: 8px 0 14px;
	line-height: 1.35;
	color: rgba(255, 255, 255, .8);
}

.tm-category-content > span {
	font-weight: bold;
	color: #fed625;
}

.tm-products {
	padding: 44px 36px 24px;
	border-radius: 8px;
	background: #f5f5f3;
}

.tm-product-group + .tm-product-group {
	margin-top: 42px;
}

.tm-subheading {
	align-items: center;
	margin-bottom: 16px;
}

.tm-subheading h3 {
	font-size: 24px;
}

.tm-brand-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.tm-brand-card {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 104px;
	padding: 18px;
	box-sizing: border-box;
	border: 1px solid #dedede;
	border-radius: 5px;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.tm-brand-card:hover {
	border-color: #d2ac22;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.tm-brand-card img {
	max-width: 100%;
	max-height: 64px;
}

.tm-review-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.tm-review-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #dedede;
	border-radius: 6px;
	overflow: hidden;
	color: #242424;
	background: #fff;
}

.tm-review-image {
	position: relative;
	display: block;
	height: 190px;
	background: #eee;
}

.tm-review-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tm-play {
	position: absolute;
	left: 50%;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fed625;
	transform: translate(-50%, -50%);
	color: #222;
}

.tm-review-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px;
}

.tm-review-body strong {
	margin: 8px 0;
	font-size: 18px;
}

.tm-review-body small {
	margin-bottom: 18px;
	line-height: 1.45;
	color: #666;
}

.tm-review-body > span:last-child {
	margin-top: auto;
	font-weight: bold;
}

.tm-stars {
	letter-spacing: .12em;
	color: #e7b800;
}

.tm-tags {
	padding: 34px;
	border-radius: 8px;
	background: #292831;
}

.tm-tags .tm-section-heading h2 {
	color: #fff;
}

.tm-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tm-tag-list a {
	padding: 11px 16px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: 24px;
	color: #fff;
}

.tm-tag-list a:hover {
	border-color: #fed625;
	color: #fed625;
}

.tm-work-gallery {
	position: relative;
}

.tm-work-grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 56px) / 5);
	gap: 14px;
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scroll-snap-type: inline mandatory;
	scrollbar-width: none;
}

.tm-work-grid::-webkit-scrollbar {
	display: none;
}

.tm-work-card {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: 6px;
	overflow: hidden;
	background: #eee;
	scroll-snap-align: start;
}

.tm-work-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tm-work-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 58px;
	padding: 0 0 5px;
	border: 0;
	border-radius: 4px;
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
	transform: translateY(-50%);
	font-size: 42px;
	line-height: 1;
	cursor: pointer;
}

.tm-work-arrow--prev {
	left: 10px;
}

.tm-work-arrow--next {
	right: 10px;
}

.tm-contact {
	display: grid;
	grid-template-columns: 1.45fr .75fr;
	min-height: 390px;
	border-radius: 8px;
	overflow: hidden;
	background: #292831;
	color: #fff;
}

.tm-contact-main {
	padding: 44px;
}

.test-main-page .tm-contact-main h2 {
	margin: 6px 0 12px;
	font-size: 34px;
	color: #fff !important;
}

.tm-contact-main > p {
	max-width: 620px;
	margin-bottom: 28px;
	color: rgba(255, 255, 255, .72);
}

.tm-contact-items {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px 28px;
}

.tm-contact-items small,
.tm-contact-items strong,
.tm-contact-items a {
	display: block;
}

.tm-contact-items small {
	margin-bottom: 5px;
	color: rgba(255, 255, 255, .58);
}

.tm-contact-items strong,
.tm-contact-items a {
	font-size: 16px;
	line-height: 1.35;
	color: #fff;
}

.tm-contact-actions {
	display: flex;
	gap: 12px;
	margin-top: 30px;
}

.tm-button {
	display: inline-block;
	padding: 13px 22px;
	border: 1px solid #fed625;
	border-radius: 4px;
	background: #fed625;
	font-weight: bold;
	color: #222;
}

.tm-button-light {
	border-color: rgba(255, 255, 255, .3);
	background: transparent;
	color: #fff;
}

.tm-contact-map {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 36px;
	text-align: center;
	background-color: #e9e7df;
	background-image: radial-gradient(#cac7bc 1.2px, transparent 1.2px);
	background-size: 16px 16px;
	color: #25242b;
}

.tm-contact-map strong {
	margin-top: 15px;
	font-size: 24px;
}

.tm-contact-map small {
	margin: 6px 0 24px;
	line-height: 1.4;
}

.tm-contact-map > span:last-child {
	font-weight: bold;
}

.tm-map-pin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 50% 50% 50% 8px;
	background: #fed625;
	transform: rotate(-45deg);
	font-size: 0;
}

.tm-map-pin::after {
	content: '';
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #292831;
}

@media screen and (max-width: 1000px) {
	.tm-category-grid,
	.tm-brand-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tm-contact {
		grid-template-columns: 1fr;
	}

	.tm-contact-map {
		min-height: 240px;
	}
}

@media screen and (max-width: 700px) {
	.tm-section {
		margin: 42px 0;
	}

	.tm-section-heading,
	.tm-subheading {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.tm-section-heading h2,
	.tm-contact-main h2 {
		font-size: 28px;
	}

	.tm-category-grid,
	.tm-review-grid {
		grid-template-columns: 1fr;
	}

	.tm-work-grid {
		grid-auto-columns: 78%;
	}

	.tm-work-arrow {
		width: 38px;
		height: 50px;
		font-size: 36px;
	}

	.tm-category-card {
		min-height: 280px;
	}

	.tm-products,
	.tm-tags,
	.tm-contact-main {
		padding: 28px 20px;
	}

	.tm-brand-grid {
		gap: 8px;
	}

	.tm-brand-card {
		height: 88px;
		padding: 14px;
	}

	.tm-contact-items {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.tm-contact-actions {
		align-items: stretch;
		flex-direction: column;
		text-align: center;
	}
}

.test-main-notice {
    display: none !important;
}

.tm-about-blog {
    display: flex !important;
    gap: 32px !important;
    align-items: stretch !important;
}

.tm-about-blog .about-company,
.tm-about-blog .main-blog {
    float: none !important;
    width: auto !important;
}

.tm-about-blog .about-company {
    flex: 1.12 1 0 !important;
}

.tm-about-blog .main-blog {
    flex: .88 1 0 !important;
    padding-bottom: 0 !important;
}

.tm-about-blog .about-company h3,
.tm-about-blog .main-blog .news_title {
    margin: 0 0 16px !important;
    font-size: 30px !important;
    line-height: 1.12 !important;
    letter-spacing: -.02em !important;
}

.tm-about-blog .about_company_description p {
    line-height: 1.5 !important;
}

.tm-about-blog .about_company_description p:last-child {
    margin-top: 22px !important;
    padding: 18px 20px !important;
    border-left: 4px solid #fed625 !important;
    border-radius: 6px !important;
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06) !important;
}

.tm-about-blog .tm-all-news {
    font-size: 16px !important;
    font-weight: 600 !important;
}

.tm-about-blog .main_news_pictures {
    height: auto !important;
    padding-top: 0 !important;
}

.tm-about-blog .main-blog .news_title {
    position: static !important;
    top: auto !important;
}

.tm-about-blog .main_news_pictures > .indent-10 {
    display: none !important;
}

.tm-about-blog .news-item {
    display: flex !important;
    min-height: 104px !important;
    margin: 0 0 12px !important;
    padding: 14px !important;
    gap: 16px !important;
    border: 1px solid #dedede !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04) !important;
}

.tm-about-blog .main_news_pictures .news-item:last-child {
    margin-bottom: 0 !important;
}

.tm-about-blog .main_news_left {
    flex: 0 0 76px !important;
}

.tm-about-blog .main_news_right {
    min-width: 0 !important;
}

.tm-about-blog .main_news_left .img_review,
.tm-about-blog .main_news_left img {
    display: block !important;
    width: 76px !important;
    height: 76px !important;
}

.tm-about-blog .main_news_left img {
    border-radius: 4px !important;
    object-fit: cover !important;
}

.tm-about-blog .name_news {
    display: block !important;
    color: #242424 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
}

.tm-about-blog .preview {
    margin-top: 7px !important;
    color: #5b5b5b !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.demo-advantages {
    min-height: 155px !important;
    margin-top: 24px !important;
    padding: 22px 24px !important;
    box-sizing: border-box !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04) !important;
}

.demo-advantages h4 {
    margin: 0 0 14px !important;
    color: #252525 !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
}

.demo-advantages ul {
    display: grid !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 9px 20px !important;
    list-style: none !important;
}

.demo-advantages li {
    padding-left: 17px !important;
    position: relative !important;
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
}

.demo-advantages li::before {
    content: "✓" !important;
    position: absolute !important;
    left: 0 !important;
    color: #e2b900 !important;
    font-weight: 700 !important;
}

.tm-tags {
    margin: 28px 0 34px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.tm-tags .tm-tag-list {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
}

.tm-tags .tm-tag-list a {
    display: inline-flex !important;
    min-height: 32px !important;
    padding: 6px 12px !important;
    align-items: center !important;
    border: 1px solid #e2e5e8 !important;
    border-radius: 18px !important;
    background: #fff !important;
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

.tm-category-card .tm-category-content {
    display: flex !important;
    height: auto !important;
    padding: 0 !important;
    top: 210px !important;
    bottom: 22px !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.tm-category-card .tm-category-content strong {
    display: flex !important;
    min-height: 52px !important;
    width: 100% !important;
    margin: 0 0 8px !important;
    align-items: flex-start !important;
    line-height: 1.06 !important;
}

.tm-category-card .tm-category-content small {
    display: block !important;
    min-height: 38px !important;
    width: 100% !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}

.tm-category-card .tm-category-content > span:last-child {
    display: none !important;
}

.tm-header-social {
    display: flex !important;
    margin: 0 12px 0 8px !important;
    position: relative !important;
    top: 30px !important;
    flex: 0 0 auto !important;
    flex-direction: column !important;
    align-self: center !important;
    align-items: center !important;
    gap: 4px !important;
}

.tm-header-social a {
    display: inline-flex !important;
    width: 34px !important;
    height: 34px !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .16) !important;
}

.tm-header-social .tm-head-favorite {
    border: 1px solid #e2e2e2 !important;
    background: #fff !important;
    color: #25242b !important;
}

.tm-header-social .tm-head-max {
    background: linear-gradient(135deg, #7b2cff 0%, #236dff 52%, #00b9ef 100%) !important;
}

.tm-header-social svg {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
}

.workers .zamer_button_big,
.workers .zamer_button_big:focus,
.workers .zamer_button_big:active {
    display: inline-flex !important;
    min-width: 260px !important;
    padding: 13px 30px 13px 58px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 28px !important;
    background-color: #17a200 !important;
    background-image: url('/images/icons/phone_white.svg') !important;
    background-position: 25px 50% !important;
    background-repeat: no-repeat !important;
    background-size: 20px 20px !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15) !important;
}

.workers .tm-zamer-exact::before {
    display: none !important;
    content: none !important;
}

.tm-contact {
    display: flex !important;
    width: 100% !important;
    align-items: stretch !important;
}

.tm-contact-main {
    width: auto !important;
    min-width: 0 !important;
    position: relative !important;
    flex: 1 1 auto !important;
}

.tm-contact-map--real {
    display: block !important;
    min-width: 0 !important;
    min-height: 390px !important;
    width: auto !important;
    padding: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    flex: 0 0 38% !important;
    background: #e9e7df !important;
}

.tm-contact-map--real iframe {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 390px !important;
    border: 0 !important;
}

.tm-contact-map--real .tm-map-open {
    display: none !important;
}

.tm-contact-messengers {
    display: flex !important;
    margin: 0 !important;
    position: absolute !important;
    top: 282px !important;
    right: 280px !important;
    align-items: center !important;
    gap: 10px !important;
}

.tm-contact-messengers .tm-social-icon {
    display: inline-flex !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #fff !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .18) !important;
}

.tm-contact-messengers .tm-social-icon svg {
    display: block !important;
    width: 26px !important;
    height: 26px !important;
}

.tm-contact-messengers .tm-social-vk {
    background: #0077ff !important;
}

.tm-contact-messengers .tm-social-max {
    background: linear-gradient(135deg, #7b2cff 0%, #236dff 52%, #00b9ef 100%) !important;
}

.footer-redesign .footer-mobile-toggle {
    display: none;
}

@media (max-width: 900px) {
    .tm-header-social {
        width: max-content !important;
        margin: 6px auto 0 !important;
        position: static !important;
        top: auto !important;
        flex-direction: row !important;
        justify-content: center !important;
        gap: 8px !important;
    }
}

@media (max-width: 700px) {
    .bg_footer .footer.footer-redesign {
        gap: 16px !important;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    .footer-redesign .footer_brand_logo {
        max-width: 160px !important;
        margin-bottom: 12px !important;
    }

    .footer-redesign .footer_contacts .indent-15 {
        height: 8px !important;
    }

    .footer-redesign .footer-mobile-toggle {
        display: flex !important;
        width: 100% !important;
        padding: 11px 14px !important;
        align-items: center !important;
        justify-content: space-between !important;
        border: 1px solid rgba(255, 255, 255, .28) !important;
        border-radius: 6px !important;
        background: rgba(255, 255, 255, .06) !important;
        color: #fff !important;
        font: 700 15px/1.2 Arial, sans-serif !important;
        text-align: left !important;
    }

    .footer-redesign .footer-mobile-toggle::after {
        content: '+';
        font-size: 20px;
        line-height: 1;
    }

    .footer-redesign .footer_menu.is-open .footer-mobile-toggle::after {
        content: '−';
    }

    .footer-redesign .footer_menu .bottom_menu_wrap {
        display: none !important;
    }

    .footer-redesign .footer_menu.is-open .bottom_menu_wrap {
        display: grid !important;
        margin-top: 12px !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    .footer-redesign .footer_section_title {
        margin-bottom: 8px !important;
        font-size: 16px !important;
    }

    .footer-redesign .footer_payment_note {
        margin-bottom: 8px !important;
    }

    .footer-redesign .footer_payment_system {
        width: 44px !important;
        height: 28px !important;
    }

    .footer-redesign .footer_payment_qr {
        display: none !important;
    }

    .footer-redesign .footer_phone .phone {
        margin-bottom: 8px !important;
        font-size: 20px !important;
    }

    .footer-redesign .footer_work_time {
        margin-bottom: 10px !important;
    }

    .footer-redesign .footer_phone .call_button {
        margin-bottom: 10px !important;
    }

    .tm-about-blog {
        display: block !important;
    }

    .tm-about-blog .about-company,
    .tm-about-blog .main-blog {
        width: 100% !important;
    }

    .tm-about-blog .main-blog {
        margin-top: 28px !important;
    }

    .tm-about-blog .about-company h3,
    .tm-about-blog .main-blog .news_title {
        font-size: 25px !important;
    }

    .demo-advantages ul {
        grid-template-columns: 1fr !important;
    }

    .demo-advantages {
        min-height: 0 !important;
    }

    .tm-category-card .tm-category-content {
        height: auto !important;
        top: auto !important;
        bottom: 20px !important;
    }

    .tm-category-card .tm-category-content strong,
    .tm-category-card .tm-category-content small {
        min-height: 0 !important;
    }

    .tm-contact {
        display: block !important;
    }

    .tm-contact-map--real {
        width: 100% !important;
        flex-basis: auto !important;
    }

    .tm-contact-main .tm-contact-messengers {
        margin-top: 18px !important;
        position: static !important;
    }
}

/* Review/contact components introduced by the redesign only. */
.test-main-page a.tm-review-card,.test-main-page a.tm-review-card:hover{text-decoration:none;color:#242424}
.test-main-page .tm-review-body{gap:0}
.test-main-page .tm-review-body strong{font-family:'dinpro',Tahoma,Arial,sans-serif;font-size:20px;line-height:1.3}
.test-main-page .tm-review-body small{font-family:Tahoma,Arial,sans-serif;font-size:14px;line-height:1.5}
.test-main-page .tm-review-body>span:last-child{text-decoration:underline;text-underline-offset:3px;font-size:14px}
.test-main-page .tm-contact-actions .tm-button{text-decoration:none;font:700 16px/1.4 'dinpro',Tahoma,Arial,sans-serif;display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box}

/* Align the homepage about/blog column bottoms. */
@media (min-width: 701px) {
.test-main-page .tm-about-blog .about-company,
.test-main-page .tm-about-blog .main-blog { display: flex; flex-direction: column; }
.test-main-page .tm-about-blog .about-company > .demo-advantages { flex: 1 0 auto; margin-bottom: 0; }
.test-main-page .tm-about-blog .main_news_pictures { display: flex; flex-direction: column; flex: 1 0 auto; }
.test-main-page .tm-about-blog .main_news_pictures > .news-item { flex: 1 0 auto; }
}

/* Consistent homepage section headings; the main H1 is intentionally untouched. */
.test-main-page h2,
.test-main-page .tm-about-blog .about-company h3,
.test-main-page .tm-about-blog .main-blog .news_title,
.test-main-page .tm-subheading h3 {
    width: 100%;
    box-sizing: border-box;
    font-size: 24px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
    text-align: center !important;
}
.test-main-page .tm-section-heading,
.test-main-page .tm-subheading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}
.test-main-page .tm-section-heading > div,
.test-main-page .tm-subheading > h3 { grid-column: 2; min-width: 0; }
.test-main-page .tm-section-heading > a,
.test-main-page .tm-subheading > a { grid-column: 3; justify-self: end; text-align: right; }
.test-main-page .tm-about-blog .main-blog .news_title { margin-bottom: 42px !important; }
.test-main-page .tm-about-blog .tm-all-news { top: 34px; font-size: 14px !important; }
@media (max-width: 1100px) {
    .test-main-page .tm-section-heading,
    .test-main-page .tm-subheading { grid-template-columns: minmax(0, 1fr); }
    .test-main-page .tm-section-heading > div,
    .test-main-page .tm-section-heading > a,
    .test-main-page .tm-subheading > h3,
    .test-main-page .tm-subheading > a { grid-column: 1; }
}
@media (max-width: 700px) {
    .test-main-page h2,
    .test-main-page .tm-about-blog .about-company h3,
    .test-main-page .tm-about-blog .main-blog .news_title,
    .test-main-page .tm-subheading h3 { font-size: 18px !important; }
    .test-main-page .tm-about-blog .tm-all-news { top: 28px; }
}
