/* Мобильная шапка, крошки, шторка и карточки набора. От 768px не действует. */
@media (max-width: 767px) {
	.header .navbar {
		margin: 0;
		border: 0;
		background: transparent;
		min-height: 0;
	}

	.header .navbar-header {
		display: flex !important;
		flex-direction: row;
		align-items: center;
		float: none;
		width: 100%;
		gap: 8px;
		margin: 0;
		padding: 8px 12px 2px;
		min-height: 0;
		background: transparent;
		border: 0;
	}

	.header .navbar-header .col-md-5,
	.header .navbar-header .search-container {
		display: block !important;
		float: none !important;
		width: auto !important;
		max-width: none;
		flex: 1 1 auto;
		min-width: 0;
		padding: 0 !important;
		margin: 0 !important;
	}

	.header .navbar-default .navbar-toggle {
		order: -1;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 4px;
		flex: 0 0 38px;
		width: 38px !important;
		max-width: 38px;
		height: 38px;
		margin: 0;
		padding: 0;
		float: none;
		border: 0;
		border-radius: 3px;
		background: #9B2223;
	}

	.header .navbar-default .navbar-toggle .icon-bar {
		display: block;
		width: 16px;
		height: 2px;
		margin: 0;
		background: #fff;
		border-radius: 1px;
		position: static;
	}

	.header .navbar-default .navbar-toggle .sr-only {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		margin: -1px !important;
		padding: 0 !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important;
		border: 0;
	}

	.header .navbar-default .navbar-toggle:hover,
	.header .navbar-default .navbar-toggle:focus {
		background: #7d1b1c;
	}

	.header .navbar-header .search,
	.header .navbar-header .search .input-group {
		display: flex;
		width: 100%;
		margin: 0;
	}

	.header .navbar-header .search .form-control {
		float: none;
		flex: 1 1 auto;
		width: 1%;
		min-width: 0;
		height: 38px;
		margin: 0;
		padding: 6px 12px;
		border: 1px solid #e6d5c3;
		border-right: 0;
		border-radius: 3px 0 0 3px;
		box-shadow: none;
		background: #fff;
		color: #3a2424;
		font-size: 15px;
	}

	.header .navbar-header .search .input-group-btn {
		float: none;
		display: block;
		width: auto;
	}

	.header .navbar-header .search .input-group-btn .btn {
		width: 40px;
		height: 38px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 0 3px 3px 0;
		background: #9B2223;
		color: #fff;
		font-size: 15px;
	}

	.header-top .search-top {
		display: none !important;
	}

	.header .collapse.navbar-collapse,
	.header .navbar-collapse.collapse {
		display: block !important;
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(84vw, 320px);
		height: 100% !important;
		max-height: none !important;
		margin: 0;
		padding: 0 0 28px;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background: #fffdf9;
		border: 0;
		box-shadow: none;
		float: none !important;
		clear: both !important;
		z-index: 1000002;
		transform: translateX(-105%);
		transition: transform 0.28s ease;
	}

	.header .collapse.navbar-collapse.mebel-open,
	.header .navbar-collapse.collapse.mebel-open {
		transform: translateX(0);
		box-shadow: 12px 0 36px rgba(40, 10, 10, 0.22);
	}

	.mebel-backdrop {
		position: fixed;
		inset: 0;
		background: rgba(40, 10, 10, 0.46);
		z-index: 1000001;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.28s ease;
	}

	.mebel-backdrop.is-on {
		opacity: 1;
		pointer-events: auto;
	}

	body.mebel-lock {
		overflow: hidden;
	}

	.mebel-drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		position: sticky;
		top: 0;
		z-index: 2;
		height: 52px;
		padding: 0 8px 0 16px;
		background: #9B2223;
		color: #fff;
		font-size: 17px;
		font-weight: 600;
	}

	.mebel-drawer-x {
		width: 40px;
		height: 40px;
		border: 0;
		background: transparent;
		color: #fff;
		font-size: 28px;
		line-height: 1;
	}

	.header .navbar-nav {
		float: none;
		margin: 0;
		list-style: none;
	}

	.header .navbar-default .navbar-nav > li {
		float: none;
		display: block;
		position: relative;
		border-bottom: 1px solid rgba(155, 34, 35, 0.1);
	}

	.header .navbar-default .navbar-nav > li > a,
	.header .dropdown > a {
		float: none;
		display: block;
		width: auto;
		padding: 14px 48px 14px 16px !important;
		text-align: left !important;
		text-transform: none !important;
		text-decoration: none;
		font-size: 16px;
		line-height: 1.3;
		color: #3a2424 !important;
		background: transparent !important;
		white-space: normal;
	}

	.header .dropdown.is-open > a {
		color: #9B2223 !important;
	}

	.header .mebel-sub {
		position: absolute;
		top: 7px;
		right: 8px;
		z-index: 2;
		width: 34px;
		height: 34px;
		padding: 0;
		border: 0;
		border-radius: 3px;
		background: transparent;
		color: #9B2223;
		font-size: 16px;
		line-height: 34px;
	}

	.header .mebel-sub .mebel-up {
		display: none;
	}

	.header .dropdown.is-open > .mebel-sub .mebel-down {
		display: none;
	}

	.header .dropdown.is-open > .mebel-sub .mebel-up {
		display: inline;
	}

	.header .dropdown-menu {
		position: static !important;
		float: none;
		display: none;
		width: 100%;
		min-width: 0;
		margin: 0;
		padding: 0 0 6px;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: #faf6f2;
		top: auto !important;
	}

	.header .dropdown.is-open > .dropdown-menu {
		display: block;
	}

	.header .menu-level-2,
	.header .dropdown-menu .list-unstyled,
	.header .menu-level-2 li {
		list-style: none;
	}

	.header .menu-level-2,
	.header .dropdown-menu .list-unstyled {
		margin: 0;
		padding: 0;
	}

	.header .menu-level-2 li {
		float: none !important;
		display: block;
		width: auto !important;
		height: auto !important;
		margin: 0;
		padding: 0 !important;
		background: transparent;
	}

	.header .menu-level-2 li:hover {
		background: transparent;
	}

	.header .menu-level-2 li a,
	.header .dropdown-menu a {
		display: flex;
		align-items: center;
		gap: 10px;
		float: none;
		width: auto;
		min-height: 44px;
		padding: 8px 14px !important;
		text-align: left !important;
		text-transform: none !important;
		text-decoration: none;
		white-space: normal;
		color: #3a2424 !important;
		font-size: 15px;
		line-height: 1.3;
		background: transparent !important;
	}

	.header .menu-level-2 .sprite {
		flex: 0 0 36px;
		width: 36px !important;
		height: 36px !important;
		margin: 0;
		background-size: 32px 32px;
		background-color: #fff;
		border-radius: 3px;
	}

	.header .menu-level-2 li a:hover,
	.header .menu-level-2 li:hover a {
		color: #9B2223 !important;
	}

	#elements + .row .table-responsive {
		overflow: visible;
		border: 0;
		margin-bottom: 0;
	}

	table.element-set {
		display: block;
		width: 100%;
		border: 0;
		margin: 0;
	}

	table.element-set thead {
		display: none;
	}

	table.element-set tbody {
		display: block;
		width: 100%;
	}

	table.element-set tr {
		display: block !important;
		position: relative;
		width: 100%;
		min-height: 112px;
		margin: 0;
		padding: 12px 0 12px 116px !important;
		border: 0;
		border-bottom: 1px solid rgba(155, 34, 35, 0.12);
		background: transparent;
		box-sizing: border-box;
	}

	table.element-set td {
		display: block;
		float: none !important;
		width: auto !important;
		max-width: 100%;
		border: 0 !important;
		padding: 0 0 3px !important;
		text-align: left !important;
		background: transparent;
		box-sizing: border-box;
	}

	table.element-set td:first-child {
		position: absolute;
		left: 0;
		top: 12px;
		width: 104px !important;
		height: 104px;
		padding: 0 !important;
		overflow: hidden;
	}

	table.element-set td:first-child a {
		display: block;
		width: 104px;
		height: 104px;
	}

	table.element-set td:first-child img {
		display: block;
		width: 104px !important;
		height: 104px !important;
		max-width: 104px !important;
		max-height: 104px !important;
		object-fit: contain;
		background: #fff;
		border: 1px solid rgba(0, 0, 0, 0.08);
	}

	table.element-set td:nth-child(2),
	table.element-set td:nth-child(2) a {
		color: #2b1a1a;
		font-size: 15px;
		font-weight: 600;
		line-height: 1.35;
		white-space: normal;
		overflow-wrap: anywhere;
	}

	table.element-set td:nth-child(3),
	table.element-set td:nth-child(4),
	table.element-set td:nth-child(5) {
		color: #6b5348;
		font-size: 13px;
		line-height: 1.35;
	}

	table.element-set td:nth-child(3):before {
		content: "Код: ";
	}

	table.element-set td:nth-child(4):before {
		content: "Габариты: ";
	}

	table.element-set td:nth-child(5):before {
		content: "Цвет: ";
	}

	table.element-set td.mebel-color:empty {
		display: none;
	}

	table.element-set td:nth-child(6) {
		color: #9B2223;
		font-size: 16px;
		font-weight: 700;
	}

	table.element-set td:nth-child(6):before {
		content: "Цена: ";
		font-weight: 600;
	}

	table.element-set td:nth-child(7) {
		margin-top: 4px;
	}

	table.element-set td:nth-child(7) .btn {
		white-space: normal;
		max-width: 100%;
	}
}

@media (max-width: 768px) {
	.breadcrumb {
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		align-items: center;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		white-space: nowrap;
		width: 100%;
		max-width: 100%;
		height: auto;
		margin: 0;
		padding: 4px 12px 8px;
		background: transparent !important;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		font-size: 13px;
		line-height: 1.3;
	}

	.breadcrumb > li {
		display: inline-flex !important;
		flex: 0 0 auto;
		float: none !important;
		align-items: center;
		width: auto !important;
		max-width: none;
		white-space: nowrap !important;
		color: #663333;
	}

	.breadcrumb > li + li:before {
		content: "›";
		float: none;
		padding: 0 7px;
		color: #9B2223;
	}

	.breadcrumb a {
		color: #663333;
		white-space: nowrap;
	}

	.breadcrumb > li:last-child,
	.breadcrumb > li:last-child a {
		color: #2b1a1a;
	}
}
