/* Halkbank МАКСИ Депозит — Elementor promo widget
   Colors aligned with Halk Women (elwpp-mk.com): #0018a8 blue, #F48139 orange, Inter. */

/* Fill the Elementor column like neighboring widgets */
.elementor-widget-hb-maksi-depozit,
.elementor-widget-hb-maksi-depozit > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
}

/*
 * Footer overlap fallback. Primary control is Elementor’s generated
 * margin-bottom on {{WRAPPER}} from the “Overlap amount” slider.
 */
.elementor-widget-hb-maksi-depozit.hb-maksi-has-footer-overlap {
	--hb-footer-overlap: 8px;
	position: relative;
	z-index: 30;
}

.elementor-widget-hb-maksi-depozit.hb-maksi-no-footer-overlap {
	margin-bottom: 0 !important;
	z-index: auto;
}

.elementor-section:has(.elementor-widget-hb-maksi-depozit.hb-maksi-has-footer-overlap),
.e-con:has(.elementor-widget-hb-maksi-depozit.hb-maksi-has-footer-overlap),
.elementor-element:has(> .elementor-widget-container .hb-maksi--overlap-footer) {
	position: relative;
	z-index: 30;
	overflow: visible !important;
}

.elementor-location-footer,
footer.elementor-location-footer,
.elementor-location-footer .halk-footer {
	position: relative;
	z-index: 1;
}

/* Preview / non-Elementor */
.hb-maksi.hb-maksi--overlap-footer {
	--hb-footer-overlap: 8px;
	position: relative;
	z-index: 30;
	margin-bottom: calc(-1 * var(--hb-footer-overlap, 8px)) !important;
}

.elementor-widget-hb-maksi-depozit .hb-maksi.hb-maksi--overlap-footer {
	margin-bottom: 0 !important; /* wrapper owns the overlap margin */
}

.hb-maksi {
	--hb-accent: #0018a8;
	--hb-accent-deep: #00127a;
	--hb-accent-soft: #005b99;
	--hb-warm: #f48139;
	--hb-warm-deep: #d66a24;
	--hb-ink: #0e1133;
	--hb-muted: #6d6e75;
	--hb-line: #d8dce5;
	--hb-pill: #f0f2f5;
	--hb-surface: #ffffff;
	--hb-radius: 16px;
	position: relative;
	isolation: isolate;
	font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--hb-ink);
	width: 100%;
	max-width: 100%;
	margin: 0;
	box-sizing: border-box;
}

.hb-maksi *,
.hb-maksi *::before,
.hb-maksi *::after {
	box-sizing: border-box;
}

/* Kept for older markup; glow now lives inside the panel and is clipped */
.hb-maksi__glow {
	position: absolute;
	left: 8%;
	right: 8%;
	top: 28%;
	height: 52%;
	background:
		radial-gradient(ellipse at 22% 40%, rgba(0, 24, 168, 0.16), transparent 62%),
		radial-gradient(ellipse at 78% 35%, rgba(244, 129, 57, 0.18), transparent 58%);
	filter: blur(18px);
	opacity: 0.85;
	pointer-events: none;
	z-index: 0;
	animation: hb-maksi-breathe 7s ease-in-out infinite;
}

