/* Мобильный хедер: номер телефона справа */
@media (max-width: 550px) {
	.header__right {
		margin-left: auto;
	}
	.header__cta-mob {
		gap: 14px;
	}
	.header__mob-link {
		display: inline-flex;
		align-items: center;
		white-space: nowrap;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.2;
		letter-spacing: -0.2px;
		color: var(--primary-color, #1a1a1a);
		text-decoration: none;
	}
	.header__mob-link:hover {
		color: var(--accent-color, #ed0000);
	}
}
@media (max-width: 380px) {
	.header__mob-link {
		font-size: 13px;
	}
}

/* Мобильный ритм секций — убираем desktop margin-bottom: 80px и выравниваем промежутки */
@media (max-width: 767.98px) {
	.hero {
		margin-bottom: 0;
		padding-bottom: 24px;
	}
	.discount {
		margin-top: 28px;
		margin-bottom: 28px;
		padding-top: 24px;
		padding-bottom: 28px;
	}
	.fixing {
		padding-top: 36px;
		margin-bottom: 28px;
	}
	.steps {
		padding-top: 36px;
		padding-bottom: 36px;
	}
	.master,
	.review,
	.faq,
	.place,
	.price,
	.prior,
	.guarantee,
	.contacts {
		margin-top: 0;
		margin-bottom: 0;
	}
}

@media (max-width: 550px) {
	.hero {
		padding-top: 72px;
		padding-bottom: 20px;
		margin-bottom: 0;
	}
	.hero__cta {
		margin-top: 20px;
	}
	.hero__form {
		gap: 12px;
		margin-top: 14px;
		margin-right: 0;
	}
	.hero__cta-text {
		margin-top: 14px;
		margin-left: 0;
		max-width: none;
		line-height: 1.35;
		text-align: left;
	}
	.hero__inner {
		padding-bottom: 16px;
	}
	.hero__bottom {
		padding-top: 16px;
	}
	.hero__list {
		display: grid;
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.hero__list-item {
		gap: 12px;
		font-size: 15px;
		line-height: 1.3;
	}
	.hero__list-item svg {
		width: 26px;
		height: 26px;
		flex-shrink: 0;
	}

	.service--trouble {
		padding-top: 24px;
		padding-bottom: 12px;
		margin-top: 0;
	}
	.service--trouble .service__head {
		margin: 0;
	}
	.service--trouble .service__head h2 {
		margin: 0;
		line-height: 1.15;
	}
	.trouble__item.service__row {
		gap: 12px;
		margin-top: 16px;
	}
	.trouble__item .trouble__card,
	.trouble__item a.service__item,
	.trouble__item button.service__item {
		padding: 16px;
		gap: 8px;
	}
	.service--trouble .service__cta {
		margin-top: 16px;
		padding-top: 18px;
		padding-bottom: 18px;
		gap: 14px;
	}

	.steps__head p {
		margin-top: 12px;
	}
	.steps__inner {
		margin-top: 18px;
	}

	.price {
		padding-top: 28px;
		padding-bottom: 28px;
	}
	.prior {
		padding-top: 28px;
		padding-bottom: 32px;
		margin-top: 12px;
		margin-bottom: 12px;
	}
	.master {
		padding-top: 28px;
		padding-bottom: 28px;
	}
	.review {
		padding-top: 28px;
		padding-bottom: 28px;
	}
	.faq {
		padding-top: 28px;
		padding-bottom: 28px;
	}
	.place {
		padding-top: 28px;
		padding-bottom: 28px;
	}
}

/* Master photos — без растягивания портретов */
.master__img {
	aspect-ratio: 2 / 3;
	background: #f3f3f3;
}
.master__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

/* 4 / 2 / 1 в ряд — ширина слайда от slidesPerView */
.master__slider .swiper-slide {
	max-width: none;
	height: auto;
}

/* Навигация скрыта, пока все карточки на экране */
.master:not(.is-nav) .master__btns,
.master:not(.is-nav) .master__segments,
.master__btns[hidden],
.master__segments[hidden] {
	display: none !important;
}

/* Master slider — центрированные стрелки + кликабельные сегменты */
.master.is-nav .master__btns {
	display: flex !important;
	align-items: center;
	gap: 12px;
}
.master-button-prev,
.master-button-next {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	border: 1px solid var(--primary-color, #1a1a1a);
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	color: var(--primary-color, #1a1a1a);
	cursor: pointer;
	appearance: none;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.master-button-prev svg,
.master-button-next svg {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	fill: none !important;
}
.master-button-prev:hover,
.master-button-next:hover {
	background-color: var(--accent-color, #ed0000);
	border-color: var(--accent-color, #ed0000);
	color: #fff;
}
.master-button-prev:hover svg,
.master-button-next:hover svg {
	fill: none !important;
}
.master.is-nav .master__segments {
	display: flex !important;
	gap: 6px;
	width: 100%;
	margin: 36px auto 0;
	padding: 14px 0;
}
.master__segment {
	appearance: none;
	position: relative;
	flex: 1 1 0;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.master__segment::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 4px;
	margin-top: -2px;
	border-radius: 2px;
	background: var(--secondary2, #e5e5e5);
	transition: background-color 0.2s;
	pointer-events: none;
}
.master__segment:hover::before {
	background: #cfcfcf;
}
.master__segment.is-active::before {
	background: var(--accent-color, #ed0000);
}
@media (max-width: 550px) {
	.master.is-nav .master__segments {
		margin-top: 28px;
	}
}

/* Prior block — адаптивная сетка карточек на всех экранах */
@media (max-width: 1200px) {
	.prior__head h3 {
		font-size: 42px;
		letter-spacing: -1.2px;
	}
	.prior__item {
		padding: 48px 28px 48px 28px;
	}
	.prior__item h4 {
		font-size: 22px;
	}
	.prior__item-body p {
		font-size: 18px;
	}
	.prior__item:nth-child(1) h4,
	.prior__item:nth-child(2) h4,
	.prior__item:nth-child(3) h4,
	.prior__item:nth-child(4) h4,
	.prior__item:nth-child(5) h4 {
		max-width: none;
	}
}
@media (max-width: 992px) {
	.prior {
		margin-top: 36px;
		margin-bottom: 48px;
		padding-top: 40px;
		padding-bottom: 56px;
	}
	.prior__container {
		padding-left: 26px;
		padding-right: 26px;
	}
	.prior__head {
		max-width: none;
		padding-left: 0;
		padding-right: 0;
	}
	.prior__head h3 {
		font-size: 34px;
		letter-spacing: -0.9px;
		line-height: 1.1;
	}
	.prior__head h3 br {
		display: none;
	}
	.prior__inner {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
		overflow: visible;
		margin-top: 28px;
		padding-left: 0;
		padding-right: 0;
	}
	.prior__item,
	.prior__item:nth-child(1),
	.prior__item:nth-child(2),
	.prior__item:nth-child(3),
	.prior__item:nth-child(4),
	.prior__item:nth-child(5) {
		grid-column: auto;
		max-width: none;
		width: 100%;
		flex-shrink: 1;
		padding: 28px 22px 28px 22px;
		min-height: 0;
	}
	.prior__item h4 {
		font-size: 20px;
		letter-spacing: -0.3px;
		max-width: none;
		padding-right: 8px;
	}
	.prior__item h4 br {
		display: none;
	}
	.prior__item-head {
		align-items: flex-start;
		gap: 12px;
	}
	.prior__item-icon {
		bottom: 0;
		flex-shrink: 0;
	}
	.prior__item-icon svg {
		width: 44px;
		height: 44px;
		display: block;
	}
	.prior__item:nth-child(4) .prior__item-icon {
		bottom: 0;
		right: auto;
	}
	.prior__item-body,
	.prior__item:nth-child(4) .prior__item-body,
	.prior__item:nth-child(5) .prior__item-body {
		margin-top: 16px;
	}
	.prior__item-body p {
		font-size: 16px;
		line-height: 1.3;
		letter-spacing: -0.16px;
	}
	.prior__item-body span {
		font-size: 14px;
		line-height: 1.35;
		letter-spacing: -0.14px;
		margin-top: 12px;
	}
	.kb {
		padding-top: 120px;
	}
	.home__inner {
		display: grid;
		grid-template-columns: 1fr;
		gap: 22px;
		align-items: stretch;
		width: 100%;
		margin-top: 28px;
	}
	.home__item,
	.home__item-1,
	.home__item-2,
	.home__item-3 {
		max-width: none;
		width: 100%;
		margin: 0;
	}
	.home__item-1,
	.home__item-2,
	.home__item-3 > div {
		display: grid;
		grid-template-columns: 72px minmax(0, 1fr);
		column-gap: 16px;
		align-items: center;
		margin: 0;
	}
	.home__item-1 svg,
	.home__item-3 > div svg {
		width: 48px;
		height: auto;
		margin: 0;
		justify-self: center;
		align-self: center;
		flex-shrink: 0;
	}
	.home__item-1 svg {
		height: 48px;
	}
	.home__item-3 > div svg {
		width: 32px;
		height: 39px;
	}
	.home__item-1 p,
	.home__item-2 p {
		margin: 0;
		align-self: center;
	}
	.home__item-2-title {
		margin: 0;
		font-size: 28px;
		line-height: 1;
		letter-spacing: -0.5px;
		text-align: center;
		white-space: nowrap;
		justify-self: center;
		align-self: center;
	}
	.home__item-3-title {
		max-width: none;
		margin: 0;
	}
	.home__item-3 > p {
		margin: 12px 0 0;
		padding: 0;
	}
}
@media (max-width: 700px) {
	.prior__inner {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-top: 22px;
	}
	.prior__head h3 {
		font-size: 28px;
		letter-spacing: -0.7px;
		line-height: 1.05;
	}
	.prior__head h3 br {
		display: block;
	}
	.prior__item,
	.prior__item:nth-child(4),
	.prior__item:nth-child(5) {
		padding: 24px 20px 22px;
	}
	.prior__item h4,
	.prior__item:nth-child(5) h4 {
		font-size: 18px;
		letter-spacing: -0.2px;
	}
	.prior__item-icon svg {
		width: 40px;
		height: 40px;
	}
	.prior__item-body,
	.prior__item:nth-child(4) .prior__item-body,
	.prior__item:nth-child(5) .prior__item-body {
		margin-top: 12px;
	}
	.prior__item-body p {
		font-size: 15px;
	}
	.prior__item-body span {
		font-size: 13px;
		margin-top: 10px;
	}
}
@media (max-width: 550px) {
	.prior {
		padding-top: 28px;
		padding-bottom: 40px;
		margin-top: 24px;
		margin-bottom: 28px;
	}
	.prior__head h3 {
		font-size: 26px;
		letter-spacing: -0.7px;
	}
	.prior__item h4,
	.prior__item:nth-child(5) h4 {
		font-size: 17px;
	}
}
@media (max-width: 550px) {
	.home {
		padding-top: 32px;
	}
	.home__inner {
		gap: 18px;
		margin-top: 22px;
	}
	.home__item-1,
	.home__item-2,
	.home__item-3 > div {
		grid-template-columns: 64px minmax(0, 1fr);
		column-gap: 14px;
	}
	.home__item-1 svg {
		width: 44px;
		height: 44px;
	}
	.home__item-3 > div svg {
		width: 30px;
		height: 36px;
	}
	.home__item-2-title {
		font-size: 24px;
		letter-spacing: -0.4px;
	}
	.home__item-1 p,
	.home__item-2 p {
		font-size: 15px;
		line-height: 1.3;
		letter-spacing: -0.15px;
	}
	.home__item-3-title {
		font-size: 16px;
		line-height: 1.25;
		letter-spacing: -0.16px;
	}
	.home__item-3 > p {
		margin-top: 10px;
		font-size: 14px;
		line-height: 1.4;
		letter-spacing: -0.14px;
	}
}

/* Review slider — ширина слайда от slidesPerView (4 / 2 / 1 как у мастеров) */
.review__slider .swiper-slide {
	max-width: none;
	min-height: 0;
	height: auto;
}
.review__item {
	min-height: 0;
	height: auto;
	box-sizing: border-box;
}
.review__item-head {
	width: 100%;
	max-width: none;
	align-items: flex-start;
	gap: 12px;
}
.review__item-rate {
	margin-top: 0;
}
.review__item-icon {
	flex-shrink: 0;
	align-self: flex-start;
	margin: 0;
}
@media (max-width: 576px) {
	.review__item {
		padding: 20px 18px 22px;
	}
	.review__item-icon {
		width: 44px;
		height: 44px;
	}
	.review__item-icon svg {
		width: 20px;
		height: 20px;
	}
	.review__item-text {
		margin-top: 16px;
		margin-bottom: 0;
	}
	.review__item-date {
		margin-top: 14px;
	}
}
@media (min-width: 577px) {
	.review__item {
		height: 100%;
	}
}

/* Review slider — круглые стрелки + пошаговые сегменты (как у мастеров) */
.review:not(.is-nav) .review__btns,
.review:not(.is-nav) .review__segments,
.review__btns[hidden],
.review__segments[hidden] {
	display: none !important;
}
.review.is-nav .review__btns {
	display: flex !important;
	align-items: center;
	gap: 12px;
}
.review-button-prev,
.review-button-next {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	border: 1px solid var(--primary-color, #1a1a1a);
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	color: var(--primary-color, #1a1a1a);
	cursor: pointer;
	appearance: none;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.review-button-prev svg,
.review-button-next svg {
	display: block;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	fill: none !important;
}
.review-button-prev:hover,
.review-button-next:hover {
	background-color: var(--accent-color, #ed0000);
	border-color: var(--accent-color, #ed0000);
	color: #fff;
}
.review-button-prev:hover svg,
.review-button-next:hover svg {
	fill: none !important;
}
.review.is-nav .review__segments {
	display: flex !important;
	gap: 6px;
	width: 100%;
	max-width: 920px;
	margin: 36px auto 0;
	padding: 14px 0;
}
.review__segment {
	appearance: none;
	position: relative;
	flex: 1 1 0;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.review__segment::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 4px;
	margin-top: -2px;
	border-radius: 2px;
	background: var(--secondary2, #e5e5e5);
	transition: background-color 0.2s;
	pointer-events: none;
}
.review__segment:hover::before {
	background: #cfcfcf;
}
.review__segment.is-active::before {
	background: var(--accent-color, #ed0000);
}
@media (max-width: 576px) {
	.review.is-nav .review__btns {
		display: none !important;
	}
	.review.is-nav .review__segments {
		margin-top: 28px;
	}
}

/* Cities modal — активный город */
.cities__link.is-active {
	color: var(--accent-color, #ed0000);
	font-weight: 600;
}

/* Sidebar close — button instead of <a href=""> */
.sidebar__exit_btn {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	line-height: 0;
}

/* Native scroll — отключаем артефакты Lenis */
html,
html.lenis,
html.lenis.lenis-smooth {
	scroll-behavior: auto;
	height: auto;
}
.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

/* .place / .service__head — base.css; сетка каталога — WP */
.service {
	padding: 40px 0 20px;
}
.service-page__lead {
	margin: 12px 0 28px;
	max-width: 860px;
	font-size: 18px;
	line-height: 1.45;
	color: var(--text-color2, #5a5a5a);
}
.service-page__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin: 8px 0 28px;
}
.service-page__back {
	color: var(--text-color2, #5a5a5a);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.service-page__back:hover {
	color: var(--accent-color, #ed0000);
}
.service__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
	margin-top: 24px;
}
.service__list .service__item {
	display: block;
	padding: 20px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.service__list .service__item:hover {
	border-color: var(--accent-color, #ed0000);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.service__list .service__item-title {
	display: block;
	font-weight: 600;
}
.service__list .service__item-price {
	display: block;
	margin-top: 8px;
	color: #f00000;
	font-weight: 600;
}

/* Популярные поломки — компактные карточки (без иконок) */
.trouble__item .service__item::after,
.trouble__item .trouble__card::after {
	display: none !important;
	content: none !important;
	background: none !important;
}
.trouble__item .trouble__card,
.trouble__item a.service__item,
.trouble__item button.service__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	min-height: 0;
	height: auto;
	padding: 20px;
	border: 0;
	cursor: pointer;
	text-align: left;
	font: inherit;
	appearance: none;
	-webkit-appearance: none;
	background-color: var(--service-card-bg, #f3f3f3);
	color: var(--primary-color, #1a1a1a);
	transition: background-color 0.2s, color 0.2s;
}
.trouble__item .service__item-title {
	max-width: none;
	margin: 0;
	position: relative;
	z-index: 2;
	font-size: 17px;
	line-height: 1.25;
}
.trouble__item .service__item-price {
	margin: 0;
	position: relative;
	z-index: 2;
	font-size: 16px;
}
.trouble__item .trouble__card > span,
.trouble__item .trouble__card > p,
.trouble__item .service__item > span,
.trouble__item .service__item > p {
	color: inherit;
}
.trouble__item .trouble__card:hover,
.trouble__item .trouble__card:focus,
.trouble__item .trouble__card:active {
	background-color: var(--service-card-bg, #f3f3f3);
	color: var(--primary-color, #1a1a1a);
}
@media (hover: hover) and (pointer: fine) {
	.trouble__item .trouble__card:hover {
		background-color: var(--service-card-bg-hover, #fe3434);
		color: #fff;
	}
}
@media (max-width: 576px) {
	.service--trouble .service__head h2 {
		font-size: 28px;
		line-height: 1.05;
		letter-spacing: -0.7px;
	}
	.trouble__item.service__row {
		grid-template-columns: 1fr;
		gap: 10px;
		margin-top: 22px;
	}
	.trouble__item .trouble__card,
	.trouble__item a.service__item,
	.trouble__item button.service__item {
		min-height: 0;
		padding: 16px;
		gap: 8px;
	}
	.trouble__item .service__item-title {
		font-size: 16px;
	}
}
.guarantee {
	padding: 20px 0 40px;
}

/* База знаний — архив / статья (отступ под fixed header) */
.kb {
	padding: 170px 0 24px;
}
.kb__container {
	max-width: 1448px;
}
.kb__head {
	margin-top: 18px;
}
.kb__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--text-color2, #5a5a5a);
}
.kb__meta a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.kb__meta a:hover {
	color: var(--accent-color, #ed0000);
}
.kb__title {
	margin: 0;
	font-size: clamp(28px, 3.4vw, 48px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.9px;
	color: var(--primary-color, #1a1a1a);
}
.kb__lead {
	margin: 14px 0 0;
	font-size: 18px;
	line-height: 1.45;
	color: var(--text-color2, #5a5a5a);
}
.kb__cta {
	margin-top: 22px;
}
.kb__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}
.kb-filter {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid var(--primary-color, #1a1a1a);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--primary-color, #1a1a1a);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.kb-filter:hover,
.kb-filter.is-active {
	background: var(--accent-color, #ed0000);
	border-color: var(--accent-color, #ed0000);
	color: #fff;
}
.kb-list {
	padding: 12px 0 72px;
}
.kb-list__container.is-loading {
	pointer-events: none;
}
.kb-list__empty {
	margin: 0;
	font-size: 17px;
	color: var(--text-color2, #5a5a5a);
}
.kb-cards {
	display: grid;
	gap: 24px;
}
.kb-cards--skeleton {
	gap: 24px;
}
.kb-card--skeleton {
	min-height: 220px;
	pointer-events: none;
	background: linear-gradient(90deg, #ececec 25%, #f7f7f7 50%, #ececec 75%);
	background-size: 200% 100%;
	animation: kb-skeleton 1.1s ease-in-out infinite;
	box-shadow: none;
}
.kb-card--skeleton:hover {
	transform: none;
	box-shadow: none;
}
@keyframes kb-skeleton {
	0% { background-position: 100% 0; }
	100% { background-position: -100% 0; }
}
@media (min-width: 768px) {
	.kb-card--skeleton {
		min-height: 280px;
	}
}
.kb-card {
	display: grid;
	grid-template-columns: 1fr;
	overflow: hidden;
	background: var(--secondary-bg, #f5f5f5);
	border-radius: 14px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s, box-shadow 0.2s;
}
.kb-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
	color: inherit;
}
.kb-card__media {
	min-height: 220px;
	background: #ececec;
}
.kb-card__media img,
.kb-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	aspect-ratio: 16 / 11;
}
.kb-card__placeholder {
	background: linear-gradient(135deg, #ececec, #d9d9d9);
}
.kb-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 10px;
	padding: 28px 24px 32px;
}
.kb-card__tag {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent-color, #ed0000);
}
.kb-card__title {
	margin: 0;
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 600;
	line-height: 1.25;
	color: var(--primary-color, #1a1a1a);
}
.kb-card__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--text-color2, #5a5a5a);
}
.kb-card__meta {
	font-size: 14px;
	font-weight: 600;
	color: var(--primary-color, #1a1a1a);
}
.kb-card__more {
	display: inline-flex;
	margin-top: 6px;
	padding: 10px 16px;
	border: 1px solid var(--primary-color, #1a1a1a);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	pointer-events: none;
}
.kb-card:hover .kb-card__more {
	background: var(--accent-color, #ed0000);
	border-color: var(--accent-color, #ed0000);
	color: #fff;
}
.kb-pagination {
	margin-top: 36px;
}
.kb-pagination__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.kb-pagination__item a,
.kb-pagination__item span {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	text-decoration: none;
	color: var(--primary-color, #1a1a1a);
	font-weight: 600;
}
.kb-pagination__item a:hover {
	border-color: var(--accent-color, #ed0000);
	color: var(--accent-color, #ed0000);
}
.kb-pagination__item .current {
	background: var(--accent-color, #ed0000);
	border-color: var(--accent-color, #ed0000);
	color: #fff;
}
.kb-article {
	padding: 8px 0 56px;
}
.kb-article__container {
	max-width: 1452px;
}
.kb-article__image {
	margin: 0 0 28px;
}
.kb-article__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 14px;
}
.kb-article__content {
	font-size: 17px;
	line-height: 1.7;
	color: var(--text-color2, #5a5a5a);
}
.kb-article__content > *:first-child {
	margin-top: 0;
}
.kb-article__content h2,
.kb-article__content h3,
.kb-article__content h4 {
	margin: 1.6em 0 0.6em;
	color: var(--primary-color, #1a1a1a);
	font-weight: 600;
	line-height: 1.25;
}
.kb-article__content p {
	margin: 0 0 1em;
}
.kb-article__content ul,
.kb-article__content ol {
	margin: 0 0 1.2em;
	padding-left: 1.25em;
}
.kb-article__content a {
	color: var(--primary-color, #1a1a1a);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.kb-article__content a:hover {
	color: var(--accent-color, #ed0000);
}
.kb-related {
	padding: 0 0 72px;
}
.kb-related__head {
	margin-bottom: 28px;
	max-width: 720px;
}
.kb-related__head h2 {
	margin: 0;
	font-size: clamp(26px, 3vw, 40px);
	font-weight: 600;
	letter-spacing: -0.6px;
	color: var(--primary-color, #1a1a1a);
}
.kb-related__head p {
	margin: 10px 0 0;
	font-size: 17px;
	color: var(--text-color2, #5a5a5a);
}
@media (min-width: 768px) {
	.kb-cards {
		gap: 28px;
	}
	.kb-card {
		grid-template-columns: 1fr 1fr;
		min-height: 300px;
	}
	.kb-card--reverse .kb-card__media {
		order: 2;
	}
	.kb-card__media {
		min-height: 100%;
	}
	.kb-card__media img,
	.kb-card__placeholder {
		height: 100%;
		aspect-ratio: auto;
	}
	.kb-card__body {
		padding: 36px 40px;
	}
}
@media (max-width: 576px) {
	.kb {
		padding-top: 70px;
	}
	.kb__lead {
		font-size: 16px;
	}
	.kb-card__body {
		padding: 22px 20px 26px;
	}
}

/* Последний синий CTA перед футером — без белой дыры */
#main > .blue.discount:last-child {
	margin-bottom: 0;
}
main:has(> .blue.discount:last-child) + .footer {
	margin-top: 0;
}

/* Шаги — на мобиле вертикально */
@media (max-width: 767.98px) {
	.steps__inner {
		padding-left: 16px;
		padding-right: 16px;
	}
	.steps__inner:before {
		width: 2px;
		height: calc(100% - 40px);
		left: 35px;
		top: 20px;
		transform: none;
	}
	.steps__inner .steps__container,
	.steps__inner .steps__wrapper,
	.steps__slider .swiper-wrapper {
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch;
		gap: 24px;
		transform: none !important;
		width: 100% !important;
		padding-bottom: 0 !important;
	}
	.steps__item,
	.steps__item.swiper-slide {
		display: grid;
		grid-template-columns: 40px minmax(0, 1fr);
		column-gap: 14px;
		row-gap: 6px;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		flex-shrink: 1;
	}
	.steps__item-num {
		grid-row: 1 / span 3;
		align-self: start;
		position: relative;
		z-index: 2;
	}
	.steps__item-title,
	.steps__item:nth-child(1) div.steps__item-title,
	.steps__item:nth-child(2) div.steps__item-title,
	.steps__item:nth-child(3) div.steps__item-title,
	.steps__item:nth-child(4) div.steps__item-title {
		margin-top: 4px;
		max-width: none !important;
	}
	.steps__item-text,
	.steps__item p,
	.steps__item:nth-child(1) p,
	.steps__item:nth-child(2) p,
	.steps__item:nth-child(3) p,
	.steps__item:nth-child(4) p {
		max-width: none !important;
		margin-top: 0;
	}
	.steps__slider {
		padding-bottom: 0;
	}
	.steps__slider .swiper-scrollbar {
		display: none !important;
	}
}

/* Breadcrumbs внутри hero (страницы контактов и т.п.) */
.hero .breadcrumbs {
	margin: 0 0 18px;
	width: 100%;
}
.hero .breadcrumbs,
.hero .breadcrumbs a {
	color: var(--primary-color, #1a1a1a);
}

/* Legal / text pages — тот же .container, что у шапки */
.legal-page {
	padding: 140px 0 64px;
}
.legal-page__head {
	margin: 12px 0 24px;
}
.legal-page__title {
	margin: 0 0 10px;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--primary-color, #1a1a1a);
}
.legal-page__lead {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--text-color2, #5a5a5a);
}
.legal-page__content {
	font-size: 16px;
	line-height: 1.65;
	color: var(--text-color, #2a2a2a);
}
.legal-page__content h2 {
	margin: 28px 0 12px;
	font-size: clamp(20px, 2.5vw, 24px);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: var(--primary-color, #1a1a1a);
}
.legal-page__content h3 {
	margin: 22px 0 10px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
}
.legal-page__content p {
	margin: 0 0 12px;
}
.legal-page__content ul,
.legal-page__content ol {
	margin: 0 0 14px;
	padding-left: 1.25em;
}
.legal-page__content li {
	margin: 0 0 6px;
}
.legal-page__content a {
	color: var(--accent-color, #ed0000);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.legal-page__content a:hover {
	opacity: 0.85;
}

.breadcrumbs {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--text-color2, #5a5a5a);
}
.breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 0;
	margin: 0;
	padding: 0;
	list-style: none;
}
.breadcrumbs__item + .breadcrumbs__item::before {
	content: "/";
	margin: 0 8px;
	opacity: 0.5;
}
.breadcrumbs a {
	color: inherit;
	text-decoration: none;
}
.breadcrumbs a:hover {
	color: var(--accent-color, #ed0000);
}

@media (max-width: 992px) {
	.legal-page {
		padding: 120px 0 48px;
	}
}
@media (max-width: 576px) {
	.legal-page {
		padding: 110px 0 40px;
	}
}

/* SEO text block — как на Miele, под Bosch UI */
.seo-text {
	padding: 72px 0 88px;
	background: #fff;
}
.seo-text--surface {
	background: var(--page-bg, #fff);
}
.seo-text__container {
	max-width: 1448px;
}
.seo-text__head {
	margin-bottom: 36px;
	max-width: 920px;
}
.seo-text__title {
	margin: 0;
	font-size: clamp(28px, 3.2vw, 45px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.9px;
	color: var(--primary-color, #1a1a1a);
}
.seo-text__body {
	display: grid;
	gap: 20px;
	margin: 0;
	text-align: left;
}
.seo-text__block {
	display: flex;
	flex-direction: column;
	padding: 28px 24px 32px;
	border-radius: 12px;
	background: var(--secondary-bg, #f5f5f5);
}
.seo-text__num {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-color2, #8a8a8a);
}
.seo-text__heading {
	margin: 0 0 14px;
	font-size: clamp(18px, 2vw, 22px);
	font-weight: 600;
	letter-spacing: -0.3px;
	line-height: 1.25;
	color: var(--primary-color, #1a1a1a);
}
.seo-text__copy {
	flex: 1;
}
.seo-text__copy p {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.65;
	color: var(--text-color2, #5a5a5a);
}
.seo-text__copy p:last-child {
	margin-bottom: 0;
}
.seo-text__copy a {
	color: var(--primary-color, #1a1a1a);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}
.seo-text__copy a:hover {
	color: var(--accent-color, #ed0000);
	border-color: var(--accent-color, #ed0000);
}
.seo-text__list {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 10px;
}
.seo-text__list li {
	position: relative;
	padding-left: 18px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--primary-color, #1a1a1a);
}
.seo-text__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent-color, #ed0000);
}
.seo-text__article {
	margin-top: 44px;
	padding-top: 44px;
	border-top: 1px solid var(--secondary2, #e5e5e5);
}
.seo-text__article-title {
	margin: 0 0 20px;
	font-size: clamp(22px, 2.4vw, 32px);
	font-weight: 600;
	letter-spacing: -0.5px;
	line-height: 1.2;
	color: var(--primary-color, #1a1a1a);
}
.seo-text__article-copy p {
	margin: 0 0 16px;
	font-size: 17px;
	line-height: 1.7;
	color: var(--text-color2, #5a5a5a);
}
.seo-text__article-copy p:last-child {
	margin-bottom: 0;
}
.seo-text__article-copy h4 {
	margin: 28px 0 12px;
	font-size: 18px;
	font-weight: 600;
	color: var(--primary-color, #1a1a1a);
}
.seo-text__article-copy a {
	color: var(--primary-color, #1a1a1a);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}
.seo-text__article-copy a:hover {
	color: var(--accent-color, #ed0000);
}
.seo-text__article-copy strong {
	color: var(--primary-color, #1a1a1a);
	font-weight: 700;
}
@media (min-width: 768px) {
	.seo-text__body {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}
	.seo-text__block {
		padding: 32px 28px 36px;
	}
}
@media (max-width: 576px) {
	.seo-text {
		padding: 40px 0 56px;
	}
	.seo-text__head {
		margin-bottom: 24px;
	}
	.seo-text__article {
		margin-top: 32px;
		padding-top: 32px;
	}
	.seo-text__copy p,
	.seo-text__article-copy p {
		font-size: 15px;
	}
	.price__container {
		margin-top: 10px;
	}
	.master__content {
		padding-top: 10px;
	}
	.home__item-3 > p {
		margin-top: 40px;
	}
}

/* Footer legal links — без дефолтного фиолетового visited */
.footer__company {
	margin-top: 16px;
	font-size: 13px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.75);
}
.footer__company a,
.footer__company a:visited {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.footer__company a:hover {
	color: #fe3434;
}
.footer a:visited {
	color: inherit;
}
