/* ==========================================================================
   Homepage
   ========================================================================== */

/* Hero row: sidebar categorii + carusel ---------------------------------- */
.hero-row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

/* Titlul paginii (H1): o linie deasupra caruselului. */
.hero-row__h1 {
	flex: 0 0 100%;
	margin-bottom: -4px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.cat-side {
	flex: 1 1 260px;
	max-width: 100%;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: 20px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cat-side__link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 14px;
	border-radius: 12px;
	color: var(--c-ink);
	font-weight: 600;
	font-size: 14px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.cat-side__link:hover {
	color: var(--c-green);
	background: var(--c-latte);
}

.cat-side__link.is-featured {
	background: var(--c-teal-soft);
	color: var(--c-green);
	font-weight: 700;
}

.cat-side__label {
	flex: 1;
}

.cat-side__chev {
	color: #9AA39F;
}

.cat-side__link.is-featured .cat-side__chev {
	color: currentColor;
}

.cat-side__help {
	margin-top: auto;
	padding: 16px 14px 10px;
	border-top: 1px solid var(--c-line);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cat-side__kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--c-muted);
}

.cat-side__text {
	font-size: 14px;
	font-weight: 600;
}

.hero {
	flex: 999 1 560px;
	min-width: 0;
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	background: var(--c-night);
	color: var(--c-white);
}

/* Slide-urile stau în aceeași celulă; înălțimea = cel mai înalt slide. */
.hero__slides {
	display: grid;
	min-height: 520px;
	height: 100%;
}

.hero__slide {
	grid-area: 1 / 1;
	position: relative;
	padding: 60px 56px 80px;
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	align-items: center;
	background: var(--c-night) var(--hero-bg) no-repeat right bottom / 100% auto;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.45s ease, visibility 0.45s;
}

.hero__slide.is-active {
	opacity: 1;
	visibility: visible;
}

.hero__content {
	position: relative;
	flex: 0 1 470px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.hero__badge {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(243, 183, 0, 0.16);
	color: var(--c-latte);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.hero__title {
	font-size: 60px;
	line-height: 1.02;
	font-weight: 800;
	letter-spacing: -0.03em;
	text-wrap: initial;
}

.hero__text {
	font-size: 17px;
	line-height: 1.6;
	color: var(--c-slate);
	max-width: 440px;
}

.hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 6px;
}

.hero__checks {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 24px;
	font-size: 13px;
	color: var(--c-slate);
	font-weight: 500;
}

.hero__checks li {
	display: inline-flex;
	gap: 8px;
	align-items: center;
}

.hero__checks .icon {
	color: var(--c-amber);
}

.hero__card {
	position: absolute;
	right: 28px;
	top: 28px;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px 12px 18px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.hero__card-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hero__card-title {
	font-size: 12px;
	font-weight: 600;
	color: var(--c-slate);
}

.hero__card-price {
	font-size: 18px;
	font-weight: 800;
	color: var(--c-white);
}

.hero__card-btn {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--c-white);
	color: var(--c-ink);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hero__card-btn:hover {
	color: var(--c-green);
}

.hero__img-m {
	display: none;
}

.hero__dots {
	position: absolute;
	left: 50px;
	bottom: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
}

.hero__dot {
	height: 44px;
	padding: 0 5px;
	border: 0;
	background: transparent;
	display: inline-flex;
	align-items: center;
}

.hero__dot span {
	display: block;
	width: 8px;
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.35);
	transition: width 0.3s ease, background-color 0.3s ease;
}

.hero__dot[aria-pressed="true"] span {
	width: 30px;
	background: var(--c-amber);
}

.hero__dot:hover span {
	background: rgba(255, 255, 255, 0.6);
}

.hero__dot[aria-pressed="true"]:hover span {
	background: var(--c-amber);
}

/* Pauză / Redare pentru derularea automată (WCAG 2.2.2) */
.hero__play {
	width: 44px;
	height: 44px;
	margin-right: 4px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--c-white);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.hero__play[hidden] {
	display: none;
}

.hero__play::before {
	content: "";
	position: absolute;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	transition: background-color 0.15s ease;
}

.hero__play {
	position: relative;
}

.hero__play:hover::before {
	background: rgba(255, 255, 255, 0.26);
}

.hero__play .icon {
	position: relative;
	fill: currentColor;
	width: 12px;
	height: 12px;
}

.hero__play .hero__icon-play,
.hero__play.is-paused .hero__icon-pause {
	display: none;
}

.hero__play.is-paused .hero__icon-play {
	display: block;
	margin-left: 2px;
}

/* Cele mai noi telefoane ------------------------------------------------- */
.latest__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.sorter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 50px;
	padding: 0 6px 0 16px;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--c-muted);
}

