/* =========================================================================
   METROPARK — шапка 2026 (desktop): верхняя полоса (статус, телефон, адрес | языки, соцсети)
   + основная строка (логотип | поиск). Меню — строкой ниже (menu.css).
   Старое правило `* { font-size:10px; color:#444 }` действует на каждый элемент —
   поэтому шрифт и цвет заданы явно.
   ========================================================================= */
#wrapper-header { padding-top: 0; background: #fff; width: auto !important; max-width: none !important; } /* было 1000px из responsive.css */
.mp-head, .mp-head * { box-sizing: border-box; font-family: "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif; }
.mp-head { position: relative; width: 100%; background: #fff; }

/* ---------- верхняя полоса ---------- */
.mp-topbar { background: linear-gradient(180deg, #f7f9fc, #f2f5f9); border-bottom: 1px solid #e6ebf2; }
.mp-topbar__in {
	max-width: 1240px; margin: 0 auto; padding: 6px 24px; min-height: 46px;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.mp-head__info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.mp-topbar__right { display: flex; align-items: center; gap: 12px; flex: none; }

.mp-status {
	display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px 0 11px; border-radius: 999px;
	background: #e9f8ef; border: 1px solid #cdeedb; white-space: nowrap; cursor: default;
}
.mp-status * { font-size: 13px; }
.mp-status__dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: mp-pulse 2.4s ease-out infinite; }
.mp-status__state { font-weight: 700; color: #15803d; }
.mp-status__time { color: #3f6b50; }
.mp-status.is-closed { background: #eef0f3; border-color: #e0e4e9; }
.mp-status.is-closed .mp-status__dot { background: #9aa3ae; animation: none; }
.mp-status.is-closed .mp-status__state { color: #4b5563; }
.mp-status.is-closed .mp-status__time { color: #6b7480; }

.mp-chip, .mp-chip:visited {
	display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
	background: transparent; border: 1px solid transparent; text-decoration: none; white-space: nowrap;
	transition: background .2s, border-color .2s, box-shadow .2s;
}
.mp-chip svg { width: 16px; height: 16px; flex: none; fill: #0f5ea8; }
.mp-chip span { font-size: 13px; font-weight: 600; color: #1f2937; transition: color .2s; }
.mp-chip:hover { background: #fff; border-color: #dbe5f0; box-shadow: 0 4px 12px rgba(15, 94, 168, .1); }
.mp-chip:hover span { color: #0f5ea8; }

.mp-lang { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid #e0e7f0; }
.mp-lang a, .mp-lang a:visited {
	display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 26px; padding: 0 8px;
	border-radius: 999px; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: #5b6470 !important;
	transition: background .2s, color .2s;
}
.mp-lang a:hover { color: #0f5ea8 !important; }
.mp-lang a.is-active { background: #0f5ea8; color: #fff !important; }

.mp-social { display: inline-flex; gap: 6px; }
.mp-social a {
	display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%;
	background: #fff; border: 1px solid #e0e7f0; transition: background .2s, transform .2s, border-color .2s;
}
.mp-social svg { width: 16px; height: 16px; fill: #5b6470; transition: fill .2s; }
.mp-social__fb:hover { background: #1877f2; border-color: #1877f2; transform: translateY(-1px); }
.mp-social__ig:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); border-color: transparent; transform: translateY(-1px); }
.mp-social a:hover svg { fill: #fff; }

/* зелёный человечек: идёт от открытия к закрытию (как в старой шапке); виден только когда открыто */
.mp-track { display: none; align-items: center; gap: 7px; margin-left: 4px; padding-left: 10px; border-left: 1px solid #cdeedb; }
.mp-status.is-open .mp-track { display: inline-flex; }
.mp-status.is-open:has(.mp-track) .mp-status__time { display: none; }               /* вместо «до 22:00» — линия 10:00 ── 22:00 */
.mp-track__t { font-size: 12px !important; font-weight: 600; color: #3f6b50; font-variant-numeric: tabular-nums; }
.mp-track__line { position: relative; width: 110px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #16a34a var(--p), #cfe6d8 var(--p)); }
.mp-runner { position: absolute; left: var(--p); bottom: -3px; width: 18px; height: 18px; margin-left: -9px; transition: left 1s ease; }
.mp-runner svg:not(.mp-gift) { width: 18px; height: 18px; fill: #16a34a; display: block; animation: mp-run .55s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.mp-track.is-soon .mp-track__line { background: linear-gradient(90deg, #f59e0b var(--p), #f3e2c3 var(--p)); }
.mp-track.is-soon .mp-runner svg:not(.mp-gift) { fill: #f59e0b; }
/* подарок в руке перед человечком: красная коробка с бантом */
.mp-runner svg.mp-gift {
	position: absolute; left: 14px; bottom: 3px; width: 11px; height: 11px; overflow: visible;
	animation: mp-swing .55s ease-in-out infinite alternate; transform-origin: 50% 20%;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18));
}
.mp-gift__box { fill: #e21a20; }
.mp-gift__lid { fill: #c4141a; }
.mp-gift__ribbon, .mp-gift__bow { fill: #fbbf24; }
.mp-gift__shine { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: .8; stroke-linecap: round; }
@keyframes mp-swing { from { transform: rotate(-8deg); } to { transform: rotate(7deg) translateY(-1px); } }
.mp-status.is-open:has(.mp-track.is-soon) { background: #fff7e8; border-color: #f6dfb3; }
.mp-status.is-open:has(.mp-track.is-soon) .mp-status__state { color: #b45309; }
.mp-status.is-open:has(.mp-track.is-soon) .mp-status__dot { background: #f59e0b; animation: none; }
@keyframes mp-run { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-2px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .mp-runner svg, .mp-runner svg.mp-gift { animation: none; } .mp-runner { transition: none; } }
@media (max-width: 809px) { .mp-track__line { width: 70px; } }

/* ---------- основная строка ---------- */
.mp-head__in {
	max-width: 1240px; margin: 0 auto; padding: 16px 24px;
	display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.mp-head__logo { display: block; line-height: 0; flex: none; transition: opacity .2s; }
.mp-head__logo img { width: clamp(240px, 24vw, 340px); height: auto; max-width: none; }
.mp-head__logo:hover { opacity: .88; }

.mp-search {
	position: relative; display: flex; align-items: center; height: 46px; width: min(440px, 100%);
	border-radius: 999px; background: #f5f8fc; border: 1px solid #e0e7f0;
	transition: width .3s cubic-bezier(.22, .61, .36, 1), border-color .2s, box-shadow .2s, background .2s;
}
.mp-search:hover { border-color: #c9d7e6; }
.mp-search:focus-within { width: min(520px, 100%); background: #fff; border-color: #2b8de0; box-shadow: 0 0 0 4px rgba(43, 141, 224, .15); }
.mp-search svg { position: absolute; left: 16px; width: 19px; height: 19px; fill: #7b8794; pointer-events: none; transition: fill .2s; }
.mp-search:focus-within svg { fill: #0f5ea8; }
.mp-search input {
	width: 100%; height: 100%; padding: 0 98px 0 46px; border: 0; background: transparent; outline: none;
	font-size: 15px; color: #1f2937; -webkit-appearance: none; appearance: none;
}
.mp-search input::placeholder { color: #8b95a1; font-size: 14.5px; }
.mp-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.mp-search__btn {
	position: absolute; right: 5px; height: 36px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
	background: #0f5ea8; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .03em;
	transition: background .2s, transform .2s;
}
.mp-search__btn:hover { background: #0b4c8a; }
.mp-search__btn:active { transform: scale(.97); }

.mp-head a:focus-visible, .mp-head button:focus-visible { outline: 2px solid #2b8de0; outline-offset: 2px; }
.mp-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes mp-pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); } 70% { box-shadow: 0 0 0 7px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
	.mp-topbar__in { flex-wrap: wrap; justify-content: center; }
	.mp-head__info { justify-content: center; }
}
@media (max-width: 809px) {
	.mp-topbar__in, .mp-head__in { padding-left: 16px; padding-right: 16px; }
	.mp-head__in { flex-direction: column; gap: 12px; }
	.mp-head__logo img { width: min(300px, 80vw); }
	.mp-search, .mp-search:focus-within { width: 100%; }
	.mp-chip--addr span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mp-status__dot { animation: none; } .mp-search { transition: none; } }
