/* Header — floating glass capsule */

.header {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 200;
	padding: clamp(1rem, 2.5vw, 1.5rem) var(--rbz-gutter);
	background: transparent;
	pointer-events: none;
}

.header__wrap {
	width: 100%;
	max-width: var(--rbz-container);
	margin: 0 auto;
	pointer-events: none;
}

.header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: calc(0.625rem + 7.5px) 0.75rem calc(0.625rem + 7.5px) 1.25rem;
	min-height: calc(3.375rem + 15px);
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.6);
	backdrop-filter: blur(22px) saturate(1.7);
	-webkit-backdrop-filter: blur(22px) saturate(1.7);
	box-shadow: none;
	pointer-events: auto;
	transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.header--scrolled .header__bar {
	background: rgba(255, 255, 255, 0.82);
	border-color: rgba(15, 23, 42, 0.08);
	box-shadow: 0 12px 34px -20px rgba(15, 23, 42, 0.22);
}

/* Brand */

.header__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
	color: #1a2332;
	text-decoration: none;
	transition: opacity 0.25s ease;
}

.header__brand:hover {
	opacity: 0.82;
}

.header__brand-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 13px;
	border: 1px solid rgba(63, 154, 68, 0.14);
	background: linear-gradient(135deg, rgba(63, 154, 68, 0.16), rgba(92, 184, 92, 0.05));
	transition: background 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.header__brand:hover .header__brand-mark {
	background: linear-gradient(135deg, rgba(63, 154, 68, 0.26), rgba(92, 184, 92, 0.1));
	border-color: rgba(63, 154, 68, 0.24);
	transform: scale(1.05) rotate(-4deg);
}

.header__logo {
	width: auto;
	max-height: 24px;
}

.header__brand-icon {
	font-size: 1.125rem;
	color: #3f9a44;
}

.header__brand-name {
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

/* Hamburger toggle */

.header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(63, 154, 68, 0.14);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	color: #1a2332;
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.header__toggle:hover {
	background: rgba(63, 154, 68, 0.08);
	border-color: rgba(63, 154, 68, 0.22);
}

.header__toggle-lines {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 18px;
	height: 18px;
}

.header__toggle-line {
	display: block;
	width: 18px;
	height: 1.5px;
	border-radius: 1px;
	background: currentColor;
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, width 0.32s ease;
	transform-origin: center;
}

.header--open .header__toggle-line:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
	width: 20px;
}

.header--open .header__toggle-line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.header--open .header__toggle-line:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
	width: 20px;
}

/* Panel — desktop inline / mobile drawer */

.header__panel {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	gap: 1rem;
}

.header__backdrop {
	display: none;
}

/* Nav */

.header__nav {
	flex: 1;
	display: flex;
	justify-content: center;
	min-width: 0;
}

.header__menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	list-style: none;
}

.header__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: calc(0.5rem + 3px) 0.9375rem;
	border-radius: 999px;
	color: #5b6675;
	font-size: 0.8125rem;
	font-weight: 500;
	text-decoration: none;
	letter-spacing: 0.01em;
	transition: color 0.25s ease, background 0.25s ease;
}

.header__link:hover {
	color: #2f7a34;
	background: rgba(63, 154, 68, 0.06);
}

.header__link--active {
	color: #2f7a34;
	font-weight: 700;
}

.header__link--active .header__link-text {
	position: relative;
}

.header__link--active .header__link-text::after {
	content: '';
	position: absolute;
	bottom: -7px;
	left: 50%;
	transform: translateX(-50%);
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #3f9a44;
	box-shadow: 0 0 0 3px rgba(63, 154, 68, 0.14);
}

/* Tools */

.header__tools {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	flex-shrink: 0;
	padding: 0.25rem;
	border-radius: 999px;
	background: transparent;
}