.sorter__select {
	height: 40px;
	border: 0;
	border-radius: 10px;
	padding: 0 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--c-ink);
	background: var(--c-latte);
	cursor: pointer;
}

.latest__more {
	align-self: center;
}

.latest__empty {
	text-align: center;
	color: var(--c-muted);
}

/* Banda de avantaje (sections.css) urcă sub hero. */
.home > .trust {
	margin-top: -24px;
}

/* Branduri --------------------------------------------------------------- */
.brands,
.bento-section,
.blog-section {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.brands__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.brand-card {
	position: relative;
	overflow: hidden;
	height: 300px;
	border-radius: 24px;
	border: 1px solid var(--c-line);
	color: var(--c-ink);
	padding: 26px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #F0F4F9 var(--bg) no-repeat right bottom / cover;
}

.brand-card:hover {
	color: var(--c-ink);
}

.brand-card__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.brand-card__name {
	font-family: var(--f-head);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.brand-card__sub {
	font-size: 14px;
	color: var(--c-muted);
}

.brand-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--c-green);
}

/* Bento ------------------------------------------------------------------ */
.bento {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 270px;
	gap: 20px;
}

.bento__a,
.bento__b {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	padding: 36px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bento__a {
	grid-row: span 2;
	color: var(--c-white);
	background: var(--c-night) var(--bg) no-repeat center bottom / cover;
}

.bento__a:hover {
	color: var(--c-white);
}

.bento__b {
	grid-column: span 2;
	gap: 10px;
	color: var(--c-ink);
	background: #E8EFFD var(--bg) no-repeat right center / auto 100%;
}

.bento__b:hover {
	color: var(--c-ink);
}

.bento__kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--c-green);
}

.bento__kicker--amber {
	color: var(--c-amber);
}

.bento__title {
	font-size: 32px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	max-width: 340px;
}

.bento__text {
	font-size: 15px;
	line-height: 1.55;
	max-width: 320px;
	color: var(--c-text-2);
}

.bento__a .bento__text {
	color: var(--c-slate);
	max-width: 300px;
}

.bento__btn {
	align-self: flex-start;
	margin-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 18px;
	border-radius: 12px;
	background: var(--c-white);
	color: var(--c-ink);
	font-size: 14px;
	font-weight: 700;
}

.bento__link {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--c-green);
}

.bento__tile {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	border: 1px solid var(--c-line);
	background: #ECF2F7;
	color: var(--c-ink);
	display: flex;
}

.bento__tile--d {
	background: #EAF0F5;
}

.bento__tile:hover {
	color: var(--c-ink);
}

