/* F45 Prototype — базовые стили светлой темы.
 * Палитра: белый фон, чёрный текст, красный F45 #E30613 акцентом,
 * тёмно-синий #1B2A4E вторичным (цвет колонн студии).
 */

:root {
	--f45-red: #E30613;
	--f45-red-hover: #B10510;
	--f45-navy: #1B2A4E;
	--f45-navy-hover: #12203D;
	--f45-ink: #0A0A0A;
	--f45-body: #2C2C2C;
	--f45-muted: #6B6B70;
	--f45-line: #E5E5E7;
	--f45-bg: #FFFFFF;
	--f45-bg-alt: #F5F5F7;
	--f45-bg-dark: #0A0A0A;
	--f45-white: #FFFFFF;
	--f45-radius-sm: 4px;
	--f45-radius-md: 8px;
	--f45-radius-lg: 16px;
	--f45-radius-pill: 999px;
	--f45-container: 1240px;
	--f45-header-h: 72px;
	--f45-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
	--f45-shadow-md: 0 4px 14px rgba(0,0,0,0.10);
}

/* Общий сброс поверх Gutenberg */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--f45-header-h) + 12px); }
body {
	font-family: Inter, 'Helvetica Neue', Arial, system-ui, sans-serif;
	color: var(--f45-body);
	background: var(--f45-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Заголовки: Barlow Condensed БЕЗ автоматического uppercase */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	font-family: 'Barlow Condensed', 'Oswald', 'Impact', 'Arial Narrow', system-ui, sans-serif;
	color: var(--f45-ink);
	line-height: 1.05;
	letter-spacing: -0.005em;
	font-weight: 700;
	text-transform: none;
}

h1, .wp-block-heading.is-style-hero {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 0.95;
	letter-spacing: -0.015em;
}

h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 600; }
h4 { font-size: clamp(1.125rem, 2vw, 1.25rem); font-weight: 600; }

/* Ссылки */
a { color: var(--f45-red); text-decoration: none; }
a:hover { color: var(--f45-red-hover); text-decoration: underline; }

/* Абзацы */
p { margin: 0 0 1rem; }
p.has-large-font-size { font-size: 1.25rem; line-height: 1.5; }

/* eyebrow — маленькая надпись над заголовком, единственное место uppercase */
.is-style-eyebrow, .f45-eyebrow {
	font-family: Inter, sans-serif !important;
	font-size: 0.8125rem !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.12em !important;
	color: var(--f45-red) !important;
	margin: 0 0 0.5rem !important;
}

/* Кнопки */
.wp-block-button__link {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 1rem;
	padding: 0.9rem 1.75rem;
	border-radius: var(--f45-radius-pill);
	transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
}
.wp-block-button__link:not(.has-background) {
	background: var(--f45-red);
	color: #fff;
}
.wp-block-button__link:hover {
	background: var(--f45-red-hover);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: var(--f45-shadow-md);
}
.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--f45-ink) !important;
	border: 2px solid var(--f45-ink) !important;
}
.is-style-outline .wp-block-button__link:hover {
	background: var(--f45-ink) !important;
	color: #fff !important;
}

/* Ghost-кнопка на тёмном фоне */
.has-black-background-color .is-style-outline .wp-block-button__link,
.has-navy-background-color .is-style-outline .wp-block-button__link {
	color: #fff !important;
	border-color: #fff !important;
}
.has-black-background-color .is-style-outline .wp-block-button__link:hover,
.has-navy-background-color .is-style-outline .wp-block-button__link:hover {
	background: #fff !important;
	color: var(--f45-ink) !important;
}

/* Header — fixed sticky c shrink-эффектом */
body { padding-top: var(--f45-header-h); }
.f45-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	background: rgba(255,255,255,0.85);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	min-height: var(--f45-header-h);
	display: flex;
	align-items: center;
	padding: 12px clamp(1rem, 4vw, 2rem);
	transition: padding 0.28s cubic-bezier(0.2, 0.9, 0.3, 1),
	            min-height 0.28s cubic-bezier(0.2, 0.9, 0.3, 1),
	            background 0.24s ease,
	            border-color 0.24s ease,
	            box-shadow 0.24s ease;
}
/* V1 «Slim»: меняем только вертикальный padding + фон + тень.
   Шрифты, логотип и CTA НЕ трогаем — никаких искажений. */
.f45-header.is-scrolled {
	min-height: 56px;
	padding-top: 4px;
	padding-bottom: 4px;
	background: rgba(255,255,255,0.96);
	border-bottom-color: var(--f45-line);
	box-shadow: 0 4px 20px rgba(11, 20, 68, 0.06);
}
.f45-header__cta .wp-block-button__link {
	transition: transform 0.24s ease, opacity 0.24s ease, width 0.32s ease, padding 0.32s ease, margin 0.32s ease;
}

/* Плавающий CTA */
.f45-floating-cta {
	position: fixed;
	bottom: 20px; /* выровнено по нижнему краю YG-виджета (тот также 20px) */
	right: 92px; /* 20px отступ + 56px ширина YG + 16px гап */
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.35rem;
	background: var(--f45-red);
	color: #fff;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-size: 0.95rem;
	border-radius: 999px;
	box-shadow: 0 12px 30px rgba(230, 0, 26, 0.32),
	            0 4px 12px rgba(230, 0, 26, 0.18);
	transform: translateY(80px) scale(0.9);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
	            opacity 0.24s ease,
	            box-shadow 0.2s ease,
	            background 0.2s ease;
	text-decoration: none;
}
.f45-floating-cta.is-visible {
	transform: translateY(0) scale(1);
	opacity: 1;
	pointer-events: auto;
}
.f45-floating-cta:hover {
	background: #C40613;
	color: #fff;
	box-shadow: 0 16px 36px rgba(230, 0, 26, 0.4),
	            0 6px 14px rgba(230, 0, 26, 0.22);
	text-decoration: none;
	transform: translateY(-2px) scale(1);
}
.f45-floating-cta svg { flex-shrink: 0; }
@media (max-width: 720px) {
	.f45-floating-cta {
		right: 16px;
		/* bottom задаётся в блоке max-width: 899px — единый baseline с mobile-bar */
		padding: 0.9rem 1rem;
		font-size: 0.88rem;
	}
	.f45-floating-cta__label { display: none; }
}

/* Индикатор "залогинен" на кнопке "Личный кабинет" */
.f45-header__login {
	position: relative;
}
.f45-header__login[data-authed="1"]::after {
	content: '';
	position: absolute;
	top: 6px;
	right: 6px;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #22C55E; /* зелёный "живой" индикатор */
	box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(34, 197, 94, 0.55);
	animation: f45-pulse 2.4s ease-in-out infinite;
}
@keyframes f45-pulse {
	0%, 100% { box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(34, 197, 94, 0.5); }
	50% { box-shadow: 0 0 0 2px #fff, 0 0 16px rgba(34, 197, 94, 0.85); }
}
.f45-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: var(--f45-container);
	margin: 0 auto;
	gap: 2rem;
}
.f45-logo {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--f45-ink);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.f45-logo:hover { color: var(--f45-red); text-decoration: none; }
.f45-logo__mark {
	background: var(--f45-red);
	color: #fff;
	padding: 0.15em 0.4em;
	border-radius: var(--f45-radius-sm);
	font-weight: 800;
}
.f45-nav {
	display: flex;
	gap: 1.75rem;
	align-items: center;
}
.f45-nav a {
	color: var(--f45-ink);
	font-family: Inter, sans-serif;
	font-weight: 500;
	font-size: 0.9375rem;
	transition: color 0.15s;
}
.f45-nav a:hover { color: var(--f45-red); text-decoration: none; }
.f45-header__cta { display: flex; align-items: center; gap: 0.75rem; }
.f45-header__cta .wp-block-button__link {
	padding: 0.55rem 1.2rem;
	min-height: 40px;
	font-size: 0.875rem;
}
.f45-header__login {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 0.85rem;
	border-radius: 999px;
	color: var(--f45-ink);
	text-decoration: none;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border: 1px solid var(--f45-line);
	transition: border-color 0.15s, color 0.15s;
}
.f45-header__login:hover { border-color: var(--f45-red); color: var(--f45-red); text-decoration: none; }
.f45-header__login svg { flex-shrink: 0; }
.f45-header__trial {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	background: var(--f45-red);
	color: #fff;
	text-decoration: none;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	line-height: 1;
	transition: background 0.15s, transform 0.15s;
	white-space: nowrap;
}
.f45-header__trial:hover { background: #c8291d; color: #fff; text-decoration: none; transform: translateY(-1px); }
/* На узких desktop-экранах прячем trial-кнопку из шапки — в мобильном меню и снизу bar она уже есть */
@media (max-width: 900px) {
	.f45-header__trial { display: none; }
}

/* Мобильный тогл */
.f45-menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 0.5rem;
	cursor: pointer;
	color: var(--f45-ink);
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
}
.f45-menu-toggle svg { width: 24px; height: 24px; }

/* Мобильное меню — полноэкранный overlay (телепортируется в конец body через JS) */
.f45-mobile-menu {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--f45-bg);
	z-index: 200;
	padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1.5rem calc(2rem + env(safe-area-inset-bottom, 0px));
	flex-direction: column;
	gap: 1.25rem;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}
.f45-mobile-menu.is-open { display: flex; }
.f45-mobile-menu__close {
	position: absolute;
	top: calc(0.75rem + env(safe-area-inset-top, 0px));
	right: 0.75rem;
	width: 48px; height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	color: var(--f45-ink);
	cursor: pointer;
	padding: 0;
}
.f45-mobile-menu a {
	color: var(--f45-ink);
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1.5rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--f45-line);
	text-decoration: none;
}
.f45-mobile-menu a:first-of-type { margin-top: 2.5rem; }
.f45-mobile-menu a:hover { color: var(--f45-red); }

/* Секции */
.wp-block-group.f45-section {
	padding-block: clamp(3rem, 8vw, 5.5rem);
}
.wp-block-group.f45-section-dark {
	background: var(--f45-ink);
	color: var(--f45-white);
}
.wp-block-group.f45-section-dark h1,
.wp-block-group.f45-section-dark h2,
.wp-block-group.f45-section-dark h3 {
	color: var(--f45-white);
}
.wp-block-group.f45-section-alt {
	background: var(--f45-bg-alt);
}

/* Hero */
.f45-hero {
	position: relative;
	box-sizing: border-box;
	min-height: 88vh;
	display: flex;
	align-items: center;
	color: #fff;
	background: var(--f45-ink);
	overflow: hidden;
}
/* На мобильных: hero жёстко ограничен реальным viewport минус sticky mobile-bar.
   min-height снят, чтобы hero не вытягивался под контент под bar. */
@media (max-width: 900px) {
	.f45-hero {
		min-height: 0;
		height: calc(100svh - var(--f45-mobile-bar-h, 0px));
		max-height: calc(100svh - var(--f45-mobile-bar-h, 0px));
		padding-top: 72px; /* под fixed header, без лишнего запаса */
		padding-bottom: 0.5rem;
		align-items: flex-start;
	}
	/* Компактная типографика hero — всё должно влезать в iPhone 13 viewport (664−104=560px) */
	.f45-hero h1, .f45-hero__title {
		font-size: clamp(1.4rem, 6vw, 1.75rem) !important;
		line-height: 1.1 !important;
		margin-bottom: 0.5rem !important;
	}
	.f45-hero__lede {
		font-size: 0.85rem !important;
		line-height: 1.3 !important;
		margin-bottom: 0.75rem !important;
	}
	.f45-eyebrow {
		margin-bottom: 0.25rem !important;
	}
	/* CTA — кнопки уже по высоте */
	.f45-hero__ctas .wp-block-button__link {
		padding: 0.6rem 1.25rem !important;
		font-size: 0.85rem !important;
	}
	.f45-hero__ctas {
		gap: 0.5rem !important;
	}
	.f45-hero__lede {
		margin-bottom: 0.75rem !important;
	}
}
.f45-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.f45-hero__media img,
.f45-hero__media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
/* Hero slideshow: 3 cross-fading slides + Ken Burns motion, 15s total (5s per slide) */
.f45-hero__slideshow .f45-hero__slide {
	position: absolute;
	top: 0; left: 0;
	opacity: 0;
	will-change: opacity, transform;
	transform-origin: center center;
}
.f45-hero__slideshow .f45-hero__slide--1 {
	animation: f45-hero-fade 15s infinite, f45-kenburns-1 15s ease-out infinite;
	animation-delay: 0s, 0s;
	opacity: 1;
}
.f45-hero__slideshow .f45-hero__slide--2 {
	animation: f45-hero-fade 15s infinite, f45-kenburns-2 15s ease-out infinite;
	animation-delay: 5s, 5s;
}
.f45-hero__slideshow .f45-hero__slide--3 {
	animation: f45-hero-fade 15s infinite, f45-kenburns-3 15s ease-out infinite;
	animation-delay: 10s, 10s;
}
@keyframes f45-hero-fade {
	0%   { opacity: 0; }
	4%   { opacity: 1; }
	33%  { opacity: 1; }
	37%  { opacity: 0; }
	100% { opacity: 0; }
}
/* Slide 1: slow zoom-in on athlete (center), slight upward drift */
@keyframes f45-kenburns-1 {
	0%   { transform: scale(1.0) translate(0, 0); }
	40%  { transform: scale(1.12) translate(0, -1.5%); }
	100% { transform: scale(1.12) translate(0, -1.5%); }
}
/* Slide 2: pan right-to-left with slight zoom (focus shifts to laughing woman) */
@keyframes f45-kenburns-2 {
	0%   { transform: scale(1.08) translate(2%, 0); }
	40%  { transform: scale(1.12) translate(-2%, 0); }
	100% { transform: scale(1.12) translate(-2%, 0); }
}
/* Slide 3: zoom-out from close crop to wider frame (camera pulls back) */
@keyframes f45-kenburns-3 {
	0%   { transform: scale(1.15) translate(0, 1%); }
	40%  { transform: scale(1.02) translate(0, 0); }
	100% { transform: scale(1.02) translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
	.f45-hero__slideshow .f45-hero__slide { animation: none; opacity: 0; transform: none; }
	.f45-hero__slideshow .f45-hero__slide--1 { opacity: 1; }
}
/* Hero slideshow indicator (top-center numbered dots) */
.f45-hero__indicator {
	position: absolute;
	top: clamp(1rem, 3vh, 2rem);
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	gap: 0.75rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
.f45-hero__dot {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1.5px solid rgba(255,255,255,0.5);
	background: rgba(0,0,0,0.35);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 600;
	font-size: 0.9375rem;
	color: rgba(255,255,255,0.75);
	transition: color 0.3s, border-color 0.3s, background 0.3s, transform 0.3s;
	animation: f45-hero-dot 15s infinite;
	opacity: 1;
}
.f45-hero__dot span { line-height: 1; }
.f45-hero__dot--1 { animation-delay: 0s; }
.f45-hero__dot--2 { animation-delay: 5s; }
.f45-hero__dot--3 { animation-delay: 10s; }
@keyframes f45-hero-dot {
	0%, 33% {
		color: #fff;
		border-color: #fff;
		background: rgba(230, 60, 46, 0.9); /* F45 red */
		transform: scale(1.1);
	}
	37%, 100% {
		color: rgba(255,255,255,0.75);
		border-color: rgba(255,255,255,0.5);
		background: rgba(0,0,0,0.35);
		transform: scale(1);
	}
}
@media (prefers-reduced-motion: reduce) {
	.f45-hero__dot { animation: none; }
	.f45-hero__dot--1 {
		color: #fff; border-color: #fff;
		background: rgba(230, 60, 46, 0.9); transform: scale(1.1);
	}
}
.f45-hero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.55) 60%, rgba(10,10,10,0.75) 100%);
}
.f45-hero__content {
	position: relative;
	z-index: 1;
	max-width: var(--f45-container);
	margin: 0 auto;
	padding: 3rem clamp(1rem, 4vw, 2rem);
	width: 100%;
}
.f45-hero h1 {
	color: #fff;
	max-width: 18ch;
	margin: 0 0 1.5rem;
	text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.f45-hero__lede {
	max-width: 40ch;
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	line-height: 1.5;
	color: rgba(255,255,255,0.92);
	margin: 0 0 2rem;
}
.f45-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}
/* Вторую (outline) CTA «Выбрать тренировку» показываем на всех экранах — включая мобильные */

