/*   
Theme Name: alternatcom theme
Version: 1.0
Tags: clean, development, html5, bootstrap
Description: Clean wordpress theme with minimal bootstrap3 markup for fast development starting
*/

p {
    margin: 0;
}
.footer-wrap {
	font-size: 16px;
    margin-bottom: 10px;
}
.footer .footerlink {
	color: #487d75;
}


.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
	overflow: visible;
}

li {
    position: relative;
}

.menu-item-has-children {
	position: relative; 
}
.sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	flex-direction: column;
	gap: 0 !important;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
	border-radius: 0px;
	list-style: none;
	margin: 0;
	margin-top: 10px !important;
	padding: 10px 0 !important;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.sub-menu li {
	width:100%;
	margin-top: 0 !important;
}
.sub-menu li a {
	display: block;
	padding: 8px 18px;
	color: #222;
	text-decoration: none;
	white-space: nowrap;
	border: 0;
}
.sub-menu li a:hover {
	background: #f5f5f5;
}
		
.menu-item-has-children.open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

// Arrow
.menu-item-has-children > a {
	position: relative;
	padding-right: 18px;
}

.menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-left: 6px;
	margin-bottom: 4px;
	padding-bottom: 4px;
	transition: transform .2s;
}
.menu-item-has-children.open > a::after {
	transform: rotate(-135deg);
}


/* ===== Media-queries ===== */

@media (max-width: 992px) {
    .sub-menu {
        /* отменяем всплывание */
        opacity: 1 !important;
        visibility: visible !important;
		padding: 0 !important;
        transform: none !important;
        /* делаем раздвигание */
        position: static;        /* убираем абсолютное позиционирование */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .menu-item-has-children.open > .sub-menu {
        max-height: 500px;   /* любое значение больше реальной высоты меню */
    }
}