/**
 * ==========================================================================
 * Hegau24 Header
 * ==========================================================================
 */

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.hegau-header {
	margin-bottom: 2rem;
}

.hegau-header .hegau-container {
	max-width: 1400px;
	margin: 0 auto;

	background: #ffffff;
	border-radius: 24px;
	overflow: hidden;
}


/* --------------------------------------------------------------------------
   Top row
   -------------------------------------------------------------------------- */

.hegau-header__top {
    display: flex;
    align-items: center;
    gap: 2rem;

    height: 76px;
    min-height: 76px;
    padding: 0 2rem;

    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Left
   -------------------------------------------------------------------------- */

.hegau-header__left {
	display: flex;
	align-items: center;

	gap: 1.5rem;

	flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   Search
   -------------------------------------------------------------------------- */

.hegau-header__search {
	flex: 1;
	min-width: 220px;
}

.hegau-header__search .hegau-search {
	width: 100%;
}


/* --------------------------------------------------------------------------
   Right
   -------------------------------------------------------------------------- */

.hegau-header__right {
	display: flex;
	align-items: center;

	gap: 1rem;

	flex-shrink: 0;
}


/* --------------------------------------------------------------------------
   Bottom navigation
   -------------------------------------------------------------------------- */

.hegau-header__bottom {
    height: 64px;
    border-top: 1px solid #e5e7eb;
    padding: 0 2rem;

    box-sizing: border-box;
}


/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.hegau-header__bottom .hegau-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 2rem;

    height: 64px;
    min-height: 64px;

    margin: 0;
    padding: 0;

    list-style: none;

    box-sizing: border-box;
}

.hegau-header__bottom .hegau-menu li {
	margin: 0;
	padding: 0;

	list-style: none;
}

.hegau-header__bottom .hegau-menu a {
	display: flex;
	align-items: center;

	height: 64px;

	color: #1f2937;
	text-decoration: none;

	font-weight: 600;

	transition:
		color 0.2s ease,
		background-color 0.2s ease;
}

.hegau-header__bottom .hegau-menu a:hover,
.hegau-header__bottom .hegau-menu .current-menu-item > a {
	color: #16a34a;
}


/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {

	.hegau-header__top {
		gap: 1rem;
		padding: 1.25rem 1.5rem;
	}

	.hegau-header__left {
		gap: 1rem;
	}

	.hegau-header__bottom {
		padding: 0 1.5rem;
	}

	.hegau-header__bottom .hegau-menu {
		gap: 1.25rem;
	}
}


@media (max-width: 800px) {

	.hegau-header__top {
		flex-wrap: wrap;
	}

	.hegau-header__search {
		order: 3;
		flex-basis: 100%;
	}

	.hegau-header__bottom {
		overflow-x: auto;
	}

	.hegau-header__bottom .hegau-menu {
		width: max-content;
	}
	
	
}

/* Убираем аккаунт из нижнего меню */
.menu-item-user-account {
    display: none !important;
}
/* =========================================================


/* ==========================================================================
   Top advertising banner
   ========================================================================== */

.hegau-header__banner {
    display: block;

    width: 100%;
    box-sizing: border-box;

    padding: 14px 32px;

    color: #315878;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.45);

    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 16px;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.hegau-header__banner:hover {
    color: #315878;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.75);

    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.hegau-header__banner:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 3px;
}

.hegau-header__badge {
    margin-bottom: 6px;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.hegau-header__text {
    font-size: 16px;
    line-height: 1.5;
}


/* Mobile */

@media (max-width: 800px) {

    .hegau-header__banner {
        padding: 12px 20px;
        border-radius: 14px;
    }

    .hegau-header__badge {
        font-size: 15px;
    }

    .hegau-header__text {
        font-size: 14px;
    }
}


/* ==========================================================================
   Top advertising banner — align with homepage content
   ========================================================================== */

.hegau-header__banner {
    width: min(1800px, 94%);
    margin-inline: auto;
    box-sizing: border-box;
}


/* ==========================================================================
   Top advertising banner — responsive
   ========================================================================== */

@media (max-width: 800px) {

    .hegau-header__banner {
        width: calc(100% - 32px);
    }
}


/* ==========================================================================
   Header container — align with homepage content
   ========================================================================== */

.hegau-header .hegau-container {
    width: min(1800px, 94%);
    max-width: none;
    margin-inline: auto;
}


/* Mobile */

@media (max-width: 800px) {

    .hegau-header .hegau-container {
        width: calc(100% - 32px);
    }
}


