/**
 * Site header (блок 01): топ-бар, основная полоса, бургер-меню.
 */

.reb-header {
	position: relative;
	z-index: 100;
	background: #fff;
}

/* Топ-бар. */
.reb-topbar {
	background: var(--reb-plate);
	color: #EAF6EE;
	font-size: 14px;
}

.reb-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 78px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.reb-topbar__contacts {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.reb-topbar__address {
	font-weight: 600;
}

.reb-topbar__hours {
	color: #B4DCC5;
}

.reb-topbar__right {
	display: flex;
	align-items: center;
	gap: 26px;
}

.reb-topbar__mail {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 1px;
}

.reb-topbar__mail-link {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #fff;
}

.reb-topbar__mail-link:hover {
	color: #EAF6EE;
}

.reb-topbar__mail-note {
	font-size: 12px;
	color: #B4DCC5;
}

.reb-socials {
	display: flex;
	align-items: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.reb-socials__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: var(--reb-social-color, var(--reb-accent));
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -0.01em;
	transition: transform 0.2s, opacity 0.2s;
}

.reb-socials__link:hover {
	color: #fff;
	opacity: 0.85;
	transform: translateY(-2px);
}

/* Основная полоса. */
.reb-header__main {
	background: #fff;
	border-bottom: 1px solid var(--reb-border);
	transition: box-shadow 0.2s;
}

.reb-header__main-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	min-height: 88px;
	transition: min-height 0.2s;
}

.reb-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
	color: var(--reb-text);
}

.reb-logo:hover {
	color: var(--reb-text);
}

.reb-logo__mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: var(--reb-accent);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
}

.reb-logo__name {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.01em;
	line-height: 1.1;
}

.reb-logo__tag {
	font-size: 11px;
	color: var(--reb-text-faint);
	letter-spacing: 0.04em;
	white-space: nowrap;
}

/* Меню. */
.reb-nav {
	margin-left: 8px;
}

.reb-nav__list {
	display: flex;
	align-items: center;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.reb-nav__list a {
	font-size: 15px;
	font-weight: 500;
	color: var(--reb-text);
}

.reb-nav__list a:hover,
.reb-nav__list .current-menu-item > a {
	color: var(--reb-accent);
}

/* Контакты и CTA справа. */
.reb-header__cta {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-left: auto;
}

.reb-header__phone {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.reb-header__phone-link {
	font-size: 17px;
	font-weight: 700;
	color: var(--reb-text);
}

.reb-header__phone-link:hover {
	color: var(--reb-accent);
}

.reb-header__callback {
	font-size: 12px;
	color: var(--reb-accent);
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.reb-header__callback:hover {
	color: var(--reb-accent-dark);
	text-decoration: underline;
}

/* Бургер. */
.reb-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: 1px solid var(--reb-border);
	cursor: pointer;
}

.reb-burger__line {
	display: block;
	height: 2px;
	background: var(--reb-text);
	transition: transform 0.2s, opacity 0.2s;
}

.reb-header--nav-open .reb-burger__line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.reb-header--nav-open .reb-burger__line:nth-child(2) {
	opacity: 0;
}

.reb-header--nav-open .reb-burger__line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Sticky: шапка прилипает и сжимается при скролле. */
.reb-header--sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

.reb-header--sticky .reb-topbar {
	display: none;
}

.reb-header--sticky .reb-header__main {
	box-shadow: 0 8px 24px rgba(16, 42, 29, 0.12);
}

.reb-header--sticky .reb-header__main-inner {
	min-height: 64px;
}

/* Мобильное меню. */
.reb-mobilenav {
	display: none;
	border-top: 1px solid var(--reb-border);
	background: #fff;
}

.reb-header--nav-open .reb-mobilenav {
	display: block;
}

.reb-mobilenav__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding-top: 24px;
	padding-bottom: 28px;
}

.reb-mobilenav__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.reb-mobilenav__list a {
	display: block;
	padding: 10px 0;
	font-size: 17px;
	font-weight: 600;
	color: var(--reb-text);
	border-bottom: 1px solid var(--reb-border);
}

.reb-mobilenav__list a:hover {
	color: var(--reb-accent);
}

.reb-mobilenav__contacts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.reb-mobilenav__phone {
	font-size: 22px;
	font-weight: 800;
	color: var(--reb-text);
}

.reb-mobilenav__mail {
	font-size: 15px;
	font-weight: 600;
}

.reb-nav-lock {
	overflow: hidden;
}

/* Адаптив. */
@media (max-width: 1280px) {
	.reb-topbar__mail-note {
		display: none;
	}
}

@media (max-width: 1100px) {
	.reb-topbar {
		display: none;
	}

	.reb-nav {
		display: none;
	}

	.reb-burger {
		display: flex;
	}
}

@media (max-width: 768px) {
	.reb-header__main-inner {
		min-height: 64px;
		gap: 16px;
	}

	.reb-header__phone {
		display: none;
	}

	.reb-header__cta {
		gap: 12px;
	}

	.reb-header__cta .reb-btn {
		padding: 11px 16px;
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.reb-logo__tag {
		display: none;
	}

	.reb-header__cta .reb-btn {
		display: none;
	}
}
