﻿.ahan-mobile-header {
	display: none;
}

@media (max-width: 767px) {
	.ahan-mobile-header {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 10px;
		width: calc(100% - 28px);
		min-height: 58px;
		margin: 0 auto 14px;
		padding: 9px 10px;
		border: 1px solid var(--ahan-color-border);
		border-radius: 8px;
		background: #fff;
		box-shadow: var(--ahan-shadow-sm);
		box-sizing: border-box;
	}

	.ahan-mobile-header__logo {
		display: inline-flex;
		align-items: center;
		flex: 0 0 126px;
		width: 126px;
		min-width: 0;
		overflow: hidden;
		color: var(--ahan-color-text);
		font-weight: 900;
		text-decoration: none;
	}

	.ahan-mobile-header__logo .ahan-brand-logo {
		display: block;
		width: auto;
		height: 38px;
		max-width: 126px;
		object-fit: contain;
		object-position: left center;
	}

	.ahan-mobile-header .ahan-brand-mark {
		width: 32px;
		height: 32px;
		border-width: 6px;
	}

	.ahan-mobile-header .ahan-brand-mark::before {
		inset: 5px;
		border-width: 3px;
	}

	.ahan-mobile-header .ahan-brand-text strong {
		font-size: 1.32rem;
		line-height: 1;
	}

	.ahan-mobile-header .ahan-brand-text small {
		display: none;
	}

	.ahan-mobile-header__search {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 42px;
		min-width: 0;
		overflow: hidden;
		border: 1px solid var(--ahan-color-border);
		border-radius: 7px;
		background: #fff;
		box-sizing: border-box;
	}

	.ahan-mobile-header__search input {
		min-width: 0;
		height: 42px;
		padding: 0 10px;
		border: 0;
		color: var(--ahan-color-text);
		font-family: inherit;
		font-size: 0.86rem;
	}

	.ahan-mobile-header__search button {
		position: relative;
		min-height: 42px;
		border: 0;
		background: #fff;
		color: var(--ahan-color-text-muted);
		cursor: pointer;
	}

	.ahan-mobile-header__search button::before {
		position: absolute;
		top: 11px;
		left: 13px;
		width: 14px;
		height: 14px;
		border: 3px solid currentColor;
		border-radius: 50%;
		content: "";
	}

	.ahan-mobile-header__search button::after {
		position: absolute;
		right: 13px;
		bottom: 11px;
		width: 10px;
		height: 3px;
		background: currentColor;
		content: "";
		transform: rotate(45deg);
	}
}

@media (max-width: 380px) {
	.ahan-mobile-header {
		width: calc(100% - 20px);
		gap: 8px;
		padding-inline: 8px;
	}

	.ahan-mobile-header__logo {
		flex-basis: 116px;
		width: 116px;
	}

	.ahan-mobile-header__logo .ahan-brand-logo {
		height: 35px;
		max-width: 116px;
	}

	.ahan-mobile-header .ahan-brand-mark {
		width: 28px;
		height: 28px;
		border-width: 5px;
	}

	.ahan-mobile-header .ahan-brand-mark::before {
		inset: 4px;
		border-width: 3px;
	}

	.ahan-mobile-header .ahan-brand-text strong {
		font-size: 1.18rem;
	}

	.ahan-mobile-header__search {
		grid-template-columns: minmax(0, 1fr) 38px;
	}

	.ahan-mobile-header__search input {
		height: 40px;
		padding-inline: 8px;
		font-size: 0.72rem;
	}
}