.hb-maksi__panel {
	position: relative;
	z-index: 1;
	overflow: hidden; /* clips glow so it never bleeds into widgets above */
	border-radius: var(--hb-radius);
	padding: clamp(1.25rem, 2.8vw, 2.15rem);
	width: 100%;
	background:
		linear-gradient(160deg, #ffffff 0%, #f7f8fc 55%, #eef1f8 100%);
	border: 1px solid var(--hb-line);
	box-shadow:
		0 2px 10px rgba(0, 0, 0, 0.05),
		0 18px 40px -28px rgba(8, 0, 42, 0.28),
		0 28px 60px -32px rgba(0, 24, 168, 0.35);
	animation: hb-maksi-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hb-maksi.is-shine .hb-maksi__panel::after {
	content: "";
	position: absolute;
	top: -40%;
	left: -30%;
	width: 45%;
	height: 180%;
	background: linear-gradient(
		105deg,
		transparent 35%,
		rgba(255, 255, 255, 0.45) 48%,
		transparent 62%
	);
	transform: translateX(-120%) rotate(8deg);
	animation: hb-maksi-shine 5.5s ease-in-out 1.2s infinite;
	pointer-events: none;
}

.hb-maksi__emblem {
	display: block;
	color: var(--hb-accent);
	flex-shrink: 0;
}

.hb-maksi__emblem--brand {
	width: 1.55rem;
	height: auto;
}

.hb-maksi__emblem--mark {
	position: absolute;
	right: -4%;
	top: 4%;
	width: min(46%, 240px);
	height: auto;
	opacity: 0.08;
	pointer-events: none;
	z-index: 0;
	transform: rotate(8deg);
}

.hb-maksi__brand {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-width: 0;
}

.hb-maksi__top {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem 1rem;
	margin-bottom: 0.85rem;
}

.hb-maksi__eyebrow {
	margin: 0;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hb-accent);
}

.hb-maksi__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #fff;
	background: var(--hb-accent);
	box-shadow: 0 8px 18px -12px rgba(0, 24, 168, 0.65);
}

.hb-maksi__title {
	position: relative;
	z-index: 1;
	margin: 0 0 0.45rem;
	font-family: inherit;
	font-size: clamp(1.85rem, 4.5vw, 2.45rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--hb-ink);
}

.hb-maksi__subtitle {
	position: relative;
	z-index: 1;
	margin: 0 0 1.35rem;
	max-width: 36rem;
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.55;
	color: var(--hb-muted);
}

.hb-maksi__rates {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.7rem;
	margin-bottom: 1.25rem;
}

.hb-maksi__rate {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.95rem 0.85rem 1rem;
	border-radius: 12px;
	background: var(--hb-surface);
	border: 1px solid var(--hb-line);
	animation: hb-maksi-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: calc(0.18s + (var(--i, 0) * 0.1s));
	transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hb-maksi__rate:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--hb-accent) 40%, var(--hb-line));
	box-shadow: 0 14px 28px -20px rgba(0, 24, 168, 0.45);
}

.hb-maksi__rate--hot {
	background: linear-gradient(160deg, var(--hb-accent) 0%, var(--hb-accent-deep) 72%, var(--hb-warm-deep) 140%);
	border-color: transparent;
	color: #fff;
	box-shadow:
		0 16px 30px -16px rgba(0, 24, 168, 0.55),
		0 0 0 1px color-mix(in srgb, var(--hb-warm) 35%, transparent);
}

.hb-maksi__rate--hot:hover {
	border-color: transparent;
	box-shadow: 0 20px 34px -14px rgba(0, 24, 168, 0.75);
}

.hb-maksi__term {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--hb-muted);
}

.hb-maksi__rate--hot .hb-maksi__term {
	color: rgba(255, 255, 255, 0.85);
}

.hb-maksi__pct {
	font-size: clamp(1.45rem, 3.4vw, 1.85rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--hb-ink);
}

.hb-maksi__rate--hot .hb-maksi__pct {
	color: #fff;
}

.hb-maksi__hot-label {
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	font-size: 0.62rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 0.2rem 0.45rem;
	border-radius: 999px;
	background: var(--hb-warm);
	color: #fff;
	box-shadow: 0 6px 14px -8px rgba(244, 129, 57, 0.9);
}

.hb-maksi__meta {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 1rem 1.25rem;
	align-items: start;
	margin-bottom: 1.35rem;
	padding-top: 0.35rem;
	border-top: 1px solid var(--hb-line);
}

.hb-maksi__meta-item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	padding-top: 0.85rem;
}

.hb-maksi__meta-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hb-muted);
}

