@import './app/css/main.css';



body {
	overflow: clip;
	padding-bottom: 270px;
}
header {
	background-color: #fff;
	padding: 10px 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
	position: sticky;
	top: 0;
	z-index: 199;
}
.head__wrap {
	max-width: 1318px;
	margin: 0 auto;
}
.head__top {
	display: flex;
	align-items: center;
	gap: 20px;
}
.head__cat__search {
	flex: 1;
	display: flex;
	align-items: center;
	position: relative;
	z-index: 0;
	background: transparent;
	padding: 4px;
	border-radius: 11px;
}
.head__cat__search::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #e4ecf9;
	border-radius: 11px;
	z-index: -1;
}
body.auth .head__cat__search::after {
	background: #ffe8d1;
}
.head__logo {
	flex: 0 0 226px;
}
.head__cat {
	flex: 0 0 0px;
}
.head__btn {
	color: #fff;
	background-color: #224089;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	border: none
}
.head__btn__cat {
	padding-right: 20px;
}
.head__btn svg {
	width: 24px;
	height: 24px;
	margin-right: 8px;
}
.head__btn:hover,
.head__btn.sub__opener.sub__show {
	color: #fff;
	background-color: #ff7f00;
}
body.auth .head__btn {
	background-color: #ff7f00;
}
body.auth .head__btn:hover,
body.auth .head__btn.sub__opener.sub__show {
	background-color: #224089;
}
body.auth .head__input.search__query {
	background-color: #ffe8d1;
}

.head__search {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.head__search input:-webkit-autofill,
.head__search input:-webkit-autofill:hover,
.head__search input:-webkit-autofill:focus,
.head__search input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffe8d1 inset !important;
  box-shadow: 0 0 0 1000px #ffe8d1 inset !important;
  -webkit-text-fill-color: inherit;
  caret-color: inherit;
  transition: background-color 5000s ease-in-out 0s;
}

.search__err {
  position: absolute;
	bottom: 0;
  width: 100%;
  max-width: 440px;
  padding: 0 50px 0 10px;
  font-size: 11px;
  color: #224089;
}
.show__err {
	animation: err-accent .8s ease-in-out .4s 3;
}
@keyframes err-accent {
  0% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
  100% {
    opacity: 1;
  }
}

