/* =========================================================
   HEADER & MEGA-MENU
   Стилізовано у фірмовій палітрі: фіолетовий фон шапки,
   помаранчеві акценти на кнопці "Акції", біле лого.
   Мега-меню розкривається з лівого боку, має 4 колонки.
   ========================================================= */

.hc-skip-link,
.hc-skip-link:focus {
	display: none;
}

/* ============ HEADER BAR ============ */
.hc-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--hc-purple);
	color: var(--hc-white);
	box-shadow: 0 2px 16px rgba(45, 24, 69, 0.10);
}

.hc-header__bar {
	background: linear-gradient(180deg, var(--hc-purple) 0%, var(--hc-purple-dark) 100%);
}

.hc-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(1rem, 3vw, 3rem);
	min-height: 76px;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.hc-header__left {
	display: flex;
	align-items: center;
	gap: var(--hc-space-4);
}

/* ===== Бургер ===== */
.hc-burger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	border-radius: var(--hc-radius);
	color: var(--hc-white);
	transition: background var(--hc-duration);
}
.hc-burger:hover { background: rgba(255, 255, 255, 0.10); }
.hc-burger span {
	display: block;
	width: 24px;
	height: 2.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform 0.3s var(--hc-ease), opacity 0.3s;
}
.hc-burger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.hc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hc-burger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* ===== Лого ===== */
.hc-logo {
	display: inline-flex;
	align-items: center;
	color: var(--hc-white);
	text-decoration: none;
	transition: transform var(--hc-duration);
}
.hc-logo:hover { transform: scale(1.03); color: var(--hc-white); }

.hc-logo__img {
	display: block;
	height: 41px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
}

@media (min-width: 768px) {
	.hc-logo__img {
		height: 48px;
		width: auto;
	}
}

.hc-logo__text {
	font-family: var(--hc-font-display);
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--hc-orange);
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	white-space: nowrap;
}

.hc-logo__one {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: var(--hc-yellow);
	color: var(--hc-purple-dark);
	border-radius: var(--hc-radius-full);
	font-weight: 800;
	font-size: 1.1em;
	box-shadow: 0 2px 8px rgba(255, 210, 0, 0.40);
}

/* ===== Центральна навігація ===== */
.hc-header__nav {
	display: flex;
	gap: 0.375rem;
	justify-content: center;
	flex-wrap: wrap;
}

.hc-header__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1.125rem;
	font-family: var(--hc-font-display);
	font-size: var(--hc-text-sm);
	font-weight: 500;
	color: rgba(255, 255, 255, 0.92);
	border-radius: var(--hc-radius-full);
	transition: all var(--hc-duration) var(--hc-ease);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.hc-header__link:hover {
	background: rgba(255, 255, 255, 0.10);
	color: var(--hc-white);
}
.hc-header__link svg { opacity: 0.85; transition: opacity var(--hc-duration); }
.hc-header__link:hover svg { opacity: 1; }

.hc-header__link--accent {
	background: var(--hc-orange);
	color: var(--hc-white);
	font-weight: 600;
	box-shadow: 0 4px 14px rgba(242, 101, 34, 0.40);
}
.hc-header__link--accent:hover {
	background: var(--hc-orange-light);
	color: var(--hc-white);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(242, 101, 34, 0.50);
}

/* ===== Гаряча лінія праворуч ===== */
.hc-header__right { display: flex; }

.hc-hotline {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.875rem;
	border-radius: var(--hc-radius-full);
	color: var(--hc-white);
	text-decoration: none;
}
.hc-hotline:hover { background: rgba(255, 255, 255, 0.10); color: var(--hc-white); }

.hc-hotline__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	background: var(--hc-orange);
	border-radius: var(--hc-radius-full);
	flex-shrink: 0;
}

.hc-hotline__text { display: flex; flex-direction: column; line-height: 1.15; }
.hc-hotline__label { font-size: 0.7rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; }
.hc-hotline__number { display: block; }

/* ============ MEGA MENU ============ */
.hc-mega {
	position: fixed;
	inset: 0;
	z-index: var(--hc-z-mega);
}
.hc-mega[hidden] { display: none; }

.hc-mega__overlay {
	position: absolute;
	inset: 0;
	background: rgba(26, 20, 40, 0.6);
	backdrop-filter: blur(4px);
	animation: hcFadeIn 0.3s var(--hc-ease);
}

.hc-mega__panel {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: var(--hc-purple-dark);
	color: var(--hc-white);
	padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
	border-bottom-left-radius: var(--hc-radius-xl);
	border-bottom-right-radius: var(--hc-radius-xl);
	animation: hcSlideDown 0.4s var(--hc-ease);
	max-height: calc(100vh - 0px);
	overflow-y: auto;
}

@keyframes hcSlideDown {
	from { transform: translateY(-100%); }
	to { transform: translateY(0); }
}
@keyframes hcFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.hc-mega__close {
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--hc-white);
	border-radius: var(--hc-radius-full);
	transition: background var(--hc-duration);
}
.hc-mega__close:hover { background: rgba(255, 255, 255, 0.12); }

.hc-mega__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: clamp(1.5rem, 3vw, 3rem);
	max-width: var(--hc-container-wide);
	margin: 0 auto;
	padding-top: 2rem;
}

.hc-mega__col {
	display: flex;
	flex-direction: column;
	gap: var(--hc-space-3);
}

.hc-mega__title {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--hc-font-display);
	font-size: var(--hc-text-sm);
	font-weight: 600;
	color: var(--hc-orange);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: var(--hc-space-2);
	padding-bottom: var(--hc-space-3);
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.hc-mega__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--hc-space-2);
}

.hc-mega__list a {
	display: inline-block;
	padding: 0.4rem 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: var(--hc-text-base);
	font-weight: 400;
	transition: color var(--hc-duration), padding-left var(--hc-duration);
}
.hc-mega__list a:hover {
	color: var(--hc-white);
	padding-left: 0.4rem;
}

/* ===== Контактна колонка в мега-меню (тільки соцмережі) ===== */
.hc-mega__col--contacts { gap: var(--hc-space-3); justify-content: flex-start; }

.hc-mega__socials {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hc-space-2);
}

.hc-mega__social {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.06);
	color: var(--hc-white);
	border-radius: var(--hc-radius-full);
	transition: all var(--hc-duration);
}
.hc-mega__social:hover {
	background: var(--hc-orange);
	color: var(--hc-white);
	transform: translateY(-3px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
	.hc-header__nav { gap: 0.25rem; }
	.hc-header__link { padding: 0.5rem 0.75rem; font-size: var(--hc-text-xs); }
	.hc-hotline__text { display: none; }
	.hc-mega__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.hc-header__inner { grid-template-columns: auto 1fr auto; min-height: 64px; }
	.hc-header__nav { display: none; }
	.hc-logo__text { font-size: 1.1rem; }
	.hc-logo__one { width: 30px; height: 30px; }
	.hc-mega__grid { grid-template-columns: 1fr; gap: 2rem; }
	.hc-mega__panel { padding: 1.5rem; }
	.hc-mega__close { top: 1rem; right: 1rem; }
}

@media (max-width: 480px) {
	.hc-hotline { padding: 0.5rem; }
	.hc-hotline__text { display: none; }
}