.header__tool {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	width: 2.375rem;
	height: 2.375rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #64748b;
	font-family: inherit;
	font-size: 0.75rem;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.header__tool:hover {
	color: #2f7a34;
	background: rgba(63, 154, 68, 0.1);
	transform: translateY(-2px);
}

.header__tool--lang {
	width: 2.375rem;
	height: 2.375rem;
	padding: 0;
	border-radius: 50%;
}

.header__tool-icon {
	font-size: 1.0625rem;
}

.header__tool--theme {
	width: 2.375rem;
	height: 2.375rem;
}

.header__theme-icon {
	position: absolute;
	font-size: 1.0625rem;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.header__theme-icon--moon {
	opacity: 0;
	transform: rotate(-25deg) scale(0.8);
}

html.rbz-dark .header__theme-icon--sun {
	opacity: 0;
	transform: rotate(25deg) scale(0.8);
}

html.rbz-dark .header__theme-icon--moon {
	opacity: 1;
	transform: rotate(0) scale(1);
}

.header__cart-badge--empty {
	display: none;
}

.header__cart-badge {
	position: absolute;
	top: 2px;
	inset-inline-start: 2px;
	min-width: 15px;
	height: 15px;
	padding: 0 3px;
	border-radius: 999px;
	background: #3f9a44;
	color: #ffffff;
	font-size: 0.5625rem;
	font-weight: 700;
	line-height: 15px;
	text-align: center;
}

/* Drawer-only elements (hidden on desktop) */

.header__drawer-head,
.header__drawer-actions,
.header__link-icon {
	display: none;
}

/* Dark mode */

html.rbz-dark .header__bar {
	background: rgba(15, 20, 16, 0.72);
	border-color: rgba(63, 154, 68, 0.18);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

html.rbz-dark .header--scrolled .header__bar {
	background: rgba(15, 20, 16, 0.92);
}

html.rbz-dark .header__brand {
	color: #e2e8f0;
}

html.rbz-dark .header__brand-mark {
	background: rgba(63, 154, 68, 0.15);
}

html.rbz-dark .header__link {
	color: #94a3b8;
}

html.rbz-dark .header__link:hover,
html.rbz-dark .header__link--active {
	color: #5cb85c;
	background: rgba(63, 154, 68, 0.12);
}

html.rbz-dark .header__tools {
	background: rgba(255, 255, 255, 0.04);
}

html.rbz-dark .header__tool {
	color: #94a3b8;
}

html.rbz-dark .header__tool:hover {
	color: #5cb85c;
	background: rgba(63, 154, 68, 0.12);
}

html.rbz-dark body {
	background-color: #0f1410;
	color: #e2e8f0;
}

html.rbz-dark .rbz-section {
	background: #0f1410;
}

html.rbz-dark .about__slide-frame,
html.rbz-dark .products__card,
html.rbz-dark .guide__item,
html.rbz-dark .faq__item,
html.rbz-dark .cta__card,
html.rbz-dark .cta__panel,
html.rbz-dark .hero__strip,
html.rbz-dark .hero__frame,
html.rbz-dark .hero__media-frame {
	background: rgba(20, 28, 22, 0.78);
	border-color: rgba(63, 154, 68, 0.15);
}

html.rbz-dark .about__title,
html.rbz-dark .products__title,
html.rbz-dark .process__title,
html.rbz-dark .guide__title,
html.rbz-dark .faq__title,
html.rbz-dark .cta__title,
html.rbz-dark .hero__title-row,
html.rbz-dark .hero__title-text,
html.rbz-dark .hero__title-line,
html.rbz-dark .hero__strip-title,
html.rbz-dark .hero__feature-title {
	color: #e2e8f0;
}

html.rbz-dark .about__text,
html.rbz-dark .products__desc,
html.rbz-dark .hero__desc,
html.rbz-dark .hero__highlight {
	color: #94a3b8;
}

/* Header entrance animation */

.header__brand,
.header__toggle {
	opacity: 0;
	transform: translateY(-14px);
}

.header--ready .header__brand {
	animation: header-fade-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.08s;
}

.header--ready .header__toggle {
	animation: header-fade-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.18s;
}

@media (min-width: 1024px) {
	.header__panel {
		opacity: 0;
		transform: translateY(-14px);
	}

	.header--ready .header__panel {
		animation: header-fade-in 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.22s;
	}
}

@keyframes header-fade-in {
	from {
		opacity: 0;
		transform: translateY(-14px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.header__brand,
	.header__toggle,
	.header--ready .header__brand,
	.header--ready .header__toggle {
		opacity: 1;
		transform: none;
		animation: none;
	}

	@media (min-width: 1024px) {
		.header__panel,
		.header--ready .header__panel {
			opacity: 1;
			transform: none;
			animation: none;
		}
	}
}

.header--open {
	pointer-events: auto;
}

/* —— Responsive: mobile & tablet drawer —— */

@media (max-width: 1023px) {
	.header {
		--header-drawer-top: calc(clamp(0.875rem, 2.5vw, 1.5rem) + 3.25rem + 0.375rem);
	}

	.header__wrap {
		position: relative;
		z-index: 320;
		pointer-events: auto;
	}

	.header__toggle {
		display: inline-flex;
	}

	.header__drawer-head,
	.header__drawer-actions,
	.header__link-icon {
		display: block;
	}

	.header__link-icon {
		display: flex;
	}

	.header:not(.header--open) .header__panel {
		display: none !important;
	}

	.header__panel {
		position: fixed;
		inset-block: 0;
		inset-inline-start: 0;
		inset-inline-end: auto;
		z-index: 300;
		flex-direction: column;
		width: min(19rem, 86vw);
		padding: 0;
		border: 0;
		border-inline-end: 1px solid rgba(15, 23, 42, 0.08);
		border-start-end-radius: 1.25rem;
		border-end-end-radius: 1.25rem;
		background: rgba(255, 255, 255, 0.97);
		backdrop-filter: blur(20px) saturate(1.4);
		-webkit-backdrop-filter: blur(20px) saturate(1.4);
		box-shadow: 8px 0 32px rgba(15, 23, 42, 0.08);
		overflow: hidden;
		opacity: 1;
		pointer-events: none;
		transform: none;
		animation: none !important;
	}

	[dir="rtl"] .header__panel {
		inset-inline-start: auto;
		inset-inline-end: 0;
	}

	.header--open .header__panel {
		display: flex;
		pointer-events: auto;
	}

	.header__panel-body {
		display: flex;
		flex-direction: column;
		height: 100%;
		padding:
			calc(var(--header-drawer-top) + env(safe-area-inset-top, 0px))
			1rem
			calc(1rem + env(safe-area-inset-bottom, 0px));
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
	}

	.header__drawer-head {
		margin-bottom: 1.25rem;
		padding-bottom: 1rem;
		border-bottom: 1px solid rgba(15, 23, 42, 0.06);
	}

	.header__drawer-title {
		color: #1a2332;
		font-size: 0.9375rem;
		font-weight: 700;
		line-height: 1.4;
		letter-spacing: -0.01em;
	}

	.header__drawer-tagline {
		margin-top: 0.25rem;
		color: #94a3b8;
		font-size: 0.75rem;
		line-height: 1.5;
	}

	.header__backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 290;
		background: rgba(15, 23, 42, 0.4);
		backdrop-filter: blur(3px);
		-webkit-backdrop-filter: blur(3px);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.header--open .header__backdrop {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.header__nav {
		flex: 1;
		width: 100%;
		min-height: 0;
	}

	.header__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0.125rem;
		width: 100%;
	}

	.header__menu-item {
		width: 100%;
	}

	.header__link {
		display: flex;
		align-items: center;
		gap: 0.75rem;
		width: 100%;
		padding: 0.75rem 0.625rem;
		border: 0;
		border-radius: 10px;
		background: transparent;
		color: #475569;
		font-size: 0.9375rem;
		font-weight: 500;
		text-align: start;
		transition: color 0.2s ease, background 0.2s ease;
	}

	.header__link-icon {
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		width: 2rem;
		height: 2rem;
		border-radius: 8px;
		background: rgba(63, 154, 68, 0.07);
		color: #3f9a44;
		font-size: 0.9375rem;
		transition: background 0.2s ease;
	}

	.header__link-text {
		flex: 1;
		min-width: 0;
	}

	.header__link:hover {
		color: #2f7a34;
		background: rgba(63, 154, 68, 0.05);
		transform: none;
		box-shadow: none;
	}

	.header__link:hover .header__link-icon {
		background: rgba(63, 154, 68, 0.12);
		transform: none;
	}

	.header__link--active .header__link-text::after {
		display: none;
	}

	.header__link--active {
		color: #2f7a34;
		font-weight: 600;
		background: rgba(63, 154, 68, 0.08);
		box-shadow: none;
	}

	.header__link--active::before {
		display: none;
	}

	.header__link--active .header__link-icon {
		background: rgba(63, 154, 68, 0.14);
	}

	.header__drawer-actions {
		margin-top: auto;
		padding-top: 1rem;
		border-top: 1px solid rgba(15, 23, 42, 0.06);
	}

	.header__tools {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.375rem;
		width: 100%;
		margin-bottom: 0;
		padding: 0;
		border-radius: 0;
		background: transparent;
	}

	.header__tool {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: 0 0 auto;
		width: 2.625rem;
		height: 2.625rem;
		min-height: 0;
		max-width: none;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: rgba(15, 23, 42, 0.04);
		color: #64748b;
		transition: color 0.2s ease, background 0.2s ease;
	}

	.header__tool-icon,
	.header__tool--theme .header__theme-icon {
		position: static;
		font-size: 1rem;
		transform: none;
	}

	.header__tool:hover {
		color: #2f7a34;
		background: rgba(63, 154, 68, 0.1);
		transform: none;
		box-shadow: none;
	}

	.header__tool--lang,
	.header__tool--theme {
		width: 2.625rem;
		height: 2.625rem;
	}

	.header__tool--theme .header__theme-icon {
		position: absolute;
	}

	html.rbz-dark .header__tool--theme .header__theme-icon--sun {
		transform: rotate(25deg) scale(0.8);
	}

	html.rbz-dark .header__tool--theme .header__theme-icon--moon {
		transform: rotate(0) scale(1);
	}

	html.rbz-dark .header__panel {
		background: rgba(15, 20, 16, 0.97);
		border-color: rgba(63, 154, 68, 0.12);
		box-shadow: 8px 0 32px rgba(0, 0, 0, 0.25);
	}

	html.rbz-dark .header__drawer-head {
		border-color: rgba(255, 255, 255, 0.06);
	}

	html.rbz-dark .header__drawer-title {
		color: #e2e8f0;
	}

	html.rbz-dark .header__drawer-tagline {
		color: #64748b;
	}

	html.rbz-dark .header__drawer-actions {
		border-color: rgba(255, 255, 255, 0.06);
	}

	html.rbz-dark .header__toggle {
		background: rgba(255, 255, 255, 0.06);
		border-color: rgba(63, 154, 68, 0.2);
		color: #e2e8f0;
	}

	html.rbz-dark .header__link {
		color: #94a3b8;
	}

	html.rbz-dark .header__link:hover,
	html.rbz-dark .header__link--active {
		color: #5cb85c;
		background: rgba(63, 154, 68, 0.1);
	}

	html.rbz-dark .header__tool {
		background: rgba(255, 255, 255, 0.05);
		color: #94a3b8;
	}

	html.rbz-dark .header__tool:hover {
		color: #5cb85c;
		background: rgba(63, 154, 68, 0.12);
	}
}

@media (max-width: 767px) {
	.header {
		padding-top: 0.875rem;
		padding-bottom: 0.875rem;
	}

	.header__bar {
		padding: 0.5rem 0.625rem 0.5rem 0.875rem;
		min-height: 3.25rem;
		border-radius: 20px;
	}

	.header__brand-name {
		font-size: 0.75rem;
		max-width: 9.5rem;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

@media (max-width: 479px) {
	.header__brand-text {
		display: none;
	}

	.header__brand-mark {
		width: 2.375rem;
		height: 2.375rem;
	}

	.header__toggle {
		width: 2.5rem;
		height: 2.5rem;
	}
}

@media (min-width: 1024px) {
	.header__wrap {
		display: flex;
		align-items: center;
		gap: 1.25rem;
		padding: calc(0.625rem + 7.5px) 0.75rem calc(0.625rem + 7.5px) 1.25rem;
		min-height: calc(3.375rem + 15px);
		border: 1px solid rgba(15, 23, 42, 0.06);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.6);
		backdrop-filter: blur(22px) saturate(1.7);
		-webkit-backdrop-filter: blur(22px) saturate(1.7);
		box-shadow: none;
		pointer-events: auto;
		transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
	}

	.header--scrolled .header__wrap {
		background: rgba(255, 255, 255, 0.82);
		border-color: rgba(15, 23, 42, 0.08);
		box-shadow: 0 12px 34px -20px rgba(15, 23, 42, 0.22);
	}

	.header__bar {
		flex-shrink: 0;
		padding: 0;
		min-height: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.header__panel {
		position: static;
		display: flex;
		flex: 1;
		align-items: center;
		min-width: 0;
		width: auto;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		overflow: visible;
		visibility: visible;
		pointer-events: auto;
		transform: none;
	}

	.header__panel-body {
		display: flex;
		flex: 1;
		align-items: center;
		justify-content: space-between;
		min-width: 0;
		width: 100%;
		padding: 0;
		overflow: visible;
	}

	.header__drawer-head,
	.header__drawer-actions,
	.header__link-icon {
		display: none;
	}

	.header__drawer-actions {
		display: contents;
	}

	.header__nav {
		order: 1;
		flex: 1;
	}

	.header__tools {
		order: 2;
		display: flex;
		flex-direction: row;
		align-items: center;
		flex-shrink: 0;
		gap: 0.25rem;
		margin-bottom: 0;
		padding: 0.25rem;
		border-radius: 999px;
		background: transparent;
	}

	.header__tool {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: none;
		max-width: none;
		width: 2.375rem;
		height: 2.375rem;
		min-height: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: transparent;
	}

	.header__link {
		display: inline-flex;
		align-items: center;
		width: auto;
		padding: calc(0.5rem + 3px) 0.9375rem;
		border: 0;
		background: transparent;
	}

	html.rbz-dark .header__wrap {
		background: rgba(15, 20, 16, 0.72);
		border-color: rgba(63, 154, 68, 0.18);
		box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
	}

	html.rbz-dark .header--scrolled .header__wrap {
		background: rgba(15, 20, 16, 0.92);
	}
}

body.rbz-menu-open {
	overflow: hidden;
}

body.rbz-menu-open .support-fab {
	z-index: 280;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.header__panel,
	.header__backdrop,
	.header__toggle-line {
		transition: none;
	}
}

/* Dark mode — page & hero transparency */

html.rbz-dark {
	background-color: #0f1410;
}

html.rbz-dark .rbz {
	background-color: transparent;
}

html.rbz-dark .rbz__hero-area {
	background: transparent;
}

html.rbz-dark .rbz__main {
	background: transparent;
}

html.rbz-dark .hero {
	background: transparent;
}

html.rbz-dark .hero__badge,
html.rbz-dark .hero__chip,
html.rbz-dark .hero__btn--ghost {
	background: rgba(20, 28, 22, 0.72);
	border-color: rgba(63, 154, 68, 0.18);
	color: #94a3b8;
}

html.rbz-dark .hero__badge {
	color: #94a3b8;
}

html.rbz-dark .hero__title-line {
	color: #e2e8f0;
}

html.rbz-dark .hero__title-line--accent,
html.rbz-dark .hero__title-text--accent {
	color: #5cb85c;
}

html.rbz-dark .hero__note {
	color: #64748b;
}

html.rbz-dark .hero__aura--1 {
	background: rgba(63, 154, 68, 0.04);
}

html.rbz-dark .hero__aura--2 {
	background: rgba(92, 184, 92, 0.03);
}
