header {
    display: flex;
    justify-content: center;
    width: 100%;
}

#header.header {
	height: max-content !important;
	min-height: max-content !important;
}

.header-wrapper{
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.header-wrapper__logo img{
    max-height:56px;
    height:auto
}

.header-wrapper__menu{
    flex:1 1 auto;
    padding:0 16px
}

.header-wrapper__menu ul {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
    list-style: none;
}

.header-wrapper__menu .menu li a {
    color: #1c2ecf;
    border: none;
}

.header-wrapper__burger {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
}

.burger-menu{
    display:inline-flex;
    flex-direction:column;
    justify-content:space-between;
    width:32px;
    height:22px;
    background:transparent;
    border:0;
    cursor:pointer;
    padding:0
}

.burger-menu span{
    display:block;
    height:3px;
    background:#1a2ecf;
    border-radius:2px
}

.burger-dropdown{
    position:absolute;
    right:0;
    top:100%;
    background:#fff;
    box-shadow:0 8px 24px rgba(0,0,0,.12);
    padding:16px;
    min-width:240px;
    z-index:1000
}

/* Layout helpers for new header */
.da-header__left{display:flex;align-items:center;}
.da-header__center{flex:1 1 auto;display:flex;justify-content:center}

.da-header__center ul {
	display: flex;
    flex-direction: row;
    list-style: none;
    margin-bottom: 0px;
}

.da-header__center li {
    border: none;
    padding: 0;
    background: original-background;
    color: original-color;
}

.da-header__center ul li a {
	color: #1c2ecf;
    padding: 8px 12px;
    border: none;
}

/* Prevent hover border jump in header center menu */
.da-header__center .menu li a,
.da-header__center .menu li a:hover,
.da-header__center .menu li.active a {
	border: 0 !important;
}

/* Styles moved from template */
.da-header {
	position: sticky;
	top: 0;
	z-index: 999; /* Base z-index for the header */
	background: #ffffff;
	color: #1c2ecf;
}

.da-header__inner {
	display: flex;
	align-items: center;
	padding: 12px 0px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.da-header__bottom-row {
	background: #fff;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out, opacity 0.2s ease-out;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 0 12px;
	overflow: hidden;
	max-height: 100px; /* Adjust if content is taller */
	opacity: 1;
}

.da-header__logo img {
	height: 36px;
}

.da-header__right {position: relative;}

.da-header__club {
	margin-left: 12px;
	font-weight: 700;
}

.da-header__choose-club {
	color: #fff;
	text-decoration: none;
	border: 1px solid #fff;
	border-radius: 20px;
	padding: 6px 12px;
}

.da-header__right {
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.da-header__phone {
	color: #1c2ecf;
	text-decoration: none;
	margin-right: 12px;
	white-space: nowrap;
    font-weight: 500;
    font-size: 18px;
	display: inline-block;
	width: max-content;
	height: 36px;
	text-align: center;
	line-height: 36px;
	display: flex;
	align-items: center;
}

.da-header__phone .da-header__phone-text a {
	color: #1c2ecf;
}

.da-burger__phone a {
	color: #ffffff;
}

.da-header__phone-icon {
	width: 24px;
	height: 24px;
	vertical-align: middle;
}

/* Telegram icon (styled like VK rounded square) */
.da-header__telegram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #29a9ea;
    border-radius: 6px;
}
.da-header__telegram-icon {
    color: #ffffff;
    line-height: 1;
	font-size: 18px !important;
	padding-right: 2px !important;
}
.da-header__telegram:hover,
.da-header__telegram:focus {
    background: #1e96d4;
}
.da-header__telegram:hover .da-header__telegram-icon,
.da-header__telegram:focus .da-header__telegram-icon {
    color: #ffffff;
}

/* VK icon in header */
.da-header__vk {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 36px;
}
.da-header__vk-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.da-header__phone:hover {
    color: #1c2ecf;
}

.da-header__burger {
	width: 36px;
	height: 28px;
	position: relative;
	border: 0;
	background: transparent;
	cursor: pointer;
	z-index: 1003; /* Above everything including burger panel for close button */
}

.da-header__burger span {
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: #1c2ecf;
	display: block;
	transition: transform .2s ease, opacity .2s ease, top .2s ease, bottom .2s ease;
}

.da-header__burger span:nth-child(1) { top: 4px; }
.da-header__burger span:nth-child(2) { top: 13px; }
.da-header__burger span:nth-child(3) { bottom: 4px; }

/* burger to cross */
.da-header__burger.is-open span:nth-child(1){
	transform: translateY(9px) rotate(45deg);
}
.da-header__burger.is-open span:nth-child(2){
	opacity:0;
}
.da-header__burger.is-open span:nth-child(3){
	transform: translateY(-9px) rotate(-45deg);
}

/* dropdown panel under burger */
.da-burger {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	background: #1b2454;
	color: #fff;
	border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
	min-width: 280px;
	padding: 0;
	z-index: 1002; /* Should be on top of everything */
}

.da-burger__inner {
	padding: 16px 8px;
}

/* Hide top menu inside burger by default (desktop). Will be enabled on mobile */
.da-burger__top-menu { display: none; }

.da-burger__phone {
	display: none; /* hidden by default */
	text-align: left;
	padding: 12px;
	font-size: 18px;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
}

.da-burger__inner .menu {
    margin-bottom: 0;
}

.da-burger__inner .da-header__logo {
	padding-left: 16px;
    padding-bottom: 4px;
    height: max-content;
    display: block;
}

.da-burger__inner li:hover {
    background: rgb(255 255 255 / 20%);
    border: none;
}

.da-burger__inner .menu li a {
    padding: 10px 14px;
    font-weight: 400;
    font-size: 16px;
    border: 2px solid transparent !important;
    display: block;
    box-sizing: border-box;
}

.da-burger__inner .menu li a:hover {
    border-color: transparent !important;
}

.da-burger__inner .menu li:hover a,
.da-burger__inner .menu li.active a {
	border-color: transparent !important;
}

.da-burger__inner hr {
    margin-top: 8px;
    margin-bottom: 8px;    
    border-top: 1px solid rgb(255 255 255 / 20%);
}

/* club switcher */
.da-club-switcher {
	position: relative;
	z-index: 100; /* Ensure switcher and its dropdown are clickable */
}

.da-club-switcher--compact {
	margin-left: 12px;
}

.da-club-switcher__btn {
	display: flex;
	align-items: center;
	gap: 8px;
	border: 2px solid #1c2ecf;
	background: transparent;
	color: #1c2ecf;
	border-radius: 20px;
	padding: 6px 12px;
	cursor: pointer;
}

.da-club-switcher__chevron {
	font-size: 12px;
	opacity: .9;
}

.da-club-switcher__list {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 280px;
	width: 100%; /* Full width on mobile */
	background: #1b2454;
	border: none;
	border-radius: 16px;
	padding: 16px 8px;  
	margin: 6px 0 0 0;
	box-shadow: 0 10px 30px rgba(0,0,0,.4);
	max-height: 60vh;
	overflow: auto;
	z-index: 1001; /* Above header, below burger */
	list-style: none;
}

.da-club-switcher__list li {
	list-style: none;
	padding: 0;
	margin: 0;
}

.da-club-switcher__list a {
	display: block;
	color: #fff;
	text-decoration: none;
	padding: 10px 14px;
}

.da-club-switcher__list a:hover {
    background: rgb(255 255 255 / 20%);
    border: none;
    color: rgb(255, 255, 255);
}

/* body scroll lock (not used for dropdown now, keep for safety) */
body.da-burger-open {
	overflow: auto;
}

/* Social buttons in burger */
.da-burger__socials-buttons{
	display: flex;
	gap: 12px;
	padding: 10px 8px;
}

.da-socials__item{
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ffffff;
	color: #1b2454;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease;
}

.da-socials__item:hover{
	background: #f2f2f7;
	transform: none;
	color: #ff2b7a;
}

.da-socials__item i{
	font-size: 20px;
	line-height: 1;
}

.da-burger__inner > hr:first-child,
.da-burger__inner hr:first-of-type {
	display:none;
}

/* Responsive rules - ordered from largest to smallest breakpoint */

/* Desktop: Large screens */
@media (max-width: 1200px) {
	.da-header__inner, .header-other__inner {
		padding: 12px 20px !important;
	}
}

/* Tablet & Mobile: Below 1000px */
@media (max-width: 1000px) {
	/* Hide center menu on small screens */
	.da-header__center {
		display: none;
	}

	.da-header__phone {
		margin-right: 0;
	}

	/* Phone display: icon instead of text */
	.da-header__phone .da-header__phone-text {
		display: none;
	}
	.da-header__phone .da-header__phone-icon {
		display: inline-block;
	}
	.da-header__phone {
		width: max-content;
	}

	.da-header__inner {
		flex-wrap: wrap;
		justify-content: space-between;
	}

	.da-header__left {
		order: 1;
	}
	.da-header__right {
		order: 2;
	}
	.da-club-switcher--compact {
		order: 3;
		width: 100%;
		margin-top: 12px;
		margin-left: 0;
		transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, margin-top 0.3s ease, padding 0.3s ease; /* синхронные тайминги */
		max-height: 60px; /* close to button height + margins to avoid gap */
		opacity: 1;
		transform: translateY(0);
		overflow: visible; /* allow dropdown to overflow container */
	}
	.da-header--scrolled-down .da-club-switcher--compact {
		max-height: 0;
		height: 0;
		padding-top: 0;
		padding-bottom: 0;
		margin-top: 0;
		border: 0;
		opacity: 0;
		transform: translateY(-10px);
		overflow: hidden; /* prevent any leftover space */
		pointer-events: none; /* avoid focus/click while hidden */
	}

	.da-burger {
		position: fixed;
		top: var(--bx-panel-offset, 0);
		right: 0;
		left: 0;
		bottom: 0;
		border-radius: 0;
		overflow-y: auto;
		background: #1b2454;
	}

	.da-burger__inner {
		padding-top: 70px; /* space for header */
	}

	.da-burger__phone {
		display: block;
	}

	.da-club-switcher--compact .da-club-switcher__btn {
		width: 100%;
		justify-content: space-between;
	}

	.da-burger__inner .da-header__logo {
		position: absolute;
		top: 12px;
		left: 20px;
	}

	/* Burger: relative when closed; fixed only when open */
	.da-header__burger {
		position: relative;
		top: auto;
		right: auto;
		z-index: 1001;
	}
	.da-header__burger.is-open {
		position: fixed;
		top: calc(var(--bx-panel-offset, 0px) + 16px);
		right: 20px;
		z-index: 1003;
	}
	.da-header__burger span {
		background: #1c2ecf;
	}
	.da-header__burger.is-open span {
		background: #fff;
	}

	/* Show top menu inside burger only on mobile */
	.da-burger__top-menu {
		display: block;
	}
	.da-burger__top-menu .menu {
		margin-bottom: 0;
	}
	.da-burger__inner hr:first-of-type {
		display: block;
	}
}

/* Quick contact floating button */
.da-quick-contact {
    position: fixed;
    right: 16px;
    bottom: 56px; /* Поднята выше для бегущей строки */
    z-index: 10000;
}

/* Бегущая строка Сплит */
.da-split-marquee {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: radial-gradient(43.79% 200.6% at 13.9% -8.92%, #E2C1F9 0%, #FFB9DD 33%, #FBFFE4 56.16%, #B6CFF7 100%);
    overflow: hidden;
    z-index: 9999;
}

.da-split-marquee__track {
    display: flex;
    align-items: center;
    height: 100%;
    animation: da-marquee-scroll 20s linear infinite;
    white-space: nowrap;
}

.da-split-marquee__item {
    display: inline-flex;
    align-items: center;
    padding: 0 80px;
    color: #170023;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.da-split-marquee__item::before {
    content: '★';
    margin-right: 12px;
    font-size: 10px;
}

@keyframes da-marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.da-quick-contact__btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #229ED9;
    color: #fff;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
    cursor: pointer;
}
.da-quick-contact__btn:hover { background: #1a8fc4; }
.da-quick-contact__btn i { font-size: 22px; }
.da-quick-contact__btn .fa-telegram-plane { font-size: 28px !important; }

.da-quick-contact__item:hover {
	color: #ffffff !important;
}

.da-quick-contact__menu {
	width: 56px;
	justify-items: center;
    position: absolute;
    right: 0;
    bottom: 68px; /* button height + gap */
    display: grid;
    grid-auto-rows: 48px;
    gap: 10px;
    transition: opacity .25s ease, transform .25s ease;
    opacity: 0;
    transform: translateY(10px);
}

.da-quick-contact__item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 8px 16px rgba(0,0,0,.15);
}
.da-quick-contact__item--tg { background: #229ED9; }
.da-quick-contact__item--wa { background: #25D366; }
.da-quick-contact__item--call { background: #111; }
.da-quick-contact__item i { font-size: 20px; }
.fa-whatsapp {
	font-size: 24px !important;
}

.da-quick-contact__btn .fa-whatsapp {
	font-size: 28px !important;
}

.da-quick-contact.is-open .da-quick-contact__menu {
    opacity: 1;
    transform: translateY(0);
}

/* Tablet: Below 991px */
@media (max-width: 991px) {
	#header,
	#header .menu-blog {
		min-height: max-content;
		height: auto;
	}

	#header-other {
		background: #fff !important;
	}
}

/* Mobile: Below 767px */
@media (max-width: 767px) {
	/* Hero styles moved to site.hero component */
}

/* Small Mobile: Below 480px */
@media (max-width: 480px) {
	.da-header__inner {
		padding: 12px 16px !important;
	}
}

/* Phone display: text on desktop, icon on mobile */
@media (min-width: 1001px) {
	.da-header__phone .da-header__phone-text { display: inline; }
	.da-header__phone .da-header__phone-icon { display: none; }
}

/* Disable native tap highlight and focus outline on burger and club switcher */
.da-header__burger,
.burger-menu,
.da-club-switcher__btn {
    -webkit-tap-highlight-color: transparent; /* mobile browser highlight */
    -webkit-focus-ring-color: transparent; /* some browsers */
    outline: none; /* remove focus outline */
}

/* Also remove any :active background or color change */
.da-header__burger:active,
.burger-menu:active,
.da-club-switcher__btn:active {
    background: transparent !important;
    color: inherit !important;
}

/* If focus is needed for accessibility, keep visual focus but not default outline */
.da-header__burger:focus-visible,
.da-club-switcher__btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(28,46,207,0.12); /* subtle custom focus */
    outline: none;
}

@media (max-width: 380px) {
    #header {
        padding-bottom: 0px !important;
    }
}

