.menu {
	display: inline-block;
	text-align: left;
}
.menu__item {
	position: relative;
	transition: padding .3s;
}
.menu__item-anchor {
	font-size: 18px;
	color: white;
}
.menu__item-link {
	text-decoration: none;
}
@media (min-width: 1200px) {
	.menu {
		display: flex;
		justify-content: space-between;
	}
	.menu__item.selected {
		border-radius: 10px;
		background-color: rgba(255,255,255,.1);
	}
	.menu__item-anchor {
		display: inline-block;
		padding: 15px 15px;
	}
	.menu__item-link {
		position: relative;
		z-index: 1;
	}

	.menu__item-link::before,
	.menu__item-link::after {
		content: '';
		position: absolute;
		width: 0;
		height: 0;
		opacity: 0;
	}

	/* верхняя + левая стороны, опорный угол — левый верхний */
	.menu__item-link::before {
		top: 0;
		left: 0;
		border-top: 1px solid rgba(255, 255, 255, .5);
		border-left: 1px solid rgba(255, 255, 255, .5);
		border-top-left-radius: 10px;
		/* уход ховера: сначала схлопывается вертикаль, потом горизонталь (обратный порядок) */
		transition:
				height .4s ease,
				width .4s ease,
				border-radius .8s ease,
				opacity 1s ease;
	}

	/* нижняя + правая стороны, опорный угол — правый нижний */
	.menu__item-link::after {
		bottom: 0;
		right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, .5);
		border-right: 1px solid rgba(255, 255, 255, .5);
		border-bottom-right-radius: 10px;
		transition:
				height .4s ease,
				width .4s ease,
				border-radius .8s ease,
				opacity 1s ease;
	}

	.menu__item-link:hover::before,
	.menu__item-link:hover::after {
		width: 100%;
		height: 100%;
		border-radius: 10px;
		opacity: 1;
		/* наведение: сначала горизонталь, затем вертикаль */
		transition:
				width .4s ease,
				height .4s ease,
				border-radius .8s ease;
	}





}
@media (max-width: 1199px) {
	.menu {

	}
	.menu__item {
		padding: 10px 0;
	}
}

