:root {
	--sf-shell-ink: #131614;
	--sf-shell-muted: #69736e;
	--sf-shell-accent: #57c97d;
	--sf-shell-accent-dark: #2f9d57;
	--sf-shell-surface: #fff;
	--sf-shell-soft: #eef5f0;
	--sf-shell-line: rgba(19, 22, 20, 0.11);
	--sf-shell-font: "Montserrat", Arial, sans-serif;
	--sf-shell-header-height: 76px;
}

/* Sticky header offset for hash targets (Записаться → #tour, nav anchors) */
#tour,
#programs,
#club,
#zones,
#family,
#trainers,
#reviews,
#cards,
#faq,
#contacts {
	scroll-margin-top: calc(var(--sf-shell-header-height, 76px) + 16px);
}

body.sf-structured-page {
	margin: 0;
	background: #f4f6f4;
	color: var(--sf-shell-ink);
	font-family: var(--sf-shell-font);
}

.sf-skip-link {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 12000;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff;
	color: var(--sf-shell-ink);
	font: 700 12px/1.2 var(--sf-shell-font);
	text-decoration: none;
	transform: translateY(-160%);
}

.sf-skip-link:focus {
	transform: none;
}

.sf-site-header,
.sf-mobile-menu,
.sf-site-footer {
	box-sizing: border-box;
	font-family: var(--sf-shell-font);
	-webkit-font-smoothing: antialiased;
}

.sf-site-header *,
.sf-site-header *::before,
.sf-site-header *::after,
.sf-mobile-menu *,
.sf-mobile-menu *::before,
.sf-mobile-menu *::after,
.sf-site-footer *,
.sf-site-footer *::before,
.sf-site-footer *::after {
	box-sizing: border-box;
}

.sf-site-header {
	position: sticky;
	top: 0;
	z-index: 9000;
	width: 100%;
	border-bottom: 1px solid var(--sf-shell-line);
	background: rgba(255, 255, 255, 0.96);
	color: var(--sf-shell-ink);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.sf-site-header__inner {
	display: flex;
	align-items: center;
	width: min(1480px, calc(100% - 32px));
	height: var(--sf-shell-header-height);
	margin: 0 auto;
	gap: 16px;
}

.sf-site-brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 11px;
	color: var(--sf-shell-ink);
	text-decoration: none;
}

.sf-site-brand__mark {
	display: block;
	width: 70px;
	height: 42px;
	object-fit: contain;
}

.sf-site-brand__copy {
	display: block;
	min-width: 0;
	line-height: 1;
}

.sf-site-brand__copy strong {
	display: block;
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.025em;
	white-space: nowrap;
}

.sf-site-brand__copy small {
	display: block;
	color: var(--sf-shell-muted);
	font-size: 9.5px;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.015em;
	white-space: nowrap;
}

.sf-desktop-nav {
	display: flex;
	flex: 1 1 auto;
	align-items: stretch;
	justify-content: flex-end;
	align-self: stretch;
	min-width: 0;
}

.sf-nav-group {
	position: relative;
	display: flex;
	align-items: stretch;
}

.sf-nav-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0 7px;
	color: var(--sf-shell-ink);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: color 160ms ease, background 160ms ease;
}

.sf-nav-link:hover,
.sf-nav-link:focus-visible,
.sf-nav-group:focus-within > .sf-nav-link {
	color: var(--sf-shell-accent-dark);
}

.sf-nav-link--accent {
	align-self: center;
	min-height: 34px;
	margin-left: 4px;
	padding: 0 16px;
	border: 1px solid #1a1a1a;
	border-radius: 999px;
	background: #fff;
	color: var(--sf-shell-ink);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sf-nav-link--accent:hover,
.sf-nav-link--accent:focus-visible {
	border-color: #1a1a1a;
	background: var(--sf-shell-soft);
	color: var(--sf-shell-ink);
}

.sf-nav-link svg {
	transition: transform 160ms ease;
}

.sf-nav-group:hover > .sf-nav-link svg,
.sf-nav-group:focus-within > .sf-nav-link svg,
.sf-nav-link[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.sf-dropdown {
	position: absolute;
	top: calc(100% - 1px);
	left: 0;
	width: 590px;
	padding: 12px;
	border: 1px solid var(--sf-shell-line);
	border-radius: 0 0 22px 22px;
	background: #fff;
	box-shadow: 0 22px 52px rgba(13, 33, 23, 0.14);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
}

.sf-nav-group:nth-child(n+4) .sf-dropdown {
	right: 0;
	left: auto;
}

.sf-nav-group:hover .sf-dropdown,
.sf-nav-group:focus-within .sf-dropdown,
.sf-dropdown.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.sf-dropdown__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px;
}

.sf-dropdown__item {
	display: block;
	min-width: 0;
	padding: 13px 14px;
	border-radius: 14px;
	color: var(--sf-shell-ink);
	text-decoration: none;
	transition: background 160ms ease, color 160ms ease;
}

.sf-dropdown__item:hover,
.sf-dropdown__item:focus-visible {
	background: var(--sf-shell-soft);
	color: var(--sf-shell-accent-dark);
	outline: 0;
}

.sf-dropdown__item strong,
.sf-dropdown__item span {
	display: block;
}

.sf-dropdown__item strong {
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}

.sf-dropdown__item span {
	color: var(--sf-shell-muted);
	font-size: 10.5px;
	font-weight: 500;
	line-height: 1.35;
}

.sf-site-header__actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
}