/* Финальный CTA в секции Контакты */
.f45-final-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: clamp(1rem, 3vw, 1.25rem) clamp(1rem, 4vw, 1.5rem);
	border-radius: 16px;
	font-family: 'Barlow Condensed', sans-serif;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	text-decoration: none;
	line-height: 1.15;
}
.f45-final-cta > span:first-child {
	flex: 1 1 auto;
	min-width: 0;
}
.f45-final-cta__arrow {
	flex: 0 0 auto;
	font-size: 1.25rem;
}
.f45-final-cta--primary {
	background: #E30613;
	color: #fff;
	font-weight: 700;
	font-size: clamp(1.05rem, 3.6vw, 1.5rem);
}
.f45-final-cta--primary:hover { background: var(--f45-red-hover); color: #fff; text-decoration: none; }
.f45-final-cta--secondary {
	background: transparent;
	color: #fff;
	font-weight: 600;
	font-size: clamp(0.95rem, 3vw, 1.125rem);
	border: 2px solid rgba(255,255,255,0.3);
}
.f45-final-cta--secondary:hover { border-color: rgba(255,255,255,0.6); color: #fff; text-decoration: none; }

/* Trust strip */
.f45-trust {
	background: var(--f45-ink);
	color: #fff;
	padding: 1.25rem clamp(1rem, 4vw, 2rem);
}
.f45-trust__inner {
	max-width: var(--f45-container);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	gap: 1.5rem;
	align-items: center;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.875rem;
}
.f45-trust__item { display: flex; align-items: center; gap: 0.5rem; }
.f45-trust__item::before {
	content: '';
	width: 8px; height: 8px;
	background: var(--f45-red);
	border-radius: 50%;
	flex-shrink: 0;
}
/* Trust strip: 4 элемента в grid 2×2 на планшетах/мобильных вместо wrap с одиночными строками */
@media (max-width: 900px) {
	.f45-trust__inner {
		display: grid;
		grid-template-columns: 1fr 1fr;
		justify-content: initial;
		gap: 1rem 1.25rem;
	}
	.f45-trust__item { align-items: flex-start; }
}
@media (max-width: 480px) {
	.f45-trust__inner {
		grid-template-columns: 1fr;
	}
	.f45-trust__item { justify-content: flex-start; }
}

/* Секция «типы тренировок» — карточки */
.f45-workouts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}
.f45-workout-card {
	background: var(--f45-white);
	border: 1px solid var(--f45-line);
	border-radius: var(--f45-radius-lg);
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}
.f45-workout-card:hover { transform: translateY(-4px); box-shadow: var(--f45-shadow-md); }
.f45-workout-card__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--f45-bg-alt);
}
/* Форматы (кардио/силовые/гибридные) — portrait 3:4 чтобы фото людей влезали полностью */
.f45-workouts .f45-workout-card__media {
	aspect-ratio: 3 / 4;
}
.f45-workout-card__media img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}
.f45-workout-card:hover .f45-workout-card__media img { transform: scale(1.05); }
.f45-workout-card__body { padding: 1.5rem; }
.f45-workout-card__body h3 { margin: 0 0 0.5rem; }
.f45-workout-card__body p { color: var(--f45-body); margin: 0; }

/* Пробная неделя — CTA-карточка */
.f45-trial {
	background: var(--f45-red);
	color: #fff;
	padding: clamp(2rem, 5vw, 3.5rem);
	border-radius: var(--f45-radius-lg);
	text-align: center;
	max-width: 720px;
	margin: 0 auto;
}
.f45-trial h3, .f45-trial h2 { color: #fff; margin: 0 0 1rem; }
.f45-trial__price {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: clamp(3rem, 8vw, 5rem);
	font-weight: 800;
	line-height: 1;
	margin: 1rem 0;
}
.f45-trial p { color: rgba(255,255,255,0.95); font-size: 1.0625rem; }
.f45-trial .wp-block-button__link {
	background: #fff;
	color: var(--f45-red);
}
.f45-trial .wp-block-button__link:hover {
	background: var(--f45-ink);
	color: #fff;
}

/* Абонементы */
.f45-memberships {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.25rem;
}
.f45-membership-card {
	background: var(--f45-white);
	border: 1px solid var(--f45-line);
	border-radius: var(--f45-radius-lg);
	padding: 1.75rem;
	text-align: left;
	transition: border-color 0.15s;
}
.f45-membership-card:hover { border-color: var(--f45-red); }
.f45-membership-card--hit { border-color: var(--f45-red); border-width: 2px; padding: 1.625rem; }
.f45-membership-card h4 { margin: 0 0 0.5rem; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.02em; font-weight: 700; font-size: 1.125rem; color: var(--f45-ink); }
.f45-membership-card p { margin: 0 0 1.25rem; color: var(--f45-muted); font-size: 0.9375rem; }
.f45-membership-card .f45-membership-price { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; color: var(--f45-ink); font-weight: 700; line-height: 1; margin: 0 0 0.5rem; }
.f45-membership-card .f45-membership-badge { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--f45-red); margin: 0 0 0.5rem; }
.f45-membership-card > a { color: var(--f45-red); font-weight: 600; text-decoration: none; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; }
.f45-membership-card > a:hover { text-decoration: underline; }

/* Studio */
.f45-studio {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
@media (min-width: 900px) {
	.f45-studio { grid-template-columns: 1fr 1fr; align-items: center; }
}
.f45-studio__media {
	border-radius: var(--f45-radius-lg);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--f45-bg-alt);
}
.f45-studio__media img { width: 100%; height: 100%; object-fit: cover; }
/* «Первый раз в F45?» — portrait 3:4 чтобы фото тренер + клиент влезало целиком */
.f45-section-alt .f45-studio__media { aspect-ratio: 3 / 4; }
/* «Что такое F45?» — landscape 3:2 чтобы групповое фото влезало целиком */
#about .f45-studio__media { aspect-ratio: 3 / 2; }
/* «Студия» — главное фото 3:2 (галерея ниже использует свой inline 4/3) */
#studio .f45-studio > .f45-studio__media { aspect-ratio: 3 / 2; }

/* FAQ */
.f45-faq { max-width: 800px; margin: 0 auto; }
.f45-faq details {
	border-bottom: 1px solid var(--f45-line);
	padding: 1.25rem 0;
}
.f45-faq details:first-of-type { border-top: 1px solid var(--f45-line); }
.f45-faq summary {
	cursor: pointer;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 600;
	font-size: 1.25rem;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--f45-ink);
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	min-height: 44px;
}
.f45-faq summary::-webkit-details-marker { display: none; }
.f45-faq summary::after {
	content: '+';
	color: var(--f45-red);
	font-weight: 700;
	font-size: 1.75rem;
	line-height: 1;
	transition: transform 0.2s;
}
.f45-faq details[open] summary::after { transform: rotate(45deg); }
.f45-faq details p { margin-top: 1rem; color: var(--f45-body); }

/* Отзывы */
.f45-testimonials {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 1.5rem;
}
.f45-testimonial {
	background: var(--f45-bg-alt);
	padding: 1.75rem;
	border-radius: var(--f45-radius-lg);
	border-left: 3px solid var(--f45-red);
}
.f45-testimonial p { color: var(--f45-body); font-style: italic; margin: 0 0 1rem; }
.f45-testimonial cite { color: var(--f45-muted); font-size: 0.875rem; font-style: normal; }

/* Виджет отзывов smartwidgets */
.f45-reviews-widget {
	max-width: 1080px;
	margin: 0 auto;
	background: var(--f45-bg-alt);
	border-radius: var(--f45-radius-lg);
	padding: 1.5rem clamp(0.75rem, 2vw, 1.5rem);
}
.f45-reviews-widget .sw-app { min-height: 320px; }