.head__panel {
	flex: 0 0 256px;
	display: flex;
}
.head__switch {
	box-sizing: border-box;
	color: #224089;
	font-weight: 500;
	border: none;
	font-size: 13px;
	background-color: transparent;
	display: flex;
	align-items: center;
	padding: 4px 10px 4px 4px;
	gap: 4px;
}
body.auth .head__switch {
	color: #944A007A;
}
.head__switch br {
	display: none;
}
.head__switch span {
	transition: .4s;
	white-space: nowrap;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	border-radius: 9px;
	opacity: .55;
}
.head__switch.oem_curr .oem__text,
.head__switch.vin_curr .vin__text {
	background-color: #fff;
	font-weight: 700;
	opacity: 1;
	padding: 2px 4px;
}
body.auth .head__switch.oem_curr .oem__text,
body.auth .head__switch.vin_curr .vin__text {
	color: #FF860F;
}
.search__submit {
	padding: 10px;
}
.search__submit svg {
	margin: 0;
}
.head__input.search__query {
	font-size: 15px;
	line-height: 20px;
	padding: 14px 10px 14px 20px;
	border: none;
	border-radius: 12px;
	width: 100%;
	background-color: #e4ecf9;
}
.head__input.search__query::placeholder {
	font-size: 15px;
	font-weight: 500;
}
body.auth .head__input.search__query::placeholder {
	color: #944A007A;
}
.panel__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 0 0 64px;
	color: #5e666e;
	font-size: 12px;
	font-weight: 300;
	position: relative;
	height: 45px;
	justify-content: end;
}
.panel__btn:hover {
	color: #224089;
}
.panel__btn svg {
	width: 24px;
	height: 24px;
}
.panel__btn span {
	position: absolute;
	left: 50%;
	top: 0;
	background: #224089;
	color: #fff;
	font-size: 10px;
	line-height: 1em;
	padding: 4px;
	border-radius: 10px;
	min-width: 18px;
  text-align: center;
}
.panel__btn.panel__auth {
	display: none;
}
body.auth .panel__btn.panel__noauth {
	display: none;
}
body.auth .panel__btn.panel__auth {
	display: flex;
}
.head__bot {
	display: flex;
}
.head__menu {
	flex: 1;
}
.head__info {
	flex: 1;
}
.info__wrap {
	font-size: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 0 20px;
	justify-content: end;
}
.info__col {
	max-width: 48%;
}
.info__item {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.info__item a {
	display: inline;
}
.info__item svg {
	display: inline;
	width: 18px;
	height: 18px;
	margin-right: 10px;
	color: #ff7f00;
	vertical-align: middle;
}

.head__cat ul,
.head__menu ul {
	list-style-type: none;
	margin: 0;
	padding: 0;
}
.head__menu a,
.menu__top button {
	color: #5e666e;
}
.head__menu a:hover,
.menu__top button:hover {
	color: #ff7f00;
}
.menu__top {
	display: flex;
	gap: 30px;
	font-size: 13px;
	line-height: 20px;
	position: relative;
}
.menu__top button {
	border: none;
	background: none;
	padding: 0;
}
ul.menu__sub {
	position: absolute;
	background-color: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
	min-width: 160px;
	border-radius: 12px;
	padding: 3px;
	visibility: hidden;
	opacity: 0;
	transition: .3s ease-in-out;
	font-size: 13px;
	line-height: 20px;
	z-index: 10;
}
.head__cat .menu__sub {
	left: -4px;
	right: -4px;
	top: 100%;
	padding: 8px;
	border-radius: 0 0 11px 11px;
	box-shadow: none;
	columns: 3;
	column-gap: 5px;
}
.head__cat .menu__sub li {
	break-inside: avoid;
	margin-bottom: 5px;
}
@media (max-width: 1160px) {
	.head__cat .menu__sub {
		columns: 2;
	}
}
@media (max-width: 880px) {
	.head__cat .menu__sub {
		columns: 1;
	}
}
@media (min-width: 641px) {
	header::after {
		content: "";
		position: fixed;
		inset: 0;
		background: #00000021;
		z-index: 100;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity .3s ease-in-out, visibility 0s linear .3s;
	}
	header:has(.head__cat .sub__opener.sub__show)::after {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transition-delay: 0s;
	}
	header:has(.head__cat .sub__opener.sub__show) .head__cat__search {
		z-index: 101;
	}
	header:has(.head__cat .sub__opener.sub__show) .head__cat__search::before {
		content: "";
		position: absolute;
		top: -4px;
		left: -4px;
		right: -4px;
		bottom: calc(-4px - var(--menu-sub-h, 0px));
		background: #fff;
		border-radius: 11px;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
		z-index: -2;
	}
}
.sub__opener.sub__show + .menu__sub {
	visibility: visible;
	opacity: 1;
}
.menu__top button i {
	margin-left: 5px;
}
.menu__sub a {
	display: block;
	padding: 10px 20px;
	border-radius: 10px;
}
.menu__sub a:hover {
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.menu__btn {
	width: 32px;
	height: 32px;
	position: relative;
	padding: 0;
	border: none;
	background: none;
	transition: transform 0.2s ease;
}
.btn__rows,
.btn__rows:before,
.btn__rows:after {
	display: block;
	position: absolute;
	top: 50%;
	width: 32px;
	height: 3px;
	background-color: #224089;
	transition: transform 0.4s ease-out;
	border-radius: 2px;
}

.btn__rows:before,
.btn__rows:after {
	content: '';
}

.btn__rows {
	width: 16px;
}

.btn__rows:before {
	margin-top: -10px;
}

.btn__rows:after {
	margin-top: 7px;
	width: 24px;
}

.menu__show .menu__btn {
	transform: rotate(180deg);
}

.menu__show .menu__btn .btn__rows {
	width: 0;
}
.menu__show .menu__btn .btn__rows:before {
	transform: translate(0, 7px) rotate(-45deg);
}

.menu__show .menu__btn .btn__rows:after {
	transform: translate(0, -10px) rotate(45deg);
	width: 32px;
}
.news__counter {
  position: absolute;
  right: -20px;
  top: -8px;
  background: #cd5e5e;
  color: #fff;
  font-size: 10px;
  line-height: 1em;
  padding: 4px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.menu__top li {
  position: relative;
}
.menu__sub .news__counter {
  right: 10px;
  top: 10px;
}
.info__wrap {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	width: 100%;
	gap: 5px 10px;
	font-size: 12px;
	max-width: 100%;
}
.head__bot {
	display: grid;
    grid-template-columns: 500px 1fr;
}

.alert-wrapper {
	width: 100%;
	margin: 0 auto;
}

.alert {
	text-align: center;
}


@media (min-width: 641px) {
	.mob__only {
		display: none;
	}
}

@media (max-width: 640px) {
	body, body.auth {
		padding-top: 0;
	}
	.desk__only {
		display: none;
	}
	.head__top {
		flex-wrap: wrap;
		padding: 0 20px;
		gap: 0 10px;
		justify-content: space-between;
	}
	.head__logo {
		flex: 0 0 50px;
		overflow: hidden;
		order: 1;
	}
	.head__logo img {
		object-fit: cover;
		object-position: left;
		height: 60px;
		max-width: none;
	}
	.search__submit {
		padding: 12px;
	}
	.head__panel {
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 10;
		background-color: #fff;
		padding: 3px 10px;
		box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.14);
		justify-content: space-evenly;
	}
	.head__bg {
		position: fixed;
		left: 0;
		right: 0;
		top: 68px;
		bottom: 72px;
		background-color: white;
		padding: 20px;
		transition: .4s ease-in-out;
		transform: translateX(-100%);
		overflow-y: auto;
	}
	.head__wrap.menu__show .head__bg {
		transform: translateX(0);
	}

	.head__bot {
		display: flex !important;
		flex-direction: column-reverse;
		justify-content: start;
		gap: 20px;
	}
	.menu__top {
		display: block;
		font-size: 20px;
		line-height: 32px;
	}
	.menu__top > li {
		margin-bottom: 10px;
	}
	.head__menu {
		flex: 0;
	}
	.head__menu a,
	.menu__top button {
		display: block;
		width: 100%;
		text-align:center;
		white-space: nowrap;
		text-overflow: ellipsis;
		overflow: clip;
	}
	.head__menu a:hover,
	.menu__top button:hover {
		color: #ff7f00;
		text-decoration: none;
	}
	ul.menu__sub {
		position: relative;
		visibility: visible;
		opacity: 1;
		max-height: 0;
		overflow: hidden;
		padding: 0;
		background-color: #e4ecf9;
		z-index: 0;
		font-size: 18px;
		border-radius: 10px;
		box-shadow: none;
	}
	.sub__opener.sub__show + .menu__sub {
		max-height: 600px;
		padding: 3px;
	}
	.info__wrap {
		padding: 10px;
		border: 1px solid #224089;
		border-radius: 10px;
		overflow: clip;
	}
	.info__col {
		width: 100%;
		max-width: none;
		grid-template-columns: 1fr !important;
	}
  .news__counter {
    right: 11px;
    top: 8px;
  }
  .info__wrap {
    grid-template-columns: 1fr;
  }

	.alert-wrapper {
		padding: 0;
	}
}