.sf-site-header__phone {
	color: var(--sf-shell-ink);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-decoration: none;
	white-space: nowrap;
	transition: color 160ms ease;
}

.sf-site-header__phone:hover,
.sf-site-header__phone:focus-visible {
	color: var(--sf-shell-accent-dark);
}

.sf-site-header__cta,
.sf-mobile-menu__primary,
.sf-mobile-menu__secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.sf-site-header__cta {
	min-height: 42px;
	padding: 0 18px;
	background: var(--sf-shell-accent);
	color: #fff;
	font-size: 12px;
}

.sf-site-header__cta:hover,
.sf-site-header__cta:focus-visible,
.sf-mobile-menu__primary:hover,
.sf-mobile-menu__primary:focus-visible {
	background: var(--sf-shell-accent-dark);
}

.sf-menu-button {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sf-shell-soft);
	color: var(--sf-shell-ink);
	cursor: pointer;
}

.sf-mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 9997;
	background: rgba(8, 16, 13, 0.52);
	opacity: 0;
	visibility: hidden;
	transition: opacity 220ms ease, visibility 220ms;
}

.sf-mobile-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.sf-mobile-menu {
	position: fixed;
	inset: 0 0 0 auto;
	z-index: 9998;
	display: flex;
	flex-direction: column;
	width: min(410px, 94vw);
	padding: 14px 22px 26px;
	overflow-y: auto;
	background: #fff;
	color: var(--sf-shell-ink);
	box-shadow: -20px 0 60px rgba(10, 30, 20, 0.18);
	transform: translateX(105%);
	transition: transform 240ms ease;
}

.sf-mobile-menu.is-open {
	transform: none;
}

.sf-mobile-menu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	margin-bottom: 8px;
}

.sf-mobile-menu__close {
	display: grid;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--sf-shell-soft);
	color: var(--sf-shell-ink);
	cursor: pointer;
	place-items: center;
}

.sf-mobile-group {
	border-bottom: 1px solid var(--sf-shell-line);
}

.sf-mobile-group__row {
	display: flex;
	align-items: center;
	min-height: 48px;
}

.sf-mobile-group__row > a {
	flex: 1 1 auto;
	padding: 13px 0;
	color: var(--sf-shell-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
}

.sf-mobile-group__row > button {
	display: grid;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--sf-shell-ink);
	cursor: pointer;
	place-items: center;
}

.sf-mobile-group__row > button svg {
	transition: transform 180ms ease;
}