/* Расписание */
.f45-schedule {
	background: var(--f45-bg-alt);
	border-radius: var(--f45-radius-lg);
	padding: 1.5rem clamp(0.5rem, 2vw, 1.5rem);
	color: var(--f45-body);
	min-height: 520px;
}
.f45-schedule iframe { width: 100%; min-height: 520px; border: 0; border-radius: var(--f45-radius-md); background: #fff; }
.f45-schedule > div,
.f45-schedule > iframe,
.f45-schedule [id^='fit1c'],
.f45-schedule [class*='fit1c'] { width: 100% !important; max-width: 100% !important; }
.f45-schedule__placeholder {
	padding: 3rem 1.5rem;
	border: 2px dashed var(--f45-line);
	border-radius: var(--f45-radius-md);
	color: var(--f45-muted);
}

/* Footer */
.f45-footer {
	background: var(--f45-ink);
	color: rgba(255,255,255,0.85);
	padding: 3rem clamp(1rem, 4vw, 2rem) 5.5rem;
}
.f45-footer h4 { color: #fff; font-size: 1.125rem; margin: 0 0 1rem; }
.f45-footer a { color: #fff; }
.f45-footer a:hover { color: var(--f45-red); }
.f45-footer__grid {
	max-width: var(--f45-container);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2rem;
}
.f45-footer__bottom {
	max-width: var(--f45-container);
	margin: 2rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255,255,255,0.15);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	color: var(--f45-muted);
	font-size: 0.875rem;
}

/* Мобильная нижняя CTA-полоса */
:root { --f45-mobile-bar-h: 0px; }
.f45-mobile-bar {
	position: fixed;
	bottom: 0; left: 0; right: 0;
	background: #fff;
	border-top: 1px solid var(--f45-line);
	box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
	padding: 0.75rem;
	padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
	z-index: 90;
	display: none;
	gap: 0.5rem;
	/* Оставляем место справа под Telegram/YourGood-виджет (~64px) */
	padding-right: calc(64px + 0.75rem);
}
.f45-mobile-bar a {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 0.5rem;
	border-radius: var(--f45-radius-pill);
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.02em;
	min-height: 48px;
	text-decoration: none;
	text-align: center;
	line-height: 1.1;
}
.f45-mobile-bar a:first-child {
	color: var(--f45-ink);
	border: 2px solid var(--f45-ink);
	background: transparent;
}
.f45-mobile-bar a:last-child {
	background: var(--f45-red);
	color: #fff;
}
.f45-mobile-bar a:last-child:hover { background: var(--f45-red-hover); color: #fff; }

/* Адаптив */
@media (max-width: 899px) {
	.f45-nav { display: none; }
	.f45-header__cta { display: none; }
	.f45-menu-toggle { display: inline-flex; }
	.f45-mobile-bar { display: flex; }

	/* Логотип: не вылезать за экран, умешаться рядом с бургером */
	.f45-header__inner { gap: 0.75rem; }
	.f45-logo {
		font-size: 1.1rem;
		min-width: 0;
		overflow: hidden;
	}
	.f45-logo > span:not(.f45-logo__mark) {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.f45-logo__mark { flex-shrink: 0; }
}
@media (max-width: 400px) {
	/* На узких экранах (вкл. iPhone 13, 390px) — ещё меньше шрифт логотипа, чтобы вместиться с бургером */
	.f45-logo { font-size: 1rem; letter-spacing: 0; }
	.f45-logo__mark { padding: 0.15em 0.35em; }
}
@media (max-width: 340px) {
	/* Совсем узкие (старые iPhone SE 320px): прячем слово, оставляем только F45-плашку */
	.f45-logo > span:not(.f45-logo__mark) { display: none; }
}
@media (max-width: 899px) {
	/* Высота панели: 0.75rem top + кнопка до 2 строк (~77px) + max(0.75rem, safe-area).
	   Кнопка «Оформить пробную неделю» на узких экранах переносится в 2 строки. */
	:root { --f45-mobile-bar-h: calc(80px + 1.5rem + env(safe-area-inset-bottom, 0px)); }
	body { padding-bottom: var(--f45-mobile-bar-h); }

	/* Плавающие элементы поднимаем над панелью с одним общим baseline */
	.f45-floating-cta {
		bottom: calc(var(--f45-mobile-bar-h) + 12px);
	}

	/* YourGood messenger widget: поднимаем его iframe/контейнер над панелью */
	iframe[src*="yourgood"],
	div[id][style*="position: fixed"][style*="bottom"] iframe[src*="yourgood"],
	.yg-widget,
	[class*="ygbtn"]:not(script) {
		bottom: calc(var(--f45-mobile-bar-h) + 12px) !important;
	}
}

/* Accessibility */
:focus-visible {
	outline: 3px solid var(--f45-red);
	outline-offset: 2px;
	border-radius: var(--f45-radius-sm);
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* Утилиты */
.f45-container {
	box-sizing: border-box;
	max-width: var(--f45-container);
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem);
}
img { max-width: 100%; height: auto; }

/* Reset WP layout constraints on main */
main.wp-block-group { max-width: 100% !important; padding: 0 !important; }
main.wp-block-group > .wp-block-post-content { max-width: 100%; padding: 0; margin: 0; }
main > .wp-block-group,
main > section { max-width: 100%; }

/* Grid контейнеры внутри main должны иметь полную ширину до f45-container */
main .f45-container { max-width: var(--f45-container); width: 100%; }

/* Membership hint on /lk/ */
.f45-hint {
	max-width: 720px;
	margin: 0 auto 1.5rem;
	padding: 1rem 1.25rem;
	background: #FFF6F6;
	border: 1px solid rgba(227, 6, 19, 0.25);
	border-radius: var(--f45-radius-md);
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	color: var(--f45-ink);
	font-size: 0.9375rem;
}
.f45-hint__badge {
	background: var(--f45-red);
	color: #fff;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.75rem;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
}
.f45-hint strong { color: var(--f45-red); font-weight: 700; }

/* =========================================================================
   Расписание (нативная сетка из 1С-Фитнес API)
   ========================================================================= */
.f45-sched {
	max-width: 960px;
	margin: 0 auto;
}
.f45-sched__days {
	display: flex;
	gap: 0.5rem;
	overflow-x: auto;
	padding: 0.25rem 0 0.75rem;
	margin: 0 -0.5rem 1.25rem;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}
.f45-sched__days::-webkit-scrollbar { height: 6px; }
.f45-sched__days::-webkit-scrollbar-thumb { background: #d9d9db; border-radius: 3px; }
.f45-day {
	flex: 0 0 auto;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	min-width: 78px;
	padding: 0.75rem 0.9rem;
	background: #fff;
	border: 1px solid #ececee;
	border-radius: var(--f45-radius-md);
	cursor: pointer;
	transition: all 0.15s ease;
	font-family: 'Inter', sans-serif;
}
.f45-day:hover { border-color: var(--f45-navy); }
.f45-day.is-active {
	background: var(--f45-navy);
	border-color: var(--f45-navy);
	color: #fff;
}
.f45-day__weekday {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
	color: #6B6B70;
}
.f45-day.is-active .f45-day__weekday { color: rgba(255,255,255,0.78); }
.f45-day__date {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1;
}
.f45-day__count {
	font-size: 0.72rem;
	color: #6B6B70;
	background: #F5F5F7;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	margin-top: 0.15rem;
}
.f45-day.is-active .f45-day__count {
	background: rgba(255,255,255,0.16);
	color: #fff;
}

.f45-sched__filters {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin: 0 0 1.25rem;
}
.f45-chip {
	appearance: none;
	background: #fff;
	border: 1px solid #ececee;
	border-radius: 999px;
	padding: 0.4rem 0.85rem;
	font-family: 'Inter', sans-serif;
	font-size: 0.85rem;
	color: var(--f45-ink);
	cursor: pointer;
	transition: all 0.15s ease;
}
.f45-chip:hover { border-color: var(--f45-navy); }
.f45-chip.is-active {
	background: var(--f45-red);
	border-color: var(--f45-red);
	color: #fff;
	font-weight: 600;
}

.f45-sched__list {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.f45-sched__loading, .f45-sched__empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #6B6B70;
	background: #fafafa;
	border-radius: var(--f45-radius-md);
}

.f45-class {
	display: grid;
	grid-template-columns: 82px 1fr auto;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: #fff;
	border: 1px solid #ececee;
	border-radius: var(--f45-radius-md);
	transition: border-color 0.15s ease;
}
.f45-class:hover { border-color: var(--f45-navy); }
.f45-class__time {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.f45-class__time strong {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--f45-ink);
}
.f45-class__time span {
	font-size: 0.72rem;
	color: #6B6B70;
	margin-top: 0.15rem;
}
.f45-class__body h4 {
	margin: 0 0 0.2rem;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--f45-ink);
}
.f45-class__meta {
	margin: 0;
	font-size: 0.85rem;
	color: #6B6B70;
}
.f45-class--cardio .f45-class__body h4 { color: #C81E4A; }
.f45-class--strength .f45-class__body h4 { color: var(--f45-navy); }
.f45-class--hybrid .f45-class__body h4 { color: #A65A00; }

.f45-class__side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.4rem;
}
.f45-class__free {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
}
.f45-class__free--ok   { background: #E6F5EA; color: #1D7F3C; }
.f45-class__free--few  { background: #FFF3E0; color: #A45B00; }
.f45-class__free--none { background: #F5F5F7; color: #6B6B70; }
.f45-class__free--past { background: #EFEFF1; color: #8A8A8F; }

/* UX v4: прошедшие классы */
.f45-class.is-past {
	opacity: 0.55;
	filter: grayscale(0.6);
	cursor: default;
}
.f45-class.is-past:hover { transform: none; box-shadow: none; }
.f45-class.is-past .f45-class__btn { pointer-events: none; }

.f45-class__btn {
	display: inline-block;
	padding: 0.45rem 0.9rem;
	background: var(--f45-red);
	color: #fff !important;
	text-decoration: none !important;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.85rem;
	border-radius: 999px;
	transition: background 0.15s ease;
}
.f45-class__btn:hover { background: #B8050F; }
.f45-class__btn[disabled],
.f45-class__btn[aria-disabled="true"] {
	background: #d9d9db;
	color: #6B6B70 !important;
	pointer-events: none;
	cursor: not-allowed;
}
.f45-class__btn[aria-disabled="true"]:hover { background: #d9d9db; }

.f45-sched__note {
	margin: 1.5rem 0 0;
	text-align: center;
	color: #6B6B70;
	font-size: 0.9375rem;
}
.f45-sched__note a { color: var(--f45-red); font-weight: 600; }

@media (max-width: 640px) {
	.f45-class {
		grid-template-columns: 60px 1fr;
		grid-template-rows: auto auto;
		row-gap: 0.6rem;
	}
	.f45-class__side {
		grid-column: 1 / -1;
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
	.f45-class__time strong { font-size: 1.35rem; }
}

/* =========================================================================
   Цены (из price_list)
   ========================================================================= */
.f45-prices {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-width: 1080px;
	margin: 0 auto;
}
.f45-prices__loading, .f45-prices__empty {
	text-align: center;
	padding: 3rem 1rem;
	color: #6B6B70;
	background: #fafafa;
	border-radius: var(--f45-radius-md);
}
.f45-prices__section {}
.f45-prices__title {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 1.15rem;
	color: var(--f45-navy);
	margin: 0 0 1rem;
	padding-left: 0.25rem;
	border-left: 3px solid var(--f45-red);
	padding-left: 0.75rem;
}
.f45-prices__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1rem;
}
.f45-price {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1.25rem;
	background: #fff;
	border: 1px solid #ececee;
	border-radius: var(--f45-radius-md);
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.f45-price:hover {
	border-color: var(--f45-navy);
	transform: translateY(-2px);
}
.f45-price h4 {
	margin: 0;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--f45-ink);
}
.f45-price__meta {
	margin: 0;
	font-size: 0.8rem;
	color: #6B6B70;
}
.f45-price__amount {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 0.5rem;
}
.f45-price__amount strong {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 1.8rem;
	color: var(--f45-red);
	line-height: 1;
}
.f45-price__old {
	color: #A0A0A5;
	text-decoration: line-through;
	font-size: 0.9rem;
}
.f45-price__btn {
	display: inline-block;
	text-align: center;
	padding: 0.6rem 1rem;
	background: var(--f45-navy);
	color: #fff !important;
	text-decoration: none !important;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.9rem;
	border-radius: 999px;
	transition: background 0.15s ease;
	margin-top: 0.5rem;
}
.f45-price__btn:hover { background: #0F1E3F; }

/* ==== Class direction chip + clickable class card ==== */
.f45-class {
	cursor: pointer;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
	outline: none;
}
.f45-class:hover,
.f45-class:focus-visible {
	box-shadow: 0 6px 18px rgba(27, 42, 78, 0.12);
	transform: translateY(-1px);
}
.f45-class:focus-visible {
	box-shadow: 0 0 0 2px var(--f45-navy), 0 6px 18px rgba(27, 42, 78, 0.15);
}
.f45-class__dir {
	display: inline-block;
	margin-left: 0.5rem;
	vertical-align: middle;
	padding: 0.15em 0.55em;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border-radius: 999px;
	background: rgba(27, 42, 78, 0.08);
	color: var(--f45-navy);
}
.f45-class__dir--cardio   { background: rgba(227, 6, 19, 0.10);   color: var(--f45-red); }
.f45-class__dir--strength { background: rgba(27, 42, 78, 0.10);   color: var(--f45-navy); }
.f45-class__dir--hybrid   { background: rgba(255, 152, 0, 0.14);  color: #B65E00; }
.f45-class__dir--flex     { background: rgba(0, 150, 136, 0.14);  color: #00695C; }

/* ==== Class details modal ==== */
.f45-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	z-index: 9999;
}
.f45-modal.is-open { display: flex; }
.f45-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}
.f45-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0,0,0,0.25);
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	padding: 1.75rem 1.5rem 1.5rem;
	animation: f45modal-in 0.18s ease-out both;
}
@keyframes f45modal-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}
.f45-modal__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 0;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--f45-navy);
	cursor: pointer;
	border-radius: 50%;
}
.f45-modal__close:hover { background: rgba(27,42,78,0.08); }
.f45-modal__title {
	font-family: 'Barlow Condensed', Arial, sans-serif;
	font-weight: 800;
	font-size: 1.75rem;
	line-height: 1.1;
	margin: 0.25rem 0 0.5rem;
	color: var(--f45-navy);
}
.f45-modal__dir { margin: 0; }
.f45-modal__when {
	color: #4A5568;
	font-size: 0.95rem;
	margin: 0 0 0.75rem;
}
.f45-modal__free {
	display: inline-block;
	font-weight: 700;
	padding: 0.35em 0.75em;
	border-radius: 999px;
	margin-bottom: 1rem;
}
.f45-modal__desc {
	color: #2D3748;
	font-size: 0.98rem;
	line-height: 1.55;
	margin-bottom: 1.25rem;
}
.f45-modal__desc p { margin: 0 0 0.7em; }
.f45-modal__trainer {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	background: #F7F8FA;
	border-radius: 12px;
	padding: 0.9rem 1rem;
	margin-bottom: 1rem;
}
.f45-modal__trainer img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.f45-modal__trainer strong {
	display: block;
	color: var(--f45-navy);
	font-size: 1rem;
}
.f45-modal__trainer span {
	display: block;
	color: #6B7280;
	font-size: 0.85rem;
	margin-top: 2px;
}
.f45-modal__trainer p {
	font-size: 0.9rem;
	color: #4A5568;
	margin: 0.4rem 0 0;
}
.f45-modal__metrics {
	list-style: none;
	padding: 0;
	margin: 0 0 1.25rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 0.5rem;
}
.f45-modal__metrics li {
	background: #F7F8FA;
	border-radius: 10px;
	padding: 0.55rem 0.75rem;
	display: flex;
	flex-direction: column;
}
.f45-modal__metrics span {
	font-size: 0.75rem;
	color: #6B7280;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.f45-modal__metrics b {
	font-family: 'Barlow Condensed', Arial, sans-serif;
	font-size: 1.35rem;
	color: var(--f45-navy);
}
.f45-modal__cta { text-align: center; margin-top: 0.5rem; }
.f45-modal__cta .f45-btn {
	display: inline-block;
	min-width: 220px;
	padding: 0.9rem 1.75rem;
	background: var(--f45-red);
	color: #fff;
	font-family: 'Barlow Condensed', Arial, sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-decoration: none;
	border: 0;
	border-radius: 999px;
	transition: background 0.15s ease, transform 0.15s ease;
}
.f45-modal__cta .f45-btn:not([aria-disabled="true"]):hover { background: #B90410; transform: translateY(-1px); }
.f45-modal__cta .f45-btn[aria-disabled="true"] {
	background: #C4C9D4;
	color: #6B6B70;
	pointer-events: none;
	cursor: not-allowed;
	transform: none;
}
.f45-modal__cta .f45-btn[aria-disabled="true"]:hover { background: #C4C9D4; transform: none; }
.f45-modal__loading,
.f45-modal__error {
	padding: 2rem 0;
	text-align: center;
	color: #6B7280;
}

/* --------------------------------------------------------------------------
 * ЛК: логин, покупка, запись, список абонементов/записей
 * -------------------------------------------------------------------------- */
.f45-lk { margin: 0 auto; max-width: 960px; }
.f45-lk__loading, .f45-lk__empty { padding: 2rem 1rem; text-align: center; color: var(--f45-muted); }
.f45-lk__anon { text-align: center; padding: 3rem 1rem; background: #fafbfc; border-radius: 12px; }
.f45-lk__anon p { margin: 0 0 1rem; color: var(--f45-muted); }
.f45-lk__hello { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; background: linear-gradient(135deg, var(--f45-navy) 0%, #2b3d68 100%); color: #fff; border-radius: 12px; margin-bottom: 1.5rem; }
.f45-lk__hello strong { display: block; font-size: 1.125rem; }
.f45-lk__hello span { display: block; font-size: 0.875rem; opacity: 0.8; margin-top: 0.25rem; }
.f45-lk__hello .f45-lk-link { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; font-size: 0.9375rem; }
.f45-lk__hello .f45-lk-link:hover { background: rgba(255,255,255,0.1); }
.f45-lk__section { margin-bottom: 2rem; }
.f45-lk__section h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; margin: 0 0 0.75rem; text-transform: uppercase; color: var(--f45-navy); }
.f45-lk__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.f45-lk-ticket { padding: 1.25rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.f45-lk-ticket.is-blocked { opacity: 0.6; }
.f45-lk-ticket h4 { margin: 0 0 0.5rem; font-size: 1.0625rem; color: var(--f45-navy); }
.f45-lk-ticket p { margin: 0.25rem 0; font-size: 0.9375rem; color: var(--f45-muted); }
.f45-lk-ticket__blocked { color: var(--f45-red); font-weight: 600; }
.f45-lk-appt { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.25rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; }
.f45-lk-appt--done { opacity: 0.7; background: #fafbfc; }
.f45-lk-appt__time { font-weight: 600; color: var(--f45-navy); min-width: 140px; }
.f45-lk-appt__body strong { color: var(--f45-navy); }
.f45-lk-appt .f45-lk-link { border: 1px solid #e5e7eb; background: #fff; color: var(--f45-red); padding: 0.4rem 0.8rem; border-radius: 8px; cursor: pointer; font-size: 0.875rem; }
.f45-lk-appt .f45-lk-link:hover { background: #fff5f5; border-color: var(--f45-red); }
.f45-lk__history { margin-top: 2rem; }
.f45-lk__history summary { cursor: pointer; font-weight: 600; padding: 0.75rem 0; color: var(--f45-muted); }
.f45-lk__history .f45-lk-appt { margin-bottom: 0.5rem; }

/* --- модалка: логин/покупка/запись общее --- */
.f45-lk-tabs { display: flex; gap: 0.25rem; margin: 1rem 0; padding: 0.25rem; background: #f4f5f7; border-radius: 8px; }
.f45-lk-tab { flex: 1; background: transparent; border: 0; padding: 0.6rem; border-radius: 6px; font-family: inherit; font-size: 0.9375rem; cursor: pointer; color: var(--f45-muted); }
.f45-lk-tab.is-active { background: #fff; color: var(--f45-navy); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.f45-lk-form { display: flex; flex-direction: column; gap: 0.75rem; }
.f45-lk-field { display: flex; flex-direction: column; gap: 0.25rem; }
.f45-lk-field span { font-size: 0.875rem; color: var(--f45-muted); }
.f45-lk-field input { padding: 0.75rem 0.875rem; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem; font-family: inherit; }
.f45-lk-field input:focus { outline: none; border-color: var(--f45-red); box-shadow: 0 0 0 3px rgba(227,6,19,0.1); }
.f45-lk-hint { margin: 0 0 0.5rem; color: var(--f45-muted); font-size: 0.9375rem; }
.f45-lk-form .f45-lk-link { background: transparent; border: 0; padding: 0.25rem; color: var(--f45-muted); text-decoration: underline; cursor: pointer; text-align: center; font-size: 0.875rem; }
.f45-lk-total { padding: 1rem 1.25rem; background: #fafbfc; border-radius: 10px; margin: 1rem 0; text-align: center; }
.f45-lk-total .f45-price__amount { display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; }
.f45-lk-total .f45-price__amount strong { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; color: var(--f45-navy); }
.f45-lk-total .f45-price__old { text-decoration: line-through; color: var(--f45-muted); font-size: 1.125rem; }
.f45-lk-discount { margin-top: 0.5rem; color: #16a34a; font-size: 0.9375rem; font-weight: 600; }
.f45-lk-status { min-height: 24px; margin-top: 0.5rem; }
.f45-lk-success { padding: 0.75rem 1rem; background: #ecfdf5; color: #065f46; border-radius: 8px; font-weight: 600; text-align: center; }

/* Универсальные кнопки в модалке ЛК (кнопки в .f45-modal__cta имеют свой pill-стиль и переопределяются ниже) */
.f45-modal__body .f45-btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.875rem 1.5rem;
	border: 0;
	border-radius: 8px;
	font-family: inherit;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
	text-decoration: none;
	text-align: center;
	margin-top: 1rem;
}
/* CTA-кнопка в модалке класса — pill по центру, не на всю ширину */
.f45-modal__body .f45-modal__cta .f45-btn {
	display: inline-block;
	width: auto;
	min-width: 220px;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.9rem 1.75rem;
	border-radius: 999px;
	margin-top: 0;
}
.f45-modal__body .f45-btn--primary {
	background: var(--f45-red, #E30613);
	color: #fff;
}
.f45-modal__body .f45-btn--primary:hover:not([disabled]) {
	background: #B90410;
	transform: translateY(-1px);
}
.f45-modal__body .f45-btn[disabled] {
	opacity: 0.6;
	cursor: default;
	transform: none;
}
.f45-modal__body .f45-lk-total .f45-price__amount strong { color: var(--f45-navy); }

/* ============================================================
   Модалка покупки абонемента (v2, расширенная)
   ============================================================ */
.f45-purchase__desc {
	margin: 0.75rem 0 1rem;
	color: var(--f45-ink, #1b2a4e);
	font-size: 0.9375rem;
	line-height: 1.55;
}
.f45-purchase__desc p { margin: 0 0 0.5em; }
.f45-purchase__desc p:last-child { margin-bottom: 0; }
.f45-purchase__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	margin: 0.75rem 0 1rem;
}
.f45-purchase__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.75rem;
	background: rgba(11,20,68,0.04);
	border-radius: 100px;
	font-size: 0.85rem;
	color: var(--f45-ink, #1b2a4e);
}
.f45-purchase__meta-item svg { flex-shrink: 0; opacity: 0.6; }
.f45-purchase__services {
	margin: 0.75rem 0 1rem;
	padding: 0.75rem 1rem;
	background: #fafbfc;
	border-radius: 8px;
}
.f45-purchase__services-title {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--f45-muted, #6b7280);
	font-weight: 600;
}
.f45-purchase__services ul { list-style: none; margin: 0; padding: 0; }
.f45-purchase__services li {
	padding: 0.3rem 0;
	font-size: 0.9375rem;
	color: var(--f45-ink, #1b2a4e);
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
}
.f45-purchase__services li b { font-weight: 600; color: var(--f45-navy, #0B1444); }
.f45-purchase__available {
	margin: 0.5rem 0 1rem;
	padding: 0.6rem 0.85rem;
	background: #fffbeb;
	border-left: 3px solid #f59e0b;
	border-radius: 4px;
	font-size: 0.875rem;
	color: #78350f;
}
.f45-purchase__recurrent {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 0 0.75rem;
	padding: 0.3rem 0.65rem;
	background: #ecfdf5;
	color: #065f46;
	border-radius: 100px;
	font-size: 0.8125rem;
	font-weight: 600;
}

/* Бонусный блок: в тоне бренда (navy accent + деликатный фон) */
.f45-purchase__bonus {
	margin: 1rem 0;
	padding: 0.85rem 1rem;
	background: #F5F5F7;
	border: 1px solid var(--f45-line, #E5E5E7);
	border-left: 3px solid var(--f45-navy, #1B2A4E);
	border-radius: 8px;
}
.f45-purchase__bonus-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}
.f45-purchase__bonus-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--f45-navy, #1B2A4E);
	cursor: pointer;
	user-select: none;
}
.f45-purchase__bonus-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--f45-navy, #1B2A4E);
	cursor: pointer;
	margin: 0;
}
.f45-purchase__bonus-balance {
	font-size: 0.8125rem;
	color: var(--f45-muted, #6B6B70);
}
.f45-purchase__bonus-balance b { color: var(--f45-navy, #1B2A4E); font-weight: 600; }
.f45-purchase__bonus-controls {
	display: none;
	gap: 0.5rem;
	align-items: stretch;
	margin-top: 0.75rem;
}
.f45-purchase__bonus.is-active .f45-purchase__bonus-controls { display: flex; }
.f45-purchase__bonus-input {
	flex: 1;
	padding: 0.6rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 0.9375rem;
	font-family: inherit;
	background: #fff;
	color: var(--f45-navy, #1B2A4E);
}
.f45-purchase__bonus-input:focus {
	outline: none;
	border-color: var(--f45-navy, #1B2A4E);
	box-shadow: 0 0 0 3px rgba(27,42,78,0.12);
}
.f45-purchase__bonus-max {
	padding: 0.55rem 0.9rem;
	border: 1px solid var(--f45-navy, #1B2A4E);
	background: transparent;
	color: var(--f45-navy, #1B2A4E);
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.875rem;
	font-family: inherit;
	white-space: nowrap;
	transition: background 0.15s, color 0.15s;
}
.f45-purchase__bonus-max:hover {
	background: var(--f45-navy, #1B2A4E);
	color: #fff;
}

/* Промокод: чуть больше воздуха вокруг + не даём кнопке налипнуть */
.f45-modal__body .f45-lk-field { margin-bottom: 0.25rem; }

/* ============================================================
   Личный кабинет — профиль, покупки (v2)
   ============================================================ */
.f45-lk-profile { background: linear-gradient(135deg, #fafbfc 0%, #f4f5f7 100%); border-radius: 12px; padding: 1.25rem 1.5rem; }
.f45-lk-profile__row { display: flex; justify-content: space-between; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.f45-lk-profile__row:last-child { border-bottom: 0; }
.f45-lk-profile__k { color: var(--f45-muted); font-size: 0.9375rem; }
.f45-lk-profile__v { color: var(--f45-navy); font-weight: 600; font-size: 1rem; text-align: right; }

.f45-lk-purchase { display: grid; grid-template-columns: 130px 1fr auto; gap: 0.75rem 1rem; align-items: baseline; padding: 0.75rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.f45-lk-purchase:last-child { border-bottom: 0; }
.f45-lk-purchase__time { color: var(--f45-muted); font-size: 0.875rem; }
.f45-lk-purchase__items { color: var(--f45-navy); font-size: 0.9375rem; }
.f45-lk-purchase__sum { font-family: 'Barlow Condensed', sans-serif; font-size: 1.125rem; color: var(--f45-navy); font-weight: 700; white-space: nowrap; }
.f45-lk-purchase__debt { color: var(--f45-red); font-size: 0.875rem; font-weight: 500; margin-left: 0.375rem; }

@media (max-width: 600px) {
  .f45-lk-purchase { grid-template-columns: 1fr; gap: 0.25rem; }
  .f45-lk-purchase__sum { text-align: left; }
  .f45-lk-profile__row { flex-direction: column; align-items: flex-start; gap: 0.125rem; }
  .f45-lk-profile__v { text-align: left; }
}

/* ============================================================
   Строка-сводка над расписанием (заменяет фильтры)
   ============================================================ */
.f45-sched__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem 0.75rem;
	margin: 0.25rem 0 1.25rem;
	padding: 0.85rem 1rem;
	background: linear-gradient(180deg, #FAFAFB 0%, #F4F4F6 100%);
	border: 1px solid #ECECEE;
	border-radius: 12px;
	font-family: 'Inter', sans-serif;
	font-size: 0.95rem;
	color: var(--f45-ink);
}
.f45-sched__summary:empty { display: none; }
.f45-sched__summary-date {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--f45-navy);
}
.f45-sched__summary-count {
	font-weight: 600;
	color: var(--f45-ink);
}
.f45-sched__summary-dirs {
	color: #6B6B70;
	font-size: 0.9rem;
}
.f45-sched__summary-sep {
	color: var(--f45-red);
	font-weight: 700;
	opacity: 0.7;
}

/* ============================================================
   Тэг направления как кликабельная кнопка + попап
   ============================================================ */
button.f45-class__dir.f45-dir-tag {
	appearance: none;
	border: 0;
	cursor: help;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.4;
	position: relative;
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}
button.f45-class__dir.f45-dir-tag::after {
	content: '?';
	display: inline-block;
	margin-left: 0.35rem;
	width: 12px;
	height: 12px;
	line-height: 12px;
	text-align: center;
	border-radius: 50%;
	background: currentColor;
	color: #fff;
	font-size: 0.65rem;
	opacity: 0.55;
	vertical-align: 1px;
}
button.f45-class__dir.f45-dir-tag:hover,
button.f45-class__dir.f45-dir-tag:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(0,0,0,0.08);
	outline: none;
}
button.f45-class__dir.f45-dir-tag:hover::after,
button.f45-class__dir.f45-dir-tag:focus-visible::after { opacity: 0.85; }

.f45-dir-popover {
	position: absolute;
	z-index: 9999;
	max-width: 320px;
	background: #fff;
	border: 1px solid #ECECEE;
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(15, 30, 63, 0.18);
	padding: 0.85rem 1rem;
	font-family: 'Inter', sans-serif;
	color: var(--f45-ink);
	animation: f45-dir-fade 0.14s ease-out;
}
@keyframes f45-dir-fade {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}
.f45-dir-popover.is-above { }
.f45-dir-popover__hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.4rem;
}
.f45-dir-popover__badge {
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.f45-dir-popover__close {
	appearance: none;
	background: transparent;
	border: 0;
	width: 24px;
	height: 24px;
	line-height: 1;
	font-size: 1.3rem;
	color: #9A9AA0;
	cursor: pointer;
	border-radius: 6px;
}
.f45-dir-popover__close:hover { background: #F4F4F6; color: var(--f45-ink); }
.f45-dir-popover__text {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: #3A3A40;
}
@media (max-width: 480px) {
	.f45-dir-popover { max-width: calc(100vw - 24px); }
}

/* ============================================================
   Компактная сетка абонементов + красная плитка «Пробная неделя»
   ============================================================ */
.f45-prices--compact .f45-prices__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem;
}
@media (max-width: 1200px) {
	.f45-prices--compact .f45-prices__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
	.f45-prices--compact .f45-prices__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.f45-prices--compact .f45-prices__grid { grid-template-columns: 1fr; }
}
/* В модалке «все варианты» — auto-fit, чтобы адаптироваться под контент */
.f45-prices--compact.f45-prices--modal .f45-prices__grid {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.f45-prices--compact .f45-price {
	padding: 1.1rem 1.15rem;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #ECECEE;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.f45-prices--compact .f45-price:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(15,30,63,0.08);
}
.f45-price__tag {
	align-self: flex-start;
	display: inline-block;
	padding: 0.15rem 0.55rem;
	border-radius: 999px;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	background: rgba(15,30,63,0.08);
	color: var(--f45-navy);
}
.f45-price__desc-wrap { position: relative; }
.f45-price__desc {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.45;
	color: #56565C;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.f45-price__desc-more {
	margin-top: 0.35rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--f45-red);
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	border-bottom: 1px dashed rgba(230,0,26,0.4);
	line-height: 1.2;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.f45-price__desc-more:hover { color: #C40613; border-color: rgba(230,0,26,0.8); }
.f45-price.f45-price--trial .f45-price__desc-more {
	color: #fff;
	border-bottom-color: rgba(255,255,255,0.55);
}
.f45-price.f45-price--trial .f45-price__desc-more:hover {
	color: #fff;
	border-bottom-color: #fff;
}
/* Модалка описания */
.f45-price-desc-modal { padding: 1rem 0.25rem 0.5rem; max-width: 620px; }
.f45-price-desc-modal h3 {
	margin: 0 0 0.75rem;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	font-size: 1.4rem;
	color: var(--f45-navy);
}
.f45-price-desc-modal p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #3C3C42;
	white-space: pre-wrap;
}
.f45-price__specs {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.8rem;
	line-height: 1.4;
	color: #56565C;
	margin: 0;
	padding: 0;
	list-style: none;
}
.f45-price__specs li {
	list-style: none;
	position: relative;
	padding-left: 0.85rem;
}
.f45-price__specs li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.5em;
	width: 5px; height: 5px; border-radius: 50%;
	background: var(--f45-red);
	opacity: 0.55;
}
.f45-price__spec-label {
	color: #8A8A90;
	font-weight: 500;
}
.f45-price.f45-price--trial .f45-price__spec-label { color: rgba(255,255,255,0.75); }

/* Красная плитка «Пробная неделя» (селекторы усилены — побеждают .f45-prices--compact .f45-price) */
.f45-prices .f45-price.f45-price--trial,
.f45-prices--compact .f45-price.f45-price--trial {
	background: linear-gradient(135deg, var(--f45-red) 0%, #C40613 100%) !important;
	color: #fff !important;
	border: 0 !important;
	position: relative;
	overflow: hidden;
}
.f45-price.f45-price--trial::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 60%);
	pointer-events: none;
}
.f45-price.f45-price--trial > * { position: relative; z-index: 1; }
.f45-price.f45-price--trial h4,
.f45-price.f45-price--trial .f45-price__desc,
.f45-price.f45-price--trial .f45-price__specs,
.f45-price.f45-price--trial .f45-price__specs li { color: #fff; }
.f45-price.f45-price--trial .f45-price__tag {
	background: rgba(255,255,255,0.22);
	color: #fff;
}
.f45-price.f45-price--trial .f45-price__specs li::before { background: #fff; opacity: 0.7; }
.f45-price.f45-price--trial .f45-price__amount strong { color: #fff; }
.f45-price.f45-price--trial .f45-price__old { color: rgba(255,255,255,0.7); }
.f45-price.f45-price--trial .f45-price__btn,
.f45-prices--compact .f45-price.f45-price--trial .f45-price__btn {
	background: #fff !important;
	color: var(--f45-red) !important;
	font-weight: 700;
}
.f45-price.f45-price--trial .f45-price__btn:hover { background: #F4F4F6; color: var(--f45-red); }

/* Заметка про персональные тренировки между сеткой и кнопкой */
.f45-prices__note {
	text-align: center;
	max-width: 640px;
	margin: 1.75rem auto 0;
	color: #4A4A4E;
	font-size: 0.95rem;
	line-height: 1.55;
}

/* Кликабельная карточка абонемента (кроме trial) */
.f45-price.f45-price--clickable { cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.f45-price.f45-price--clickable:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(27,42,78,0.08); }
.f45-price.f45-price--clickable:focus-visible { outline: 2px solid var(--f45-navy); outline-offset: 2px; }

/* Кнопка «Посмотреть все варианты» */
.f45-prices__more {
	text-align: center;
	margin: 1.5rem 0 0;
}
.f45-prices__more-btn {
	appearance: none;
	background: transparent;
	border: 2px solid var(--f45-navy);
	color: var(--f45-navy);
	padding: 0.7rem 1.5rem;
	border-radius: 999px;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.15s ease;
}
.f45-prices__more-btn:hover {
	background: var(--f45-navy);
	color: #fff;
}

/* =========================================================================
 * ЛК app-режим (когда клиент залогинен на /lk/)
 * body.f45-lk-app — маркер выставляется JS'ом после /me { authed: true }
 * ========================================================================= */

/* Скрываем hero-баннер, footer, floating CTA и membership hint */
body.f45-lk-app #account > .f45-container > div:first-of-type,
body.f45-lk-app #account > .f45-container > p:last-of-type,
body.f45-lk-app #f45-membership-hint,
body.f45-lk-app .f45-footer,
body.f45-lk-app .f45-floating-cta,
body.f45-lk-app .f45-header__cta,
body.f45-lk-app .f45-header .f45-nav__account,
body.f45-lk-app .f45-nav__cta {
	display: none !important;
}
body.f45-lk-app #account {
	padding-top: 0 !important;
	padding-bottom: 2rem !important;
	background: transparent;
}
body.f45-lk-app { background: #F7F8FA; }

/* App-контейнер */
.lk-app { max-width: 1180px; margin: 0 auto; padding: 1rem 0 2rem; }

/* Hello bar */
.lk-hello { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.lk-hello__left { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.lk-avatar-lg {
	width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
	background: linear-gradient(135deg, #E6001A 0%, #FF5C6D 100%);
	color: #fff; display: flex; align-items: center; justify-content: center;
	font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: 1.4rem;
}
.lk-page-title { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 700; line-height: 1.1; margin: 0; }
.lk-page-subtitle { color: var(--f45-ink-2, #4A5578); font-size: 0.9rem; margin: 4px 0 0; }
.lk-logout-btn {
	padding: 0.55rem 1rem; background: transparent;
	border: 1px solid var(--f45-line); border-radius: 999px;
	font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem;
	text-transform: uppercase; letter-spacing: 0.03em;
	color: var(--f45-ink-2, #4A5578); cursor: pointer;
	display: inline-flex; align-items: center; gap: 0.4rem;
}
.lk-logout-btn:hover { border-color: var(--f45-red); color: var(--f45-red); }

/* Табы */
.lk-tabs {
	display: flex; gap: 0.25rem; background: #fff; padding: 0.35rem;
	border-radius: 999px; box-shadow: 0 2px 8px rgba(11,20,68,0.04);
	margin-bottom: 1.5rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.lk-tabs::-webkit-scrollbar { display: none; }
.lk-tab {
	flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.65rem 1.15rem; border-radius: 999px;
	font-weight: 600; font-size: 0.9rem; color: var(--f45-ink-2, #4A5578);
	cursor: pointer; transition: background 0.15s, color 0.15s; white-space: nowrap;
	border: none; background: transparent; font-family: inherit;
}
.lk-tab:hover { color: var(--f45-ink); }
.lk-tab.is-active { background: var(--f45-ink); color: #fff; }
.lk-tab svg { flex-shrink: 0; }
.lk-tab__badge { background: var(--f45-red); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; min-width: 18px; text-align: center; }

/* Panes */
.lk-pane { display: none; flex-direction: column; gap: 1.25rem; }
.lk-pane.is-active { display: flex; }

/* Карточка */
.lk-card { background: #fff; border-radius: 20px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(11,20,68,0.04); }
.lk-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; gap: 0.75rem; flex-wrap: wrap; }
.lk-card__title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.15rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; margin: 0; }
.lk-card__link { color: var(--f45-red); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; }
.lk-card__empty { color: var(--f45-ink-2, #4A5578); font-size: 0.92rem; padding: 0.5rem 0; }

/* Membership hero */
.lk-membership { background: linear-gradient(135deg, #0B1444 0%, #1E2C6E 100%); color: #fff; position: relative; overflow: hidden; }
.lk-membership::after { content: ''; position: absolute; top: -40px; right: -40px; width: 220px; height: 220px; background: radial-gradient(circle, rgba(230,0,26,0.35) 0%, transparent 70%); pointer-events: none; }
.lk-membership__eyebrow { font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.6rem; }
.lk-membership__badge { display: inline-flex; align-items: center; padding: 3px 10px; background: rgba(230,0,26,0.85); color: #fff; border-radius: 999px; font-size: 0.65rem; letter-spacing: 0.08em; font-weight: 700; }
.lk-progress__bar.is-infinite .lk-progress__fill { background: linear-gradient(90deg, #E6001A 0%, #FF5C6D 50%, #E6001A 100%); background-size: 200% 100%; animation: lk-shimmer 2.5s linear infinite; }
@keyframes lk-shimmer { 0% { background-position: 0% 0%; } 100% { background-position: 200% 0%; } }
.lk-membership h2.lk-membership__name,
.lk-membership .lk-membership__name { font-family: 'Barlow Condensed', sans-serif; font-size: 1.6rem; font-weight: 700; margin: 0 0 1rem; color: #fff; }
.lk-membership__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.25rem; position: relative; z-index: 1; }
.lk-membership__stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); margin-bottom: 4px; }
.lk-membership__stat-value { font-family: 'Barlow Condensed', sans-serif; font-size: 1.75rem; font-weight: 700; }
.lk-progress { position: relative; z-index: 1; }
.lk-progress__bar { height: 8px; background: rgba(255,255,255,0.15); border-radius: 999px; overflow: hidden; }
.lk-progress__fill { height: 100%; background: linear-gradient(90deg, #E6001A 0%, #FF5C6D 100%); border-radius: 999px; transition: width 0.4s ease; }
.lk-progress__meta { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* Grid */
.lk-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 900px) { .lk-grid-2 { grid-template-columns: 1fr; } }

/* Ближайшая запись */
.lk-appt { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: var(--f45-bg, #F7F8FA); border-radius: 12px; }
.lk-appt + .lk-appt { margin-top: 0.5rem; }
.lk-appt__date { width: 56px; height: 56px; flex-shrink: 0; background: #fff; border: 1px solid var(--f45-line); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; }
.lk-appt__day { font-size: 1.35rem; font-weight: 700; line-height: 1; }
.lk-appt__month { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--f45-ink-2, #4A5578); margin-top: 2px; }
.lk-appt__info { flex: 1; min-width: 0; }
.lk-appt__class { font-weight: 700; font-size: 1rem; }
.lk-appt__meta { font-size: 0.85rem; color: var(--f45-ink-2, #4A5578); margin-top: 3px; }
.lk-appt__cancel { padding: 0.5rem 0.9rem; background: transparent; border: 1px solid var(--f45-line); border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--f45-ink-2, #4A5578); cursor: pointer; text-transform: uppercase; letter-spacing: 0.03em; font-family: inherit; }
.lk-appt__cancel:hover { border-color: var(--f45-red); color: var(--f45-red); }
.lk-appt__cancel:disabled { opacity: 0.5; cursor: wait; }

/* Слоты */
.lk-slots { display: flex; flex-direction: column; gap: 0.75rem; }
.lk-slot { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 1rem; border: 1px solid var(--f45-line); border-radius: 12px; transition: border-color 0.15s, transform 0.15s; }
.lk-slot:hover { border-color: var(--f45-red); transform: translateY(-1px); }
.lk-slot__time { font-family: 'Barlow Condensed', sans-serif; font-size: 1.35rem; font-weight: 700; min-width: 60px; }
.lk-slot__body { flex: 1; min-width: 0; }
.lk-slot__day { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--f45-ink-2, #4A5578); }
.lk-slot__title { font-weight: 600; font-size: 0.95rem; margin-top: 2px; }
.lk-slot__trainer { font-size: 0.82rem; color: var(--f45-ink-2, #4A5578); margin-top: 2px; }
.lk-slot__btn { padding: 0.55rem 1rem; background: var(--f45-ink); color: #fff; border: none; border-radius: 999px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; cursor: pointer; }
.lk-slot__btn:hover { background: var(--f45-red); }
.lk-slot__btn:disabled { opacity: 0.5; cursor: wait; }

/* Actions */
.lk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 720px) { .lk-actions { grid-template-columns: 1fr; } }
.lk-action { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border: 1px solid var(--f45-line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.lk-action:hover { border-color: var(--f45-red); transform: translateY(-1px); text-decoration: none; }
.lk-action__icon { width: 40px; height: 40px; border-radius: 12px; background: rgba(230,0,26,0.08); color: var(--f45-red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lk-action__text { font-weight: 600; font-size: 0.9rem; color: var(--f45-ink); }
.lk-action__sub { font-size: 0.78rem; color: var(--f45-ink-2, #4A5578); margin-top: 2px; }

/* Профиль */
.lk-profile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.lk-profile-field__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--f45-ink-2, #4A5578); margin-bottom: 4px; }
.lk-profile-field__value { font-weight: 600; font-size: 1rem; word-break: break-word; }

/* Абонементы витрина — устаревшие стили удалены; актуальные .lk-shop-grid/.lk-shop-card ниже (в блоке /prices-стиля). */
.lk-shop-card__btn:disabled { opacity: 0.5; cursor: wait; }

/* История */
.lk-history-list { display: flex; flex-direction: column; }
.lk-history-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--f45-line); }
.lk-history-item:last-child { border-bottom: none; }
.lk-history-item__date { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem; min-width: 90px; }
.lk-history-item__title { flex: 1; min-width: 0; font-size: 0.92rem; }
.lk-history-item__meta { color: var(--f45-ink-2, #4A5578); font-size: 0.85rem; }
.lk-history-item__amount { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1rem; }

/* Модалка чек-аута */
.lk-modal-backdrop { position: fixed; inset: 0; background: rgba(11,20,68,0.5); z-index: 200; display: none; align-items: center; justify-content: center; padding: 1rem; }
.lk-modal-backdrop.is-open { display: flex; }
.lk-modal { background: #fff; border-radius: 20px; max-width: 480px; width: 100%; padding: 1.75rem; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(11,20,68,0.25); }
.lk-modal__title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.5rem; font-weight: 700; margin: 0 0 0.5rem; }
.lk-modal__sub { color: var(--f45-ink-2, #4A5578); font-size: 0.9rem; margin: 0 0 1.25rem; }
.lk-modal__row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--f45-line); font-size: 0.95rem; }
.lk-modal__row:last-of-type { border-bottom: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.25rem; padding-top: 0.75rem; }
.lk-modal__actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.lk-modal__btn { flex: 1; padding: 0.85rem 1rem; border-radius: 999px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.95rem; cursor: pointer; border: none; }
.lk-modal__btn--primary { background: var(--f45-red); color: #fff; }
.lk-modal__btn--primary:hover { background: #C40613; }
.lk-modal__btn--primary:disabled { opacity: 0.5; cursor: wait; }
.lk-modal__btn--ghost { background: transparent; border: 1px solid var(--f45-line); color: var(--f45-ink-2, #4A5578); }
.lk-modal__error { color: var(--f45-red); font-size: 0.9rem; margin-top: 1rem; }
.lk-modal__success { color: var(--f45-green); font-size: 0.95rem; margin-top: 1rem; font-weight: 600; }

/* Мобильно */
@media (max-width: 720px) {
	.lk-page-title { font-size: 1.5rem; }
	.lk-membership__name { font-size: 1.35rem; }
	.lk-hello { margin-bottom: 1rem; }
	.lk-logout-btn { padding: 0.45rem 0.85rem; font-size: 0.8rem; }
	.lk-card { padding: 1.15rem; }
}

/* ---- LK: карточка абонемента в списке "Мои абонементы" ---- */
.lk-ticket { padding: 1rem 1.15rem; background: var(--f45-bg, #F7F8FA); border-radius: 14px; border: 1px solid transparent; }
.lk-ticket + .lk-ticket { margin-top: 0.6rem; }
.lk-ticket.is-muted { opacity: 0.65; }
.lk-ticket__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.lk-ticket__title-wrap { flex: 1; min-width: 0; }
.lk-ticket__title { margin: 0 0 0.4rem; font-family: 'Barlow Condensed', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--f45-ink); line-height: 1.15; }
.lk-ticket__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lk-ticket-chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 0.68rem; letter-spacing: 0.06em; font-weight: 700; text-transform: uppercase; }
.lk-ticket-chip--active { background: rgba(34, 197, 94, 0.12); color: #15803D; }
.lk-ticket-chip--freeze { background: rgba(59, 130, 246, 0.12); color: #1D4ED8; }
.lk-ticket-chip--muted { background: rgba(148, 163, 184, 0.18); color: #64748B; }
.lk-ticket-chip--type { background: rgba(11, 20, 68, 0.08); color: var(--f45-navy, #0B1444); }
.lk-ticket__right { text-align: right; flex-shrink: 0; }
.lk-ticket-value { font-family: 'Barlow Condensed', sans-serif; font-size: 1.35rem; font-weight: 700; color: var(--f45-ink); line-height: 1; }
.lk-ticket-value-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--f45-ink-2, #4A5578); margin-top: 3px; }
.lk-ticket-bar { height: 6px; background: rgba(11,20,68,0.08); border-radius: 999px; overflow: hidden; }
.lk-ticket-bar__fill { height: 100%; background: linear-gradient(90deg, #E6001A 0%, #FF5C6D 100%); border-radius: 999px; transition: width 0.4s ease; }
.lk-ticket-bar__fill.is-infinite { background: linear-gradient(90deg, #E6001A 0%, #FF5C6D 50%, #E6001A 100%); background-size: 200% 100%; animation: lk-shimmer 2.5s linear infinite; }
.lk-ticket-meta { font-size: 0.78rem; color: var(--f45-ink-2, #4A5578); margin-top: 6px; }
@media (max-width: 640px) {
	.lk-ticket__head { flex-direction: column; gap: 0.5rem; }
	.lk-ticket__right { text-align: left; }
}

/* ==================================================================
 * LK: Табы дней в расписании
 * ================================================================== */
.lk-day-tabs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 0 0 8px;
	margin: 0 0 1rem;
	scrollbar-width: none;
}
.lk-day-tabs::-webkit-scrollbar { display: none; }
.lk-day-tab {
	flex: 1 0 auto;
	min-width: 88px;
	padding: 10px 12px;
	background: #F1F3F7;
	border: 1px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	text-align: center;
	transition: all 0.15s ease;
	font-family: inherit;
	color: var(--f45-ink, #0B1444);
}
.lk-day-tab:hover { background: #E6E9EF; }
.lk-day-tab.is-active {
	background: var(--f45-navy, #0B1444);
	color: #fff;
	border-color: var(--f45-navy, #0B1444);
}
.lk-day-tab__wd {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.75;
	font-weight: 700;
}
.lk-day-tab__num {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1;
	margin: 4px 0;
}
.lk-day-tab__cnt {
	font-size: 0.7rem;
	opacity: 0.7;
}
.lk-day-tab.is-active .lk-day-tab__cnt { opacity: 0.85; }
.lk-day-pane { display: none; }
.lk-day-pane.is-active { display: block; }
@media (max-width: 640px) {
	.lk-day-tab { min-width: 72px; padding: 8px 10px; }
	.lk-day-tab__num { font-size: 1.3rem; }
}

/* ==================================================================
 * LK: Компактная сетка тайлов витрины (Абонементы)
 * ================================================================== */
.lk-shop-section { margin-top: 1rem; }
.lk-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
}
.lk-tile {
	padding: 12px 14px;
	background: #F7F8FA;
	border: 1px solid rgba(11,20,68,0.08);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	transition: all 0.15s ease;
}
.lk-tile:hover {
	border-color: rgba(230,0,26,0.4);
	box-shadow: 0 4px 12px rgba(11,20,68,0.06);
}
.lk-tile__name {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.15;
	color: var(--f45-ink, #0B1444);
	min-height: 2.3em;
}
.lk-tile__meta {
	font-size: 0.72rem;
	color: var(--f45-ink-2, #64748B);
	min-height: 1em;
}
.lk-tile__price {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1.1rem;
	font-weight: 800;
	color: var(--f45-ink, #0B1444);
	margin-top: 4px;
}
.lk-tile__price-old {
	font-size: 0.78rem;
	color: #94A3B8;
	text-decoration: line-through;
	font-weight: 500;
	margin-left: 4px;
}
.lk-tile__btn {
	margin-top: 8px;
	padding: 7px 10px;
	background: var(--f45-red, #E6001A);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: background 0.15s;
}
.lk-tile__btn:hover { background: #C4001A; }
.lk-tile--trial {
	background: linear-gradient(135deg, #FFF5F5 0%, #FFE8EA 100%);
	border-color: rgba(230,0,26,0.35);
	position: relative;
}
.lk-tile--trial::before {
	content: 'Пробный';
	position: absolute;
	top: 6px;
	right: 8px;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 0.62rem;
	font-weight: 800;
	color: var(--f45-red, #E6001A);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
@media (max-width: 640px) {
	.lk-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
	.lk-tile { padding: 10px 11px; }
	.lk-tile__name { font-size: 0.9rem; min-height: 2.6em; }
	.lk-tile__price { font-size: 1rem; }
}

/* Hero: усиленный процент слева */
.lk-membership .lk-progress__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; }
.lk-membership .lk-progress__meta > span:first-child {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 1.15rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.02em;
}
.lk-membership .lk-progress__meta > span:last-child {
	font-size: 0.85rem;
	color: rgba(255,255,255,0.75);
}

/* ==============================================================
 * v3: Запись в 1 клик — inline actions, тост, «Я записан», ошибки
 * ============================================================== */

/* Слот с активной записью */
.lk-slot--booked { border-color: #16a34a; background: rgba(22,163,74,0.04); }
.lk-slot--booked:hover { border-color: #16a34a; }

/* Группа действий в слоте (Я записан + Отменить) */
.lk-slot__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-shrink: 0;
}

/* Бейдж «Я записан» */
.lk-slot__booked {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.7rem;
	background: rgba(22,163,74,0.12);
	color: #16a34a;
	border-radius: 999px;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	white-space: nowrap;
}
.lk-slot__booked svg { display: block; flex-shrink: 0; }

/* Кнопка «Отменить» — компактная контурная */
.lk-slot__btn--cancel {
	background: transparent;
	color: var(--f45-ink);
	border: 1px solid var(--f45-line);
	padding: 0.45rem 0.85rem;
	font-size: 0.8rem;
}
.lk-slot__btn--cancel:hover { background: var(--f45-red); border-color: var(--f45-red); color: #fff; }

/* Inline-ошибка под слотом */
.lk-slot__error {
	flex-basis: 100%;
	margin-top: 0.5rem;
	padding: 0.6rem 0.85rem;
	background: rgba(220,38,38,0.06);
	border: 1px solid rgba(220,38,38,0.25);
	border-radius: 8px;
	color: #b91c1c;
	font-size: 0.9rem;
	line-height: 1.4;
}
.lk-slot__error[hidden] { display: none; }
.lk-slot__error a {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.25rem 0.7rem;
	background: var(--f45-red);
	color: #fff;
	border-radius: 999px;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none;
}
.lk-slot__error a:hover { background: var(--f45-ink); }

/* Слот должен уметь wrap для error */
.lk-slot { flex-wrap: wrap; }

/* Toast bottom-center */
.f45-lk-toast {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	padding: 0.85rem 1.5rem;
	background: #16a34a;
	color: #fff;
	border-radius: 999px;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	box-shadow: 0 8px 32px rgba(0,0,0,0.25);
	z-index: 10000;
	opacity: 0;
	transition: opacity 0.25s, transform 0.25s;
	pointer-events: none;
	max-width: calc(100vw - 2rem);
	text-align: center;
}
.f45-lk-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* Мобилка: кнопки в слоте компактнее */
@media (max-width: 640px) {
	.lk-slot__actions { gap: 0.35rem; }
	.lk-slot__booked { padding: 0.3rem 0.55rem; font-size: 0.72rem; }
	.lk-slot__btn--cancel { padding: 0.35rem 0.65rem; font-size: 0.72rem; }
	.f45-lk-toast { bottom: 1rem; font-size: 0.85rem; padding: 0.7rem 1.2rem; }
}

/* ==== LK: shop cards в стиле /prices ==== */
.lk-shop-section { overflow: hidden; }
.lk-shop-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	align-items: stretch;
	gap: 1rem;
	margin-top: 0.75rem;
	box-sizing: border-box;
	width: 100%;
}
.lk-shop-grid > .f45-price {
	min-width: 0;
	box-sizing: border-box;
}
.lk-shop-card {
	/* Равная высота через stretch грида; margin-top:auto в amount уже выравнивает кнопку */
	height: 100%;
}
.lk-shop-card .f45-price__specs {
	list-style: none;
	padding: 0;
	margin: 0.35rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.82rem;
	color: #56565C;
}
.lk-shop-card .f45-price__spec-label {
	color: #6B6B70;
	font-weight: 600;
	margin-right: 0.25rem;
}
.lk-shop-card .f45-price__amount {
	margin-top: auto;
}
.lk-shop-card__btn {
	border: 0;
	cursor: pointer;
	width: 100%;
	margin-top: 0.5rem;
}
/* Тег Подписка — фиолетовый */
.f45-price__tag--subscription {
	background: rgba(124, 58, 237, 0.12);
	color: #6D28D9;
}
/* Тег Пакет тренировок — синий (по умолчанию, но явнее) */
.f45-price__tag--package {
	background: rgba(15,30,63,0.08);
	color: var(--f45-navy);
}
/* Тег Безлимитный — красный F45 */
.f45-price__tag--unlimited {
	background: rgba(227, 6, 19, 0.10);
	color: var(--f45-red);
}
.f45-price__tag--trial {
	background: rgba(227, 6, 19, 0.14);
	color: var(--f45-red);
}
/* Left rail акцент для подписки */
.f45-price.f45-price--subscription {
	border-left: 3px solid #7C3AED;
}
.f45-price.f45-price--unlimited {
	border-left: 3px solid var(--f45-red);
}
.f45-price.f45-price--package {
	border-left: 3px solid var(--f45-navy);
}

/* ==== LK: тег направления в слоте расписания ==== */
.lk-slot__title-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.lk-slot__dir {
	display: inline-block;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 0.72rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.4;
	white-space: nowrap;
}
@media (max-width: 640px) {
	.lk-slot__dir { font-size: 0.68rem; padding: 0.08rem 0.45rem; }
}

/* ============================================================================
 * ЛК — Экран входа (split hero + form)
 * Отображается на /lk/ для анонимного пользователя
 * ============================================================================ */

/* На странице входа скрываем стандартную hero-обёртку .f45-section вокруг ЛК:
   #account.f45-section даёт padding и заголовок «Ваш кабинет клиента F45»,
   на login-экране они не нужны — экран сам полноэкранный. */
body.f45-lk-login-page { padding-left: 0 !important; padding-right: 0 !important; }
body.f45-lk-login-page #account { padding: 0 !important; background: transparent; margin: 0 !important; }
body.f45-lk-login-page #account > .f45-container > div:first-child { display: none; }
body.f45-lk-login-page #account > .f45-container > p:last-child { display: none; }
body.f45-lk-login-page #account > .f45-container { max-width: none; padding: 0; }
body.f45-lk-login-page #f45-membership-hint { display: none; }
body.f45-lk-login-page .f45-lk { min-height: calc(100vh - 72px); }
body.f45-lk-login-page .f45-floating-cta { display: none !important; }
body.f45-lk-login-page .f45-mobile-bar { display: none !important; }
/* Убираем padding у body только на login-странице (обычно 1rem–2rem по бокам) */
body.f45-lk-login-page .wp-block-post-content { margin: 0 !important; }

.lk-login {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	min-height: calc(100vh - 72px);
	background: #fff;
	overflow: hidden;
}

/* HERO (левая колонка на desktop, верхняя на mobile) */
.lk-login__hero {
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(2rem, 4vw, 3.5rem);
	min-height: 480px;
}
.lk-login__hero::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 4px;
	background: var(--f45-red);
}
.lk-login__hero-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	gap: 2rem;
}
.lk-login__logo {
	display: inline-flex;
	align-items: baseline;
	gap: 0.55rem;
	text-decoration: none;
	color: #fff;
	font-family: 'Barlow Condensed', sans-serif;
	line-height: 1;
	align-self: flex-start;
}
.lk-login__logo:hover { text-decoration: none; color: #fff; }
.lk-login__logo-mark {
	background: var(--f45-red);
	color: #fff;
	padding: 0.35rem 0.6rem 0.3rem;
	font-weight: 800;
	font-size: 1.35rem;
	letter-spacing: 0.02em;
	border-radius: 4px;
}
.lk-login__logo-city {
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.9;
}
.lk-login__logo--mobile { display: none; }

.lk-login__hero-copy {
	position: relative;
	max-width: 520px;
}
.lk-login__hero-accent {
	display: block;
	width: 48px;
	height: 4px;
	background: var(--f45-red);
	margin-bottom: 1.25rem;
}
.lk-login__hero-title {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 800;
	font-size: clamp(2.6rem, 5vw, 4.4rem);
	text-transform: uppercase;
	line-height: 0.95;
	letter-spacing: 0.01em;
	margin: 0 0 1rem;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.lk-login__hero-lede {
	font-size: 1.0625rem;
	line-height: 1.5;
	margin: 0;
	color: rgba(255,255,255,0.92);
	max-width: 460px;
}
.lk-login__hero-bullets {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	gap: clamp(1rem, 3vw, 2.5rem);
	flex-wrap: wrap;
}
.lk-login__hero-bullets li {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 600;
	font-size: 0.88rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: rgba(255,255,255,0.85);
	line-height: 1.35;
	max-width: 150px;
}
.lk-login__hero-bullets li span {
	display: block;
	font-weight: 800;
	font-size: 2.2rem;
	color: #fff;
	line-height: 1;
	margin-bottom: 0.35rem;
}

/* PANEL (правая колонка на desktop, нижняя на mobile) */
.lk-login__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
	background: #fff;
}
.lk-login__panel-inner {
	width: 100%;
	max-width: 420px;
}
.lk-login__title {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 800;
	font-size: 2rem;
	text-transform: uppercase;
	color: var(--f45-ink);
	margin: 0 0 0.5rem;
	letter-spacing: 0.01em;
	line-height: 1.1;
}
.lk-login__subtitle {
	color: var(--f45-muted);
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
}
.lk-login__subtitle--pending {
	display: inline-block;
	background: rgba(255, 189, 46, 0.12);
	border-left: 3px solid var(--f45-yellow, #ffbd2e);
	padding: 0.625rem 0.875rem;
	border-radius: 6px;
	color: var(--f45-fg, #0a0a0a);
	font-weight: 600;
	font-size: 0.9375rem;
	margin: 0 0 1.5rem;
}

/* Сегментированные табы SMS / Пароль */
.lk-login__tabs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0;
	background: #F2F2F4;
	padding: 4px;
	border-radius: 12px;
	margin-bottom: 1.25rem;
}
.lk-login__tab {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 0.7rem 0.5rem;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--f45-muted);
	cursor: pointer;
	border-radius: 9px;
	transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.lk-login__tab:hover { color: var(--f45-ink); }
.lk-login__tab.is-active {
	background: #fff;
	color: var(--f45-ink);
	box-shadow: 0 1px 3px rgba(10,10,10,0.08), 0 4px 12px rgba(10,10,10,0.05);
}

/* Форма */
.lk-login__form {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.lk-login__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	position: relative;
}
.lk-login__field > span {
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 600;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--f45-muted);
}
.lk-login__field input {
	width: 100%;
	min-height: 52px;
	padding: 0.85rem 1rem;
	border: 1.5px solid var(--f45-line);
	border-radius: 10px;
	background: #fff;
	font-size: 1rem;
	font-family: inherit;
	color: var(--f45-ink);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
}
.lk-login__field input:hover { border-color: #C7C7CC; }
.lk-login__field input:focus {
	outline: none;
	border-color: var(--f45-red);
	box-shadow: 0 0 0 3px rgba(227,6,19,0.14);
}
.lk-login__field input::placeholder { color: #A1A1A6; }

.lk-login__field--icon input { padding-left: 2.75rem; }
.lk-login__ficon {
	position: absolute;
	left: 0.95rem;
	bottom: 15px;
	font-size: 1.1rem;
	color: var(--f45-muted);
	pointer-events: none;
	line-height: 1;
}

.lk-login__method {
	margin: -0.15rem 0 0;
	color: var(--f45-muted);
	font-size: 0.85rem;
	line-height: 1.4;
}
.lk-login__hint {
	margin: 0 0 0.35rem;
	color: var(--f45-ink);
	font-size: 0.9375rem;
	line-height: 1.45;
}
.lk-login__hint b { font-weight: 700; }

.lk-login__submit {
	appearance: none;
	background: var(--f45-red);
	color: #fff;
	border: 0;
	min-height: 54px;
	padding: 0 1.5rem;
	border-radius: 10px;
	font-family: 'Barlow Condensed', sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	cursor: pointer;
	margin-top: 0.35rem;
	transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
	box-shadow: 0 6px 18px rgba(227,6,19,0.22);
}
.lk-login__submit:hover:not([disabled]) {
	background: var(--f45-red-hover);
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(227,6,19,0.28);
}
.lk-login__submit[disabled] { opacity: 0.6; cursor: default; }

.lk-login__link {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--f45-muted);
	font-size: 0.875rem;
	text-decoration: underline;
	cursor: pointer;
	padding: 0.35rem 0;
	align-self: flex-start;
}
.lk-login__link:hover { color: var(--f45-ink); }

.lk-login__error {
	background: rgba(227,6,19,0.08);
	border: 1px solid rgba(227,6,19,0.25);
	color: #C40613;
	border-radius: 10px;
	padding: 0.75rem 0.9rem;
	font-size: 0.9rem;
	line-height: 1.45;
}

.lk-login__foot {
	margin: 1.6rem 0 0;
	font-size: 0.9375rem;
	color: var(--f45-muted);
	text-align: center;
	border-top: 1px solid var(--f45-line);
	padding-top: 1.25rem;
}
.lk-login__foot a {
	color: var(--f45-red);
	font-weight: 600;
	text-decoration: none;
}
.lk-login__foot a:hover { color: var(--f45-red-hover); text-decoration: underline; }

/* Mobile: stacked hero сверху + форма ниже с закруглением */
@media (max-width: 899px) {
	.lk-login {
		grid-template-columns: 1fr;
		min-height: 100vh;
	}
	.lk-login__hero {
		min-height: 42vh;
		background-image: linear-gradient(180deg, rgba(11,20,68,0.25), rgba(10,10,10,0.80)), url(media/lk-login-hero-mobile.jpg) !important;
		padding: 1.5rem 1.25rem 3rem;
	}
	.lk-login__hero-bullets { gap: 1.25rem; }
	.lk-login__hero-bullets li { font-size: 0.78rem; max-width: 100px; }
	.lk-login__hero-bullets li span { font-size: 1.7rem; }
	.lk-login__hero-title { font-size: clamp(2.2rem, 8vw, 3rem); }
	.lk-login__hero-lede { font-size: 0.95rem; }

	.lk-login__panel {
		margin-top: -24px;
		border-radius: 24px 24px 0 0;
		position: relative;
		z-index: 2;
		padding: 2rem 1.25rem 2.5rem;
		box-shadow: 0 -8px 30px rgba(10,10,10,0.08);
	}
	.lk-login__logo--mobile { display: none; } /* прячем всегда — на mobile hero видна */
	.lk-login__title { font-size: 1.5rem; }
	.lk-login__subtitle { font-size: 0.875rem; }
}

@media (max-width: 480px) {
	.lk-login__hero-bullets { gap: 0.8rem; }
	.lk-login__hero-bullets li:nth-child(3) { display: none; }
}

/* ==== Trial-gate (задача 4): скрытие CTA пробной для клиентов с историей ==== */
.f45-cta--hidden { display: none !important; }
/* Когда sticky-bar скрыт (клиент с историей) — убираем зарезервированный padding под ним */
body.f45-has-history { --f45-mobile-bar-h: 0px !important; }
body.f45-has-history .f45-mobile-bar { display: none !important; }
/* Плавающий CTA тоже уходит */
body.f45-has-history .f45-floating-cta { display: none !important; }

/* ============================================================
   Guest trial-checkout модалка (задача 1)
   Базовая структура .f45-modal / .f45-modal__dialog / .f45-modal__body
   уже определена выше; здесь — только специфика trial-checkout'а.
   ============================================================ */
.f45-trial-modal__dialog {
	max-width: 460px;
	width: calc(100% - 24px);
	padding: 32px 32px 28px;
	border-radius: 18px;
}
.f45-trial-modal__body { padding: 0; }
.f45-trial-modal__head { margin-bottom: 22px; }
.f45-trial-modal__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px;
	background: var(--f45-red);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 999px;
	margin-bottom: 12px;
}
.f45-trial-modal__title {
	margin: 0 0 8px;
	font-family: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
	font-weight: 800;
	font-size: 1.9rem;
	line-height: 1.05;
	color: var(--f45-ink);
	text-transform: uppercase;
	letter-spacing: 0.005em;
}
.f45-trial-modal__meta {
	display: flex;
	align-items: baseline;
	gap: 6px;
	color: var(--f45-muted);
	font-size: 0.95rem;
	flex-wrap: wrap;
}
.f45-trial-modal__meta b { color: var(--f45-ink); font-weight: 600; }
.f45-trial-modal__meta-sep { opacity: 0.55; }
.f45-trial-modal__price {
	color: var(--f45-red);
	font-weight: 800;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
}
.f45-trial-modal__form { display: flex; flex-direction: column; gap: 14px; }
.f45-trial-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 0.85rem;
	color: var(--f45-muted);
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.f45-trial-field > span { padding-left: 2px; }
.f45-trial-field input {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: 13px 16px;
	border: 1px solid var(--f45-line);
	border-radius: 12px;
	background: #fff;
	color: var(--f45-ink);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.f45-trial-field input:focus {
	outline: none;
	border-color: var(--f45-navy);
	box-shadow: 0 0 0 3px rgba(27,42,78,0.10);
}
.f45-trial-field input::placeholder { color: #A6A6AB; text-transform: none; }
.f45-trial-modal__agree {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.86rem;
	color: var(--f45-muted);
	line-height: 1.4;
	cursor: pointer;
	user-select: none;
	margin-top: 2px;
}
.f45-trial-modal__agree input { margin-top: 3px; accent-color: var(--f45-red); }
.f45-trial-modal__agree a { color: var(--f45-navy); text-decoration: underline; }
.f45-trial-modal__agree a:hover { color: var(--f45-red); }
.f45-trial-modal__submit {
	appearance: none;
	border: 0;
	background: var(--f45-red);
	color: #fff;
	padding: 15px 20px;
	border-radius: 12px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.15s, transform 0.05s;
	margin-top: 4px;
	box-shadow: 0 8px 20px rgba(227,6,19,0.18);
}
.f45-trial-modal__submit:hover { background: var(--f45-red-hover); }
.f45-trial-modal__submit:active { transform: translateY(1px); }
.f45-trial-modal__submit[disabled] { opacity: 0.6; cursor: not-allowed; }
.f45-trial-modal__submit--inline { padding: 10px 16px; margin-top: 0; font-size: 0.9rem; }
.f45-trial-modal__note {
	margin: 6px 0 0;
	font-size: 0.8rem;
	color: var(--f45-muted);
	line-height: 1.45;
}
.f45-trial-modal__note a { color: var(--f45-navy); text-decoration: underline; }
.f45-trial-modal__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
	flex-wrap: wrap;
}
.f45-trial-modal__link {
	background: transparent;
	border: 0;
	color: var(--f45-navy);
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	padding: 6px 4px;
	text-decoration: underline;
	text-decoration-color: rgba(27,42,78,0.35);
	text-underline-offset: 3px;
}
.f45-trial-modal__link:hover { color: var(--f45-red); text-decoration-color: var(--f45-red); }
.f45-trial-modal__spinner {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 3px solid rgba(27,42,78,0.15);
	border-top-color: var(--f45-red);
	animation: f45-trial-spin 0.8s linear infinite;
	margin: 4px auto 0;
}
@keyframes f45-trial-spin {
	to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
	.f45-trial-modal__dialog { padding: 26px 22px 22px; border-radius: 16px; }
	.f45-trial-modal__title { font-size: 1.6rem; }
	.f45-trial-modal__meta { font-size: 0.88rem; }
	.f45-trial-field input { padding: 12px 14px; font-size: 0.98rem; }
	.f45-trial-modal__submit { padding: 14px 18px; font-size: 0.98rem; }
}

/* Task 1 — extended fields (surname / birthday / sex) */
.f45-trial-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}
/* Лейблы Дата/Пол — гарантированно одинаковая высота:
 * пометка "необязательно" всегда на второй строке (flex-basis:100%),
 * min-height лейбла = 2 строки — инпут и радио-группа стартуют вровень на любой ширине */
.f45-trial-field > span {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  column-gap: 6px;
  row-gap: 0;
  line-height: 1.2;
}
.f45-trial-field--sex > span { display: flex; }
.f45-trial-field__opt {
  flex-basis: 100%;
  margin-top: 2px;
  font-style: normal;
  font-weight: 500;
  font-size: 0.7rem;
  color: #9A9A9F;
  text-transform: none;
  letter-spacing: 0;
}
.f45-trial-modal__radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.f45-trial-modal__radio {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 13px 12px;
  border: 1px solid var(--f45-line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  color: #2a2a2a;
  background: #fff;
  transition: all 0.15s ease;
  user-select: none;
}
.f45-trial-modal__radio:hover {
  border-color: #b30000;
}
.f45-trial-modal__radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.f45-trial-modal__radio:has(input:checked) {
  background: #b30000;
  border-color: #b30000;
  color: #fff;
}
/* Fallback for browsers without :has() */
.f45-trial-modal__radio input:checked ~ span { color: inherit; }
.f45-trial-field input[type="date"] {
  font-family: inherit;
  min-height: 48px;
  padding: 13px 16px;
}
@media (max-width: 480px) {
  .f45-trial-modal__grid { grid-template-columns: 1fr; }
  .f45-trial-modal__radio-group { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
 * PWA install banner (личный кабинет)
 * ============================================================= */
.f45-lk-install{
  display:flex;
  align-items:flex-start;
  gap:1rem;
  background:linear-gradient(135deg,#0B1444 0%,#1B2A6B 100%);
  color:#fff;
  border-radius:16px;
  padding:1.15rem 1.25rem;
  margin:0 0 1.25rem;
  box-shadow:0 8px 24px rgba(11,20,68,0.18);
  position:relative;
}
.f45-lk-install[hidden]{display:none;}
.f45-lk-install__icon{
  flex:0 0 auto;
  width:48px;
  height:48px;
  border-radius:12px;
  background:rgba(255,255,255,0.12);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.f45-lk-install__body{
  flex:1 1 auto;
  min-width:0;
}
.f45-lk-install__title,
.f45-lk__section .f45-lk-install__title {
  margin:0 0 0.25rem;
  font-family: inherit;
  font-size:1.05rem;
  line-height:1.3;
  font-weight:700;
  text-transform:none;
  letter-spacing:normal;
  color:#fff;
}
.f45-lk-install__desc{
  margin:0 0 0.85rem;
  font-size:0.9rem;
  line-height:1.4;
  color:rgba(255,255,255,0.85);
}
.f45-lk-install__actions{
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem 0.75rem;
  align-items:center;
}
.f45-lk-install__btn{
  appearance:none;
  border:0;
  padding:0.65rem 1.15rem;
  border-radius:999px;
  font-size:0.9rem;
  font-weight:600;
  font-family:inherit;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease;
}
.f45-lk-install__btn--primary{
  background:#E30613;
  color:#fff;
}
.f45-lk-install__btn--primary:hover{background:#c50510;}
.f45-lk-install__btn--primary:active{transform:translateY(1px);}
.f45-lk-install__dismiss{
  appearance:none;
  background:transparent;
  border:0;
  color:rgba(255,255,255,0.75);
  padding:0.5rem 0.5rem;
  font-size:0.85rem;
  cursor:pointer;
  font-family:inherit;
  text-decoration:underline;
}
.f45-lk-install__dismiss:hover{color:#fff;}
.f45-lk-install__ios-help{
  margin-top:0.9rem;
  padding:0.85rem 1rem;
  background:rgba(255,255,255,0.08);
  border-radius:10px;
  font-size:0.88rem;
  line-height:1.5;
}
.f45-lk-install__ios-help[hidden]{display:none;}
.f45-lk-install__ios-help ol{
  margin:0;
  padding-left:1.25rem;
  color:rgba(255,255,255,0.92);
}
.f45-lk-install__ios-help li + li{margin-top:0.35rem;}
.f45-lk-install__ios-help strong{color:#fff;}
.f45-lk-install__ios-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:22px;
  height:22px;
  border-radius:5px;
  background:rgba(255,255,255,0.15);
  color:#fff;
  vertical-align:middle;
  margin:0 0.15rem;
}
@media (max-width:480px){
  .f45-lk-install{
    flex-direction:column;
    padding:1rem;
    gap:0.75rem;
  }
  .f45-lk-install__icon{width:40px;height:40px;}
  .f45-lk-install__actions{gap:0.4rem;}
  .f45-lk-install__btn{width:100%;}
  .f45-lk-install__dismiss{width:100%;text-align:center;}
}

/* UX v4: toast-нотификации ЛК */
.f45-toast-host {
  position: fixed;
  top: 5rem;
  right: 1rem;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
  pointer-events: none;
}
.f45-toast {
  background: #1B1B21;
  color: #fff;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: auto;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.f45-toast.is-shown { opacity: 1; transform: translateX(0); }
.f45-toast--success { background: #12723D; }
.f45-toast--error { background: #B8050F; }
.f45-toast--info { background: #1B1B21; }
.f45-toast__icon {
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  min-width: 1.2rem;
}
.f45-toast__body { flex: 1; }
.f45-toast__title { font-weight: 700; margin-bottom: 0.15rem; }
.f45-toast__text { opacity: 0.92; font-size: 0.85rem; }
.f45-toast__close {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: 0.7;
}
.f45-toast__close:hover { opacity: 1; }

@media (max-width: 480px) {
  .f45-toast-host { top: auto; bottom: 1rem; left: 1rem; right: 1rem; max-width: none; }
  .f45-toast { transform: translateY(24px); }
  .f45-toast.is-shown { transform: translateY(0); }
}

/* ============ LK: Бонусный счёт (карточка в Обзоре) ============ */
.lk-bonus-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
}
.lk-bonus-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(230, 0, 26, 0.08);
  color: #E6001A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lk-bonus-card__body { flex: 1; min-width: 0; }
.lk-bonus-card__label {
  color: #4A5578;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}
.lk-bonus-card__value {
  color: #0A0D14;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

/* ============ LK: редактирование профиля ============ */
.lk-profile-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1px solid #E4E7EC;
  color: #4A5578;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lk-profile-edit-btn:hover {
  border-color: #E6001A;
  color: #E6001A;
}
.lk-profile-actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lk-profile-edit-btn--ghost {
  border-color: #F2F4F7;
  color: #667085;
}
.lk-login__forgot {
  display: inline-block;
  margin-top: 0.5rem;
  background: none;
  border: 0;
  padding: 0;
  color: #E6001A;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lk-login__forgot:hover { color: #B80014; }
.lk-profile-photo {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}
.lk-profile-photo img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #F2F4F7;
}
.lk-profile-edit {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #F2F4F7;
}
.lk-profile-edit__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.lk-profile-edit__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.lk-profile-edit__field span {
  color: #4A5578;
  font-size: 0.78rem;
  font-weight: 500;
}
.lk-profile-edit__field input[type="text"],
.lk-profile-edit__field input[type="email"],
.lk-profile-edit__field input[type="date"],
.lk-profile-edit__field select {
  padding: 0.55rem 0.75rem;
  border: 1px solid #E4E7EC;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #0A0D14;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
}
.lk-profile-edit__field input:focus,
.lk-profile-edit__field select:focus {
  border-color: #E6001A;
}
.lk-profile-edit__field input[type="file"] {
  padding: 0.35rem 0;
  font-size: 0.82rem;
}
.lk-profile-edit__photo-preview {
  margin-top: 0.5rem;
  min-height: 0;
}
.lk-profile-edit__photo-row { margin-bottom: 0.75rem; }
.lk-profile-edit__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid #F2F4F7;
  margin-top: 0.5rem;
}
.lk-profile-edit__error {
  color: #E6001A;
  font-size: 0.85rem;
  font-weight: 500;
}
.lk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.lk-btn--primary {
  background: #E6001A;
  color: #fff;
  border-color: #E6001A;
}
.lk-btn--primary:hover:not(:disabled) { background: #C50017; border-color: #C50017; }
.lk-btn--primary:disabled { opacity: 0.6; cursor: not-allowed; }
.lk-btn--ghost {
  background: transparent;
  color: #4A5578;
  border-color: #E4E7EC;
}
.lk-btn--ghost:hover { border-color: #4A5578; color: #0A0D14; }

/* Аватар шапки с фото (заменяет инициалы) */
.lk-avatar-lg--photo {
  padding: 0;
  overflow: hidden;
  background: #F2F4F7;
}
.lk-avatar-lg--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================================
 * Legal pages (/privacy/, /terms/)
 * ============================================================= */
.f45-legal {
	padding: 48px 0 96px;
	background: var(--f45-bg-alt, #F5F5F7);
	min-height: 60vh;
}
.f45-legal__container {
	max-width: 820px;
	margin: 0 auto;
	padding: 40px 32px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(11, 20, 68, 0.05);
}
.f45-legal__eyebrow {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--f45-red, #E30613);
	margin-bottom: 12px;
}
.f45-legal__title {
	font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
	font-size: clamp(1.75rem, 4vw, 2.4rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--f45-navy, #1B2A4E);
	margin: 0 0 28px;
}
.f45-legal__content {
	font-family: 'Inter', 'Barlow', Arial, sans-serif;
	font-size: 0.98rem;
	line-height: 1.7;
	color: #2A2A2E;
}
.f45-legal__h2 {
	font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--f45-navy, #1B2A4E);
	margin: 32px 0 12px;
	padding-top: 12px;
	border-top: 1px solid var(--f45-line, #E5E5E7);
}
.f45-legal__h2:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.f45-legal__content p { margin: 0 0 14px; }
.f45-legal__list {
	list-style: none;
	margin: 4px 0 14px;
	padding: 0;
}
.f45-legal__list li {
	position: relative;
	padding: 4px 0 4px 22px;
}
.f45-legal__list li::before {
	content: '';
	position: absolute;
	left: 6px;
	top: 15px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--f45-red, #E30613);
}
.f45-legal__content a {
	color: var(--f45-red, #E30613);
	text-decoration: underline;
	text-underline-offset: 2px;
	word-break: break-word;
}
.f45-legal__content a:hover { color: #B90410; }
@media (max-width: 640px) {
	.f45-legal { padding: 24px 0 48px; }
	.f45-legal__container { padding: 28px 20px; border-radius: 12px; margin: 0 12px; }
	.f45-legal__h2 { font-size: 1.15rem; margin: 24px 0 10px; }
}

/* =============================================================
 * Trial modal: info-\u0431\u043b\u043e\u043a (description / services / \u0443\u0441\u043b\u043e\u0432\u0438\u044f)
 * ============================================================= */
.f45-trial-modal__info {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 16px 18px;
	margin: 0 0 18px;
	background: var(--f45-bg-alt, #F5F5F7);
	border-radius: 14px;
	border: 1px solid var(--f45-line, #E5E5E7);
}
.f45-trial-modal__desc {
	font-family: 'Inter', 'Barlow', Arial, sans-serif;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #2A2A2E;
}
.f45-trial-modal__desc p { margin: 0 0 8px; }
.f45-trial-modal__desc p:last-child { margin: 0; }
.f45-trial-modal__info-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 0.86rem;
	color: var(--f45-muted, #6B6B70);
}
.f45-trial-modal__info-meta-item b {
	color: var(--f45-navy, #1B2A4E);
	font-weight: 700;
}
.f45-trial-modal__info-meta-item--recurrent {
	color: var(--f45-red, #E30613);
	font-weight: 600;
}
.f45-trial-modal__services-title {
	font-family: 'Barlow Condensed', 'Barlow', Arial, sans-serif;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--f45-navy, #1B2A4E);
	margin: 0 0 8px;
}
.f45-trial-modal__services ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.f45-trial-modal__services li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 6px 10px;
	background: #fff;
	border-radius: 8px;
	font-size: 0.9rem;
	color: #2A2A2E;
}
.f45-trial-modal__services li b {
	color: var(--f45-navy, #1B2A4E);
	font-weight: 700;
	white-space: nowrap;
}
.f45-trial-modal__restriction {
	font-size: 0.84rem;
	line-height: 1.5;
	color: var(--f45-muted, #6B6B70);
	padding-top: 10px;
	border-top: 1px dashed var(--f45-line, #E5E5E7);
}
.f45-trial-modal__restriction b {
	color: var(--f45-navy, #1B2A4E);
	font-weight: 700;
}
@media (max-width: 640px) {
	.f45-trial-modal__info { padding: 14px; gap: 12px; }
	.f45-trial-modal__desc { font-size: 0.88rem; }
}
