/* =====================================================
   ALMAZI HEADER — RESPONSIVE LAYOUT ONLY
   ===================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* ================= HEADER ROOT ================= */

.almaz-header {
	background: transparent;
}

/* ================= PANEL ================= */

/*
.almaz-header__panel {
	max-width: 1300px;
	margin: 0px auto 0;
	background: #F8F8F8;
	border: 1px solid #E1E3E1;
	overflow: hidden;
}
*/

.almaz-header__panel {
    max-width: 1300px;
    margin: 0px auto 0;
    background: #F8F8F8;
    border: 1px solid #E1E3E1;
    overflow: visible;
}

/* ================= TOP ================= */

.almaz-header__top {
	padding: 10px 10px 10px 10px;
}

/* ================= ROW ================= */

.almaz-header__row {
	display: flex;
	align-items: center;
}

/* ================= LOGO ================= */

.almaz-header__logo {
	width: 140px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.almaz-header__logo img {
	max-height: 180px;
	display: block;
}

/* ================= CENTRAL CARD ================= */

.almaz-header__card {
	flex: 1;
	margin: 0 20px;
	background: #FAFAFA;
	border: 2px solid #EDEAE8;
	border-radius: 10px;
	padding: 22px 20px;
	display: flex;
	align-items: stretch;
	gap: 20px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.07);
}

/* ================= CARD INNER ================= */

.almaz-header__card-inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ================= CONTACTS ================= */

