.banner-container {
	position: relative;
	width: 100%;
	max-width: 1080px;
	margin: 0px 0px 20px 0px;
}

.banner {
	position: relative;
	width: 100%;
	aspect-ratio: 1080 / 150;
	background: #000;
	overflow: hidden;
	box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
	--cell-width: 2.59%;    /* 28px / 1080px * 100% */
    --cell-height: 34%;      /* 51px / 150px * 100% */
}

.banner-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	display: block;
}

.timer-wrapper {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.flip-clock {
    position: absolute;
    width: var(--cell-width);
    height: var(--cell-height);
    pointer-events: auto;
    background: transparent;
    overflow: hidden;
}

.flip-clock .top-half,
.flip-clock .bottom-half {
	position: absolute;
	width: 100%;
	left: 0;
	overflow: hidden;
	background-size: 100% auto;
	background-repeat: no-repeat;
}

.flip-clock .top-half {
	top: 0;
	height: 50%;
	background-position: center top;
}

.flip-clock .bottom-half {
	bottom: 0;
	height: 50%;
	background-position: center bottom;
}

@keyframes dropTop {
	0% {
		transform: rotateX(0deg);
		transform-origin: bottom;
		opacity: 1;
	}
	100% {
		transform: rotateX(-90deg);
		transform-origin: bottom;
		opacity: 0;
	}
}

@keyframes riseBottom {
	0% {
		transform: rotateX(90deg);
		transform-origin: top;
		opacity: 0;
	}
	100% {
		transform: rotateX(0deg);
		transform-origin: top;
		opacity: 1;
	}
}

.flip-clock .top-flip {
	position: absolute;
	top: 0;
	width: 100%;
	height: 50%;
	background-size: 100% auto;
	background-repeat: no-repeat;
	background-position: center top;
	overflow: hidden;
	z-index: 10;
	animation: dropTop 0.25s ease-in forwards;
}

.flip-clock .bottom-flip {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 50%;
	background-size: 100% auto;
	background-repeat: no-repeat;
	background-position: center bottom;
	overflow: hidden;
	z-index: 10;
	animation: riseBottom 0.25s ease-out forwards;
}

.flip-clock .top-flip,
.flip-clock .bottom-flip {
	display: none;
}

.banner.hidden {
	display: none;
}

/* Добавим тултип ... */
.banner-tooltip {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(173, 216, 230, 0.95);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	cursor: pointer;
}

.banner-tooltip.active {
	opacity: 1;
	visibility: visible;
}

.banner-tooltip-content {
	text-align: center;
	padding: 30px;
	max-width: 90%;
}

.banner-tooltip-title {
	font-size: clamp(18px, 4vw, 28px);
	font-weight: bold;
	color: #1a5276;
	margin-bottom: 15px;
	font-family: 'Segoe UI', sans-serif;
}

.banner-tooltip-text {
	font-size: clamp(14px, 3vw, 20px);
	color: #154360;
	margin-bottom: 20px;
	line-height: 1.4;
	font-family: 'Segoe UI', sans-serif;
}

.banner-tooltip-phone {
	font-size: clamp(20px, 5vw, 32px);
	font-weight: bold;
	color: #0d3b66;
	text-decoration: none;
	display: inline-block;
	padding: 10px 20px;
	background: white;
	border-radius: 50px;
	transition: transform 0.2s ease;
	font-family: 'Courier New', monospace;
}

.banner-tooltip-phone:hover {
	transform: scale(1.05);
	background: #f0f8ff;
}

.banner-tooltip-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	cursor: pointer;
	color: #1a5276;
	background: rgba(255,255,255,0.5);
	width: 35px;
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.banner-tooltip-close:hover {
	background: rgba(255,255,255,0.9);
	transform: scale(1.1);
}		

.banner-link {
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.banner-link:hover {
    opacity: 0.98;
}

/* Если тултип должен работать по клику, а не переходу по ссылке */
.banner-link[data-tooltip="true"] {
    cursor: pointer;
}

/* Для полноширинного контейнера */
.long-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

/* Для полноширинного баннера - соотношение 2600:150 */
.long-container .banner {
    aspect-ratio: 2600 / 150;
}

/* Адаптация позиций цифр для разных баннеров */
.banner-container .flip-clock {
    /* Позиции остаются как были для 1080px */
}


#digit1 { right: 23.43%; bottom: 11.33%; }
#digit2 { right: 18.43%; bottom: 11.33%; }
#digit3 { right: 13.61%; bottom: 11.33%; }
#digit4 { right: 10.74%; bottom: 11.33%; }
#digit5 { right: 5.56%; bottom: 11.33%; }
#digit6 { right: 2.78%; bottom: 11.33%; }


@media (max-width: 768px) {
    .flip-clock {
        transform: scale(0.8);
        transform-origin: bottom right;
    }
}

@media (max-width: 480px) {
    .flip-clock {
        transform: scale(0.6);
        transform-origin: bottom right;
    }
}