/* Header */
.fitoo-header {
	position: sticky;
	top: 0;
	z-index: var(--z-header);
	background: var(--color-header);
	box-shadow: var(--shadow-header);
}

.fitoo-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: var(--header-height);
}

@media (max-width: 899px) {
	.fitoo-header__inner {
		min-height: var(--header-height-mobile);
	}
}

.fitoo-header__logo img,
.fitoo-header__logo-img {
	max-height: 48px;
	width: auto;
}

@media (max-width: 899px) {
	.fitoo-header__logo img {
		max-height: 36px;
	}
}

.fitoo-header__nav {
	display: none;
}

@media (min-width: 900px) {
	.fitoo-header__nav {
		display: block;
		flex: 1;
	}
}

.fitoo-header__menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fitoo-header__menu a {
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: color var(--transition);
}

.fitoo-header__menu a:hover,
.fitoo-header__menu .current-menu-item > a {
	color: var(--color-brand);
}

.fitoo-header__actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.fitoo-header__city {
	color: #fff;
	font-size: 0.875rem;
}

.fitoo-header__city .ffp-city-label {
	color: rgba(255, 255, 255, 0.7);
}

.fitoo-header__city .ffp-city-name {
	color: var(--color-brand);
}

.fitoo-header__account {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	transition: background var(--transition), color var(--transition);
}

.fitoo-header__account:hover {
	background: rgba(255, 255, 255, 0.2);
	color: var(--color-brand);
}

.fitoo-header__account svg {
	width: 20px;
	height: 20px;
}

.fitoo-header__toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 8px;
	border: none;
	background: transparent;
	cursor: pointer;
}

@media (min-width: 900px) {
	.fitoo-header__toggle {
		display: none;
	}
}

.fitoo-header__toggle span {
	display: block;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform var(--transition), opacity var(--transition);
}

.fitoo-header.is-open .fitoo-header__toggle span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.fitoo-header.is-open .fitoo-header__toggle span:nth-child(2) {
	opacity: 0;
}

.fitoo-header.is-open .fitoo-header__toggle span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.fitoo-mobile-nav {
	display: none;
	position: fixed;
	top: var(--header-height-mobile);
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--color-header);
	padding: 1.5rem;
	overflow-y: auto;
	z-index: calc(var(--z-header) - 1);
}

.fitoo-header.is-open .fitoo-mobile-nav {
	display: block;
}

.fitoo-mobile-nav__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fitoo-mobile-nav__menu li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fitoo-mobile-nav__menu a {
	display: block;
	padding: 1rem 0;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 500;
}

.fitoo-mobile-nav__menu a:hover {
	color: var(--color-brand);
}

/* Footer */
.fitoo-footer {
	background: var(--color-header);
	color: rgba(255, 255, 255, 0.85);
	padding-block: clamp(2rem, 4vw, 3rem);
}

.fitoo-footer__grid {
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr;
}

@media (min-width: 700px) {
	.fitoo-footer__grid {
		grid-template-columns: 1.2fr 1fr 1fr;
	}
}

.fitoo-footer__logo img {
	max-width: 160px;
	margin-bottom: 1rem;
}

.fitoo-footer__desc {
	font-size: 0.9rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
}

.fitoo-footer__heading {
	color: var(--color-brand);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 0.75rem;
}

.fitoo-footer__links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fitoo-footer__links a {
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
	line-height: 1.55;
}

.fitoo-footer__links a:hover {
	color: var(--color-brand);
}

.fitoo-footer__phone {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.9rem;
}

.fitoo-footer__phone:hover {
	color: var(--color-brand);
}

.fitoo-footer__bottom {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.6);
}

/* Page templates */
.fitoo-page {
	padding-block: clamp(2rem, 4vw, 3rem);
}

.fitoo-page__content {
	background: var(--color-surface);
	border-radius: var(--radius-card);
	padding: clamp(1.5rem, 3vw, 2rem);
	box-shadow: var(--shadow-card);
}

.fitoo-page--plain .fitoo-page__content {
	background: transparent;
	box-shadow: none;
	padding: 0;
}

/* Main layout */
.fitoo-main {
	min-height: 50vh;
	min-width: 0;
	overflow-x: clip;
}