.almaz-header__contacts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.almaz-header__contacts div {
	background: #F3F1F0;
	border: 2px solid #EDEAE8;
	border-radius: 8px;
	padding: 8px 16px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.almaz-header__contacts a {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #775441;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
}

.almaz-header__contacts i.fa {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #E6E1DF;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #775441;
	flex-shrink: 0;
}

/* ================= RATES + TICKER ================= */

.almaz-header__rates {
	display: flex;
	align-items: center;
	gap: 16px;
}

.almaz-header__currency {
	/*background: #F3F1F0;*/
	border: 2px solid #EDEAE8;
	border-radius: 8px;
	padding: 12px 16px;
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
	color: #775441;
	flex-shrink: 0;
}

.almaz-header__ticker-placeholder {
	flex: 1;
	height: 54px;
	/*background: #F3F1F0;*/
	border: 2px solid #EDEAE8;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	color: #775441;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	position: relative;
	overflow: hidden;
}

/* ================= IMAGE ================= */

.almaz-header__card-image {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.almaz-header__card-image img {
	max-height: 120px;
	display: block;
}

/* ================= MENU ================= */

.almaz-header__main {
	border-top: 1px solid #E3E3E3;
	padding: 1px 12px;
	/*background: transparent;*/
	background: #fff;
}

/* ================= TICKER ARROWS ================= */

.almaz-ticker-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 18px;
	color: #775441;
	cursor: pointer;
	user-select: none;
	opacity: 0;
	transition: opacity .2s ease;
}

.almaz-ticker-arrow.left { left: 8px; }
.almaz-ticker-arrow.right { right: 8px; }

.almaz-header__ticker-placeholder:hover .almaz-ticker-arrow {
	opacity: .6;
}

.almaz-ticker-arrow:hover {
	opacity: 1;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* ================= MOBILE ≤767 ================= */

@media (max-width: 767px) {

	.almaz-header__row {
		flex-direction: column;
		align-items: center;
	}

	.almaz-header__logo {
		width: 100%;
		justify-content: center;
		margin-bottom: 10px;
	}

	.almaz-header__card {
		margin: 0;
		width: 100%;
	}

	.almaz-header__card-image {
		display: none;
	}

	.almaz-header__contacts {
		grid-template-columns: 1fr;
	}

	.almaz-header__currency {
		width: 100%;
		text-align: center;
	}

	.almaz-header__ticker-placeholder {
		display: none;
	}
}

/* ================= 768–1024 ================= */

@media (min-width: 768px) and (max-width: 1024px) {

	.almaz-header__card-image {
		display: none;
	}

	.almaz-header__contacts {
		grid-template-columns: repeat(2, 1fr);
	}

	.almaz-header__contacts div:nth-child(3) {
		grid-column: 1 / -1;
	}

	.almaz-header__rates {
		flex-direction: column;
		align-items: stretch;
	}

	.almaz-header__ticker-placeholder {
		width: 100%;
	}
}

/* ================= 768–853  ================= */

@media (min-width: 768px) and (max-width: 853px) {

	.almaz-header__main .main-navigation {
		text-align: center;
	}

	.almaz-header__main .main-navigation > ul > li {
		margin-left: 2px;
		margin-right: 2px;
	}

	.almaz-header__main .main-navigation > ul > li > a {
		padding: 4px 5px;
		font-size: 12px;
		line-height: 1.1;
	}

	.almaz-header__currency {
		text-align: center;
	}
}

/* ================= 853–1024 ================= */

@media (min-width: 853px) and (max-width: 1024px) {

	.almaz-header__main .main-navigation {
		text-align: center;
	}

	.almaz-header__main .main-navigation > ul > li {
		margin-left: 4px;
		margin-right: 4px;
	}

	.almaz-header__main .main-navigation > ul > li > a {
		padding: 6px 8px;
		font-size: 14px;
		line-height: 1.2;
	}

	.almaz-header__currency {
		text-align: center;
	}
}

/* ================= 1024x600 FIX ================= */

@media (min-width: 1024px) and (max-height: 650px) {

	.almaz-header__main .main-navigation {
		text-align: center;
	}

	.almaz-header__currency {
		text-align: center;
	}
}



@media (min-width: 820px) and (max-width: 1024px) {
	.almaz-header__currency {
		display: none !important;
	}
}

@media (min-width: 1024px) and (max-height: 650px) {
	.almaz-header__currency {
		display: none !important;
	}
}


/* ===== HIDE CURRENCY FOR 768x1024 (iPad 768 width) ===== */
@media (width: 768px) and (height: 1024px) {
    .almaz-header__currency {
        display: none !important;
    }
}




/* =====================================================
   FIX: PREVENT CONTACTS OVERFLOW ON MOBILE
   ENTERPRISE SAFE FIX
   ===================================================== */

.almaz-header__contacts {
	width: 100%;
	min-width: 0;
}

.almaz-header__contacts div {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	overflow: hidden;
}

.almaz-header__contacts a {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;


	overflow: hidden;
	text-overflow: ellipsis;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.almaz-header__contacts a span,
.almaz-header__contacts a {
	min-width: 0;
	flex: 1 1 auto;
}

/* EXTRA HARD SAFETY FOR MOBILE */

@media (max-width: 767px) {

	.almaz-header__card,
	.almaz-header__card-inner {
		min-width: 0;
		width: 100%;
	}

	.almaz-header__contacts {
		grid-template-columns: 1fr;
		width: 100%;
	}
}




/* =====================================================
   FIX: CENTER CONTACT TEXT WITHOUT BREAKING FLEX
   ===================================================== */

.almaz-header__contacts div {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.almaz-header__contacts a {
	display: flex;
	align-items: center;
	justify-content: center; /* центрируем по горизонтали */
	text-align: center;
	width: 100%;
	min-width: 0;
}


.almaz-header__contacts a span {
	text-align: center;
	width: 100%;
}


/* =====================================================
   FIX: REMOVE TICKER ARTIFACT COMPLETELY ON MOBILE
   ===================================================== */

@media (max-width: 767px) {

	.almaz-header__rates {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.almaz-header__ticker-placeholder {
		display: none !important;
		width: 0 !important;
		min-width: 0 !important;
		max-width: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
		border: 0 !important;
		flex: 0 0 0 !important;
	}

	.almaz-header__currency {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}
}


/* =====================================================
   MOBILE TYPOGRAPHY SCALE FIX
   для узких экранов (≤380px)
   ===================================================== */

@media (max-width: 380px) {

	/* контакты */
	.almaz-header__contacts a {
		font-size: 14px;
		line-height: 1.25;
	}

	.almaz-header__contacts div {
		padding: 6px 10px;
	}

	.almaz-header__contacts i.fa {
		width: 26px;
		height: 26px;
		font-size: 13px;
	}

	/* курс валют */
	.almaz-header__currency {
		font-size: 14px;
		line-height: 1.25;
		padding: 10px 12px;
	}

}

/* EXTRA SMALL DEVICES (≤340px) */

@media (max-width: 340px) {

	.almaz-header__contacts a {
		font-size: 13px;
	}

	.almaz-header__currency {
		font-size: 13px;
	}

}

