/*
 * Infrakom - началната страница (TASKS P4.3). Макет: main.html → „Слайдер", „Заглавие",
 * „Категории", „Градинска техника", „Акумулаторни машини", „Марки", „Въпроси".
 * Плочката на категория и картата са в card.css и тук не се повтарят.
 */

.infk-home {
	--infk-card-media: 240px;
}

/* ---------- Слайдер ---------- */

.infk-slider {
	background: var(--infk-dark);
}

.infk-slider__inner {
	position: relative;
}

.infk-slide a {
	display: block;
	line-height: 0;
}

.infk-slide picture,
.infk-slide img {
	display: block;
	width: 100%;
	height: auto;
}

.infk-slider__arrow {
	position: absolute;
	top: calc(50% - 20px);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: var(--infk-navy);
	cursor: pointer;
	transform: translateY(-50%);
}

.infk-slider__arrow:hover {
	background: #FFFFFF;
}

.infk-slider__arrow--prev {
	left: 16px;
}

.infk-slider__arrow--next {
	right: 16px;
}

.infk-slider__dots {
	display: flex;
	justify-content: center;
	gap: 4px;
	padding-block: 4px;
}

.infk-slider__dot {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.infk-slider__dot span {
	display: block;
	width: 32px;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .75);
}

.infk-slider__dot[aria-current="true"] span {
	background: var(--infk-yellow);
}

/* ---------- Заглавие ---------- */

.infk-intro > .infk-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 56px;
	padding-top: 44px;
	padding-bottom: 16px;
}

.infk-intro__text {
	display: flex;
	flex: 1 1 520px;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.infk-intro h1 {
	font-size: 38px;
	line-height: 1.15;
	letter-spacing: -0.02em;
	overflow-wrap: anywhere;
}

.infk-intro__lead {
	margin: 0;
	font-size: 17px;
	color: var(--infk-muted);
}

.infk-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
}

.infk-stats__item {
	display: flex;
	flex-direction: column;
}

.infk-stats__num {
	font-family: var(--infk-font-head);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--infk-blue);
}

.infk-stats__label {
	font-size: 14px;
	color: var(--infk-muted);
}

/* ---------- Категории ---------- */

.infk-catgrid {
	--min: 180px;
	gap: 20px;
}

/* ---------- Ред Б: плочка-банер + продукти ---------- */

.infk-rowb {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.infk-rowb > ul.products {
	flex: 999 1 560px;
	min-width: 0;
	grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
}

.infk-banner {
	display: flex;
	flex: 1 1 280px;
	flex-direction: column;
	align-self: flex-start;
	background: #FFFFFF;
	border-radius: 16px;
	color: var(--infk-text);
	transition: box-shadow .15s;
}

.infk-banner:hover {
	box-shadow: var(--infk-shadow);
	color: var(--infk-text);
}

.infk-banner__img {
	display: block;
	width: 100%;
	aspect-ratio: 698 / 598;
	object-fit: cover;
	border-radius: 16px 16px 0 0;
}

.infk-banner__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
}

.infk-banner__title {
	font-family: var(--infk-font-head);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
}

.infk-banner__text {
	font-size: 14px;
	color: var(--infk-muted);
}

.infk-banner__cta {
	margin-top: 6px;
	font-weight: 600;
	color: var(--infk-blue);
}

/* ---------- Марки ---------- */

.infk-brandgrid {
	--min: 200px;
	gap: 16px;
}

.infk-brandtile {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: #FFFFFF;
	border-radius: 14px;
	transition: box-shadow .15s;
}

.infk-brandtile:hover {
	box-shadow: var(--infk-shadow);
}

.infk-brandtile img {
	display: block;
	width: auto;
	max-width: 70%;
	height: auto;
	max-height: 60px;
	object-fit: contain;
}

/* ---------- Въпроси ---------- */

.infk-faqsec > .infk-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 64px;
}

.infk-faqsec__head {
	display: flex;
	flex: 1 1 280px;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.infk-faqsec__lead {
	margin: 0;
	color: var(--infk-muted);
}

.infk-faqsec__lead a {
	font-weight: 600;
}

.infk-faqsec__list {
	display: flex;
	flex: 2 1 520px;
	flex-direction: column;
	min-width: 0;
	border-top: 1px solid var(--infk-line);
}

.infk-faq {
	border-bottom: 1px solid var(--infk-line);
}

.infk-faq > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding-block: 12px;
	font-family: var(--infk-font-head);
	font-size: 17px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.infk-faq > summary::-webkit-details-marker {
	display: none;
}

.infk-faq__q {
	min-width: 0;
	overflow-wrap: anywhere;
}

.infk-faq__sign {
	flex: 0 0 auto;
	font-size: 22px;
	line-height: 1;
	color: var(--infk-blue);
}

.infk-faq__sign::before {
	content: "+";
}

.infk-faq[open] .infk-faq__sign::before {
	content: "\2212";
}

.infk-faq__a {
	padding: 0 40px 20px 0;
	color: var(--infk-muted);
}

.infk-faq__a > :first-child {
	margin-top: 0;
}

.infk-faq__a > :last-child {
	margin-bottom: 0;
}

/* ---------- Под 767px (телефон) ---------- */

@media (max-width: 767px) {
	.infk-slider__arrow--prev {
		left: 8px;
	}

	.infk-slider__arrow--next {
		right: 8px;
	}

	.infk-intro > .infk-wrap {
		padding-top: 32px;
	}

	.infk-intro h1 {
		font-size: 30px;
	}

	.infk-stats__num {
		font-size: 26px;
	}

	.infk-faq__a {
		padding-right: 0;
	}

	.infk-catgrid,
	.infk-brandgrid {
		gap: 12px;
	}

	.infk-rowb > ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.infk-brandtile {
		padding: 16px;
	}
}