.hb-maksi__meta-value {
	font-size: 1.15rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.hb-maksi__features {
	margin: 0;
	padding: 0.85rem 0 0;
	list-style: none;
	display: grid;
	gap: 0.45rem;
}

.hb-maksi__features li {
	position: relative;
	padding-left: 1.15rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--hb-ink);
	line-height: 1.35;
}

.hb-maksi__features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: var(--hb-warm);
	box-shadow: 0 0 0 3px rgba(244, 129, 57, 0.22);
}

.hb-maksi__cta {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	min-height: 3.15rem;
	padding: 0.85rem 1.25rem;
	border-radius: 999px;
	border: none;
	text-decoration: none;
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #fff;
	background: linear-gradient(120deg, var(--hb-warm), #ff964f 55%, var(--hb-warm-deep));
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.22) inset,
		0 14px 28px -14px rgba(244, 129, 57, 0.75);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	cursor: pointer;
}

.hb-maksi__cta:hover,
.hb-maksi__cta:focus,
.hb-maksi__cta:focus-visible,
.hb-maksi__cta:active,
.hb-maksi__cta:visited {
	color: #fff !important;
	text-decoration: none;
}

.hb-maksi__cta:hover,
.hb-maksi__cta:focus-visible {
	transform: translateY(-2px) scale(1.01);
	filter: brightness(1.06);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.28) inset,
		0 18px 32px -12px rgba(244, 129, 57, 0.9);
	outline: none;
}

.hb-maksi__cta:hover span,
.hb-maksi__cta:focus span,
.hb-maksi__cta:focus-visible span,
.hb-maksi__cta:active span,
.hb-maksi__cta:hover .hb-maksi__arrow,
.hb-maksi__cta:focus .hb-maksi__arrow,
.hb-maksi__cta:focus-visible .hb-maksi__arrow,
.hb-maksi__cta:active .hb-maksi__arrow {
	color: #fff !important;
	stroke: currentColor;
}

.hb-maksi__cta:focus-visible {
	outline: 3px solid rgba(244, 129, 57, 0.45);
	outline-offset: 3px;
}

.hb-maksi__arrow {
	transition: transform 0.25s ease;
	color: inherit;
}

.hb-maksi__cta:hover .hb-maksi__arrow,
.hb-maksi__cta:focus-visible .hb-maksi__arrow {
	transform: translateX(4px);
}

@keyframes hb-maksi-rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes hb-maksi-breathe {
	0%,
	100% {
		transform: scale(1) translateY(0);
		opacity: 0.85;
	}
	50% {
		transform: scale(1.06) translateY(6px);
		opacity: 1;
	}
}

@keyframes hb-maksi-shine {
	0%,
	55% {
		transform: translateX(-120%) rotate(8deg);
	}
	100% {
		transform: translateX(320%) rotate(8deg);
	}
}

@media (max-width: 900px) {
	.hb-maksi__rates {
		grid-template-columns: 1fr;
	}

	.hb-maksi__meta {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}

	.hb-maksi__features {
		padding-top: 0.25rem;
	}

	.hb-maksi__hot-label {
		top: auto;
		bottom: 0.65rem;
		right: 0.75rem;
	}

	.hb-maksi__rate--hot {
		padding-bottom: 2.2rem;
	}

	.hb-maksi__emblem--mark {
		width: min(52%, 180px);
		opacity: 0.06;
	}
}

@media (max-width: 480px) {
	.hb-maksi__panel {
		padding: 1.1rem 1rem 1.2rem;
		border-radius: 14px;
	}

	.hb-maksi__title {
		font-size: 1.65rem;
	}

	.hb-maksi__top {
		gap: 0.75rem;
	}

	.hb-maksi__badge {
		width: 100%;
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hb-maksi__glow,
	.hb-maksi__panel,
	.hb-maksi__rate,
	.hb-maksi.is-shine .hb-maksi__panel::after {
		animation: none !important;
	}

	.hb-maksi__panel,
	.hb-maksi__rate {
		opacity: 1;
		transform: none;
	}
}