.sf-mobile-group__row > button[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.sf-mobile-submenu {
	display: grid;
	padding: 0 0 12px 12px;
}

.sf-mobile-submenu[hidden] {
	display: none;
}

.sf-mobile-submenu a {
	padding: 9px 12px;
	border-left: 2px solid var(--sf-shell-soft);
	color: #3b4540;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.sf-mobile-submenu a:hover,
.sf-mobile-submenu a:focus-visible {
	border-color: var(--sf-shell-accent);
	color: var(--sf-shell-accent-dark);
}

.sf-mobile-quick {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 16px 0 8px;
}

.sf-mobile-quick a {
	padding: 11px 12px;
	border-radius: 12px;
	background: var(--sf-shell-soft);
	color: var(--sf-shell-ink);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.sf-mobile-menu__actions {
	display: grid;
	gap: 9px;
	margin: 14px 0 20px;
}

.sf-mobile-menu__primary,
.sf-mobile-menu__secondary {
	min-height: 48px;
	padding: 12px 18px;
	font-size: 14px;
}

.sf-mobile-menu__primary {
	background: var(--sf-shell-accent);
	color: #fff;
}

.sf-mobile-menu__secondary {
	border: 1px solid var(--sf-shell-line);
	background: #fff;
	color: var(--sf-shell-ink);
}

.sf-mobile-menu__contacts {
	margin-top: auto;
	color: var(--sf-shell-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.55;
}

.sf-mobile-menu__contacts > a {
	display: block;
	margin-bottom: 8px;
	color: var(--sf-shell-ink);
	font-size: 19px;
	font-weight: 800;
	text-decoration: none;
}

.sf-mobile-menu__contacts p {
	margin: 0 0 7px;
}

body.sf-menu-open {
	overflow: hidden !important;
}

/* Clean replica of the previous black footer. */
.sf-site-footer {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 54px max(24px, calc((100% - 1180px) / 2)) 0;
	background: #050605;
	color: #f3f5f4;
}

.sf-site-footer__inner {
	display: grid;
	grid-template-columns: 1.1fr 1.1fr 0.75fr 0.75fr 1.3fr;
	gap: 28px;
	max-width: 1180px;
	margin: 0 auto;
}

.sf-site-footer .sf-site-brand {
	color: #fff;
}

.sf-site-footer .sf-site-brand__copy small {
	color: #96a29c;
}

.sf-site-footer__brand > p {
	max-width: 280px;
	margin: 20px 0 22px;
	color: #96a29c;
	font-size: 13px;
	line-height: 1.6;
}

.sf-site-footer h2 {
	margin: 0 0 18px;
	color: #8e9a94;
	font-family: var(--sf-shell-font);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.sf-site-footer__contacts p {
	margin: 0 0 16px;
	color: #d8dedb;
	font-size: 12px;
	line-height: 1.5;
}

.sf-site-footer__contacts strong {
	display: block;
	margin-bottom: 3px;
	color: #8e9a94;
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sf-site-footer a {
	color: #f3f5f4;
	text-decoration: none;
}

.sf-site-footer a:hover,
.sf-site-footer a:focus-visible {
	color: var(--sf-shell-accent);
}

.sf-site-footer__nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.sf-site-footer__nav a {
	padding: 5px 0;
	color: #d8dedb;
	font-size: 12px;
	line-height: 1.35;
}

.sf-site-footer__social {
	display: flex;
	gap: 10px;
}

.sf-site-footer__social a {
	display: grid;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--sf-shell-accent);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	place-items: center;
}

.sf-site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1180px;
	margin: 38px auto 0;
	padding: 20px 0 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #7f8a85;
	font-size: 10px;
}

.sf-site-footer__bottom button {
	padding: 0;
	border: 0;
	background: transparent;
	color: #7f8a85;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 1460px) {
	.sf-desktop-nav {
		gap: 0;
	}
	.sf-nav-link {
		padding-inline: 5px;
		font-size: 12px;
	}
	.sf-nav-link--accent {
		min-height: 32px;
		margin-left: 2px;
		padding: 0 13px;
		font-size: 11.5px;
	}
	.sf-site-header__phone {
		font-size: 13px;
	}
	.sf-site-header__cta {
		min-height: 38px;
		padding: 0 14px;
		font-size: 11.5px;
	}
}

@media (max-width: 1360px) {
	.sf-site-header__cta {
		display: none;
	}
	.sf-site-brand__mark {
		width: 62px;
	}
	.sf-site-brand__copy strong {
		font-size: 13px;
	}
	.sf-nav-link {
		padding-inline: 4px;
		font-size: 11.5px;
	}
	.sf-nav-link--accent {
		min-height: 30px;
		padding: 0 12px;
		font-size: 11px;
	}
	.sf-site-header__phone {
		font-size: 12.5px;
	}
}

@media (max-width: 1240px) {
	.sf-desktop-nav {
		display: none;
	}
	.sf-site-header__phone {
		display: inline-flex;
		font-size: 14px;
	}
	.sf-site-header__cta {
		display: none;
	}
	.sf-menu-button {
		display: inline-flex;
	}
	.sf-site-header__inner {
		justify-content: space-between;
	}
}

@media (max-width: 1024px) {
	.sf-site-footer__inner {
		grid-template-columns: 1.2fr 1.2fr 1fr;
		gap: 32px;
	}
}

@media (max-width: 860px) {
	.sf-site-header__phone {
		font-size: 13px;
	}
	.sf-site-footer__inner {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}
}

@media (max-width: 640px) {
	:root {
		--sf-shell-header-height: 66px;
	}
	.sf-site-header__inner {
		width: calc(100% - 20px);
		gap: 8px;
	}
	.sf-site-header .sf-site-brand {
		gap: 7px;
	}
	.sf-site-header .sf-site-brand__mark {
		width: 49px;
		height: 34px;
	}
	.sf-site-header .sf-site-brand__copy strong {
		margin-bottom: 4px;
		font-size: 11.5px;
		letter-spacing: -0.035em;
	}
	.sf-site-header .sf-site-brand__copy small {
		display: block;
		font-size: 7.4px;
		line-height: 1.05;
		letter-spacing: -0.03em;
	}
	.sf-site-header__phone,
	.sf-site-header__cta {
		display: none;
	}
	.sf-menu-button {
		width: 42px;
		height: 42px;
	}
	.sf-mobile-menu {
		width: min(390px, 96vw);
		padding-inline: 18px;
	}
	.sf-mobile-menu__head .sf-site-brand__mark {
		width: 54px;
		height: 36px;
	}
	.sf-mobile-menu__head .sf-site-brand__copy strong {
		font-size: 12px;
	}
	.sf-mobile-menu__head .sf-site-brand__copy small {
		font-size: 7.8px;
	}
	.sf-site-footer {
		padding: 42px 22px 0;
	}
	.sf-site-footer__inner {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.sf-site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}
}

@media (max-width: 340px) {
	.sf-site-header .sf-site-brand__mark {
		width: 43px;
	}
	.sf-site-header .sf-site-brand__copy strong {
		font-size: 10.5px;
	}
	.sf-site-header .sf-site-brand__copy small {
		font-size: 6.8px;
	}
	.sf-menu-button {
		width: 38px;
		height: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sf-site-header *,
	.sf-mobile-menu,
	.sf-mobile-overlay {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* ── Phone field: flag + caret + +7 INSIDE one bordered box ─────────────
   Border/background live on the wrapper; the tel input is borderless so
   autofill targets a single field and the prefix never sits outside. */
.sf-phone-field {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d7ddd9;
	border-radius: 16px;
	background: #fff;
	padding: 0 16px 0 14px;
	min-height: 50px;
}

.sf-phone-field__chrome {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	pointer-events: none;
	user-select: none;
}

.sf-phone-field__flag {
	width: 18px;
	height: 13px;
	border-radius: 1px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
	background: linear-gradient(
		to bottom,
		#fff 0%,
		#fff 33.33%,
		#0039a6 33.33%,
		#0039a6 66.66%,
		#d52b1e 66.66%,
		#d52b1e 100%
	);
	flex-shrink: 0;
}

.sf-phone-field__caret {
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #9a9a9a;
	flex-shrink: 0;
}

.sf-phone-field__code {
	font-size: 15px;
	font-weight: 500;
	color: #111;
	letter-spacing: 0.01em;
	line-height: 1;
}

.sf-phone-field input[type="tel"],
.sf-phone-field .t-input,
.sf-phone-field input.t-input {
	flex: 1 1 auto;
	width: auto !important;
	min-width: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	border-radius: 0 !important;
	padding: 14px 0 !important;
	height: auto !important;
	margin: 0 !important;
	font: inherit;
	font-size: 15px;
	color: inherit;
}

.sf-phone-field:focus-within {
	border-color: var(--sf-accent, #57c97d);
	box-shadow: 0 0 0 2px rgba(87, 201, 125, 0.25);
}

/* Tilda phonemask on mirrors: force select + input into one bordered chrome. */
.t-input-phonemask__wrap {
	display: flex !important;
	align-items: center !important;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid #d7ddd9;
	border-radius: 16px;
	background: #fff;
	padding: 0 12px 0 10px;
	min-height: 50px;
	gap: 4px;
}

/* Autofill overrides to prevent browser from forcing green/yellow background on inputs */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
	box-shadow: 0 0 0 1000px #ffffff inset !important;
	-webkit-text-fill-color: #111111 !important;
	transition: background-color 5000s ease-in-out 0s !important;
}

.sf-form input:-webkit-autofill,
.sf-form input:-webkit-autofill:hover,
.sf-form input:-webkit-autofill:focus,
.sf-form input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
	box-shadow: 0 0 0 1000px #ffffff inset !important;
	-webkit-text-fill-color: #111111 !important;
	transition: background-color 5000s ease-in-out 0s !important;
}

.sf-form--dark input:-webkit-autofill,
.sf-form--dark input:-webkit-autofill:hover,
.sf-form--dark input:-webkit-autofill:focus,
.sf-form--dark input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
	box-shadow: 0 0 0 1000px #ffffff inset !important;
	-webkit-text-fill-color: #111111 !important;
	transition: background-color 5000s ease-in-out 0s !important;
}

.t-input-phonemask__wrap .t-input-phonemask__select {
	flex-shrink: 0;
	display: inline-flex !important;
	align-items: center;
	gap: 4px;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

.t-input-phonemask__wrap .t-input,
.t-input-phonemask__wrap .t-input-phonemask,
.t-input-phonemask__wrap input[type="tel"] {
	flex: 1 1 auto;
	min-width: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	padding-left: 6px !important;
	padding-right: 4px !important;
	height: auto !important;
	border-radius: 0 !important;
}

.sf-consent-injected {
	margin: 10px 0;
	font-size: 13px;
	line-height: 1.4;
}

.sf-consent-injected a {
	text-decoration: underline;
}

/* Unified single consent after dual Tilda checkboxes are merged by leads.js */
.t-input-group_cb .t-checkbox__control a,
.sf-lead-form__consent a {
	text-decoration: underline;
}
