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



body {
	overflow: clip;
}
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__logo {
	flex: 0 0 226px;
}
.head__cat {
	flex: 0 0 150px;
}
.head__btn {
	color: #fff;
	background-color: #224089;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	border: none
}
.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;
}
.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 {
	width: 48px;
	height: 48px;
	margin-left: -64px;
	color: #224089;
	font-weight: 700;
	background: none;
	border: none;
	font-size: 14px;
}
.head__switch:hover {
	color: #ff7f00;
}
body.auth .head__switch {
	color: #ff7f00;
}
body.auth .head__switch:hover {
	color: #224089;
}
.search__submit {
	padding: 12px 24px;
}
.search__submit svg {
	margin: 0;
}
.head__input.search__query {
	font-size: 12px;
	line-height: 20px;
	padding: 14px 64px 14px 20px;
	border: none;
	border-radius: 12px;
	width: 100%;
	max-width: 440px;
	background-color: #e4ecf9;
}
.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: 52px;
	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: 150px;
	border-radius: 12px;
	padding: 3px;
	visibility: hidden;
	opacity: 0;
	transition: .3s ease-in-out;
	font-size: 13px;
	line-height: 20px;
	z-index: 10;
}
.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;
}


@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: 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: 450px;
		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;
	}
}



/* top header update */

.info__wrap {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.info__wrap a {
	border-bottom: none;
}

.info__col {
	display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
	gap: 5px;
	font-size: 12px;
	max-width: 100%;
}

.head__bot {
	display: grid;
    grid-template-columns: 490px 1fr;
}

.head__top {
	max-width: 1280px;
}