.bento__tile-text {
	flex: 1 1 0;
	min-width: 0;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bento__tile-title {
	font-size: 22px;
}

.bento__tile-sub {
	font-size: 14px;
	color: var(--c-muted);
}

.bento__tile-img {
	flex: none;
	width: 55%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

/* Leanpay + verificat ---------------------------------------------------- */
.banners {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.lp {
	flex: 999 1 560px;
	min-width: 0;
	border-radius: 28px;
	color: var(--c-ink);
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 28px;
	background: var(--c-teal-soft) var(--bg) no-repeat right center / auto 100%;
}

.lp__img-m {
	display: none;
}

.lp__head {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 520px;
}

.lp__title {
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.lp__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
	max-width: 600px;
}

.lp__step {
	background: var(--c-white);
	border-radius: 18px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lp__step-title {
	font-weight: 700;
	font-size: 15px;
}

.lp__step-text {
	font-size: 13px;
	line-height: 1.5;
	color: var(--c-muted);
}

/* Pe cardurile albe, numărul pasului e plin (pe fundal închis era alb). */
.lp .step-num {
	background: var(--c-green);
	color: var(--c-white);
}

.lp__cta {
	align-self: flex-start;
}

.ver {
	flex: 1 1 360px;
	min-width: 0;
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	color: var(--c-white);
	padding: 36px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: var(--c-night) var(--bg) no-repeat right bottom / auto 78%;
}

.ver__badge {
	align-self: flex-start;
	padding: 6px 12px;
	border-radius: 8px;
	background: var(--c-mint);
	color: var(--c-mint-ink);
	font-size: 12px;
	font-weight: 700;
}

.ver__title {
	font-size: 26px;
	line-height: 1.2;
	letter-spacing: -0.01em;
	max-width: 220px;
}

.ver__meta {
	font-size: 14px;
	color: var(--c-slate);
	max-width: 190px;
}

.ver__battery {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 13px;
	font-weight: 600;
	color: var(--c-leanpay-text);
}

.ver__battery .icon {
	color: #7FE0A8;
}

.ver__foot {
	margin-top: auto;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ver__price {
	font-size: 30px;
}

.ver__cta {
	align-self: flex-start;
	height: 52px;
	border-radius: 14px;
}

/* Categorii -------------------------------------------------------------- */
/* Blog ------------------------------------------------------------------- */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

.post-card {
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: 24px;
	overflow: hidden;
	color: var(--c-ink);
	display: flex;
	flex-direction: column;
}

.post-card:hover {
	color: var(--c-ink);
}

.post-card__img {
	width: 100%;
	height: 250px;
	object-fit: cover;
}

.post-card__body {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.post-card__title {
	font-size: 19px;
	line-height: 1.3;
}

.post-card__excerpt {
	font-size: 14px;
	line-height: 1.55;
	color: var(--c-muted);
}

.post-card__more {
	margin-top: auto;
	padding-top: 6px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--c-green);
}

/* Lățimi intermediare (din design) -------------------------------------- */
@media (max-width: 900px) {
	.bento {
		grid-template-columns: minmax(0, 1fr);
	}

	.bento__b {
		grid-column: auto;
	}
}

/* Mobil (390) ------------------------------------------------------------ */
@media (max-width: 760px) {
	.hero-row {
		gap: 0;
	}

	.hero-row__h1 {
		margin-bottom: 14px;
		font-size: 20px;
	}

	.cat-side {
		display: none;
	}

	.hero {
		flex-basis: 100%;
		border-radius: 24px;
		background: #00091A;
	}

	.hero__slides {
		min-height: 0;
	}

	.hero__slide {
		padding: 26px 22px 0;
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: 16px;
		background: #00091A;
	}

	.hero__content {
		flex: none;
		gap: 16px;
	}

	.hero__badge {
		padding: 7px 12px;
		font-size: 12px;
	}

	.hero__title {
		font-size: 38px;
		line-height: 1.04;
	}

	.hero__text {
		font-size: 15px;
		line-height: 1.55;
	}

	.hero__ctas {
		margin-top: 0;
	}

	.hero__ctas .btn-buy--hero {
		height: 52px;
		padding: 0 22px;
		gap: 8px;
	}

	.hero__ctas .btn-ghost,
	.hero__checks,
	.hero__card {
		display: none;
	}

	.hero__img-m {
		display: block;
		width: calc(100% + 44px);
		max-width: none;
		margin: 0 -22px;
		height: 330px;
		object-fit: cover;
		object-position: center 88%;
	}

	.hero__dots {
		left: 16px;
		bottom: 4px;
	}

	.home > .trust {
		margin-top: -20px;
	}

	.latest {
		gap: 14px;
		border-radius: 24px;
		padding: 18px 10px 12px;
		margin: 0 -6px;
	}

	.latest .section-title__text {
		display: none;
	}

	.product-grid--home .product-grid__item:nth-child(n + 5) {
		display: none;
	}

	.brands,
	.bento-section,
	.blog-section {
		gap: 14px;
	}

	.brands .kicker {
		display: none;
	}

	.brands__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.brand-card {
		height: 150px;
		border-radius: 18px;
		padding: 14px;
		justify-content: flex-start;
	}

	.brand-card__text {
		gap: 2px;
	}

	.brand-card__name {
		font-size: 16px;
	}

	.brand-card__sub {
		font-size: 12px;
	}

	.brand-card__cta {
		display: none;
	}

	.bento {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: auto;
		gap: 10px;
	}

	.bento__a,
	.bento__b {
		grid-column: span 2;
		grid-row: auto;
		padding: 22px;
	}

	.bento__a {
		height: 240px;
		gap: 6px;
		border-radius: 22px;
		background-position: right bottom;
		background-size: auto 130%;
	}

	.bento__b {
		height: 170px;
		gap: 4px;
		border-radius: 22px;
	}

	.bento__kicker {
		font-size: 11px;
	}

	.bento__a .bento__title {
		font-size: 22px;
		line-height: 1.15;
		max-width: 200px;
	}

	.bento__b .bento__title {
		font-size: 20px;
		line-height: 1.15;
		max-width: 150px;
	}

	.bento__text {
		display: none;
	}

	.bento__btn {
		margin-top: auto;
		height: 40px;
		padding: 0 14px;
		border-radius: 11px;
		font-size: 13px;
	}

	.bento__link {
		font-size: 13px;
	}

	.bento__tile {
		height: 160px;
		border-radius: 20px;
		flex-direction: column;
	}

	.bento__tile-text {
		flex: none;
		padding: 14px 16px 0;
	}

	.bento__tile-title {
		font-size: 16px;
	}

	.bento__tile-sub,
	.bento__tile .bento__link {
		display: none;
	}

	.bento__tile-img {
		width: 100%;
		height: 120px;
		margin-top: auto;
	}

	.banners {
		flex-direction: column;
		gap: 36px;
	}

	.ver {
		order: -1;
		flex: none;
		height: 250px;
		border-radius: 22px;
		padding: 22px;
		gap: 10px;
		background-size: auto 84%;
	}

	.ver__badge {
		padding: 5px 10px;
		border-radius: 7px;
		font-size: 11px;
	}

	.ver__title {
		font-size: 22px;
		max-width: 190px;
	}

	.ver__meta {
		font-size: 13px;
		max-width: 200px;
	}

	.ver__foot {
		position: static;
	}

	.ver__price {
		font-size: 24px;
	}

	/* Pe mobil tot cardul e linkul (butonul acoperă cardul, invizibil). */
	.ver__cta {
		position: absolute;
		inset: 0;
		height: auto;
		border-radius: 22px;
		background: transparent;
		color: transparent;
		font-size: 0;
		box-shadow: none;
	}

	.ver__cta .icon {
		display: none;
	}

	.ver__cta:hover,
	.ver__cta:focus-visible {
		background: transparent;
	}

	.lp {
		flex: none;
		border-radius: 22px;
		padding: 22px;
		gap: 14px;
		overflow: hidden;
		background: var(--c-teal-soft);
	}

	.lp__img-m {
		display: block;
		height: 170px;
		margin: -22px -22px 4px;
		background: var(--c-teal-soft) var(--bg) no-repeat right center / cover;
	}

	.lp__title {
		font-size: 22px;
		line-height: 1.2;
	}

	.lp__steps {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.lp__step {
		flex-direction: row;
		align-items: center;
		gap: 12px;
		border-radius: 14px;
		padding: 12px;
	}

	.lp__step .step-num {
		width: 30px;
		height: 30px;
		border-radius: 9px;
	}

	.lp__step-title {
		font-weight: 600;
		font-size: 14px;
	}

	.lp__cta {
		align-self: stretch;
		justify-content: center;
		height: 48px;
	}

	.blog-grid {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		margin: 0 -16px;
		padding: 0 16px 4px;
		scroll-snap-type: x proximity;
	}

	.post-card {
		flex: none;
		width: 270px;
		border-radius: 20px;
		scroll-snap-align: start;
	}

	.post-card:hover {
		transform: none;
	}

	.post-card__img {
		height: 160px;
	}

	.post-card__body {
		padding: 14px 16px 16px;
		gap: 8px;
	}

	.post-card .tag {
		padding: 4px 8px;
		border-radius: 6px;
		font-size: 11px;
	}

	.post-card__title {
		font-size: 15px;
	}
}
