/* ==========================================================================
   Template: Kniha (/kniha)
   Dizajn: Figma node 4035-1386
   ========================================================================== */

.kniha-page {
	--k-blue: #26a2f1;
	--k-blue-dark: #041d30;
	--k-blue-10: #d0e5ff;
	--k-blue-05: #e6f4ff;
	--k-text: #2f2f2f;
	--k-ink: #010101;
	--k-gray: #f9f9f9;
	--k-card: #f9fafb;
	--k-border: #e5e7eb;
	font-family: "Inter", "Poppins", sans-serif;
	color: var(--k-text);
	background: #fff;
	overflow-x: hidden;
}

.kniha-page section {
	box-sizing: border-box;
}

.kniha-page h1,
.kniha-page h2,
.kniha-page h3 {
	margin: 0;
	font-family: inherit;
}

.kniha-page p {
	margin: 0;
}

.kniha-page img {
	max-width: 100%;
	display: block;
}

/* --- HERO --------------------------------------------------------------- */
.kniha-hero {
	background: var(--k-ink);
	text-align: center;
	padding: 60px 0 80px;
}

.kniha-hero__title {
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2;
	background: linear-gradient(90deg, #0872ef 24%, #54eef3 70%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	display: inline-block;
}

.kniha-page .kniha-hero__subtitle {
	max-width: 569px;
	margin: 18px auto 0 !important;
	font-size: 16px;
	line-height: 1.5;
	color: #dedede;
}

/* --- ROZHODNUTIA POD TLAKOM -------------------------------------------- */
.kniha-pressure {
	background: #fff;
	padding: 80px 0 40px;
}

.kniha-pressure__title {
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--k-blue-dark);
	margin-bottom: 16px;
}

.kniha-pressure__text {
	font-size: 16px;
	line-height: 1.5;
	max-width: 1244px;
}

/* --- CITÁT -------------------------------------------------------------- */
.kniha-quote {
	background: var(--k-gray);
	padding: 60px 0;
}

.kniha-quote__text {
	margin: 0;
	border-left: 4px solid var(--k-blue);
	padding-left: 40px;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--k-blue-dark);
	font-style: normal;
}

/* --- SPLIT (text + obrázok) -------------------------------------------- */
.kniha-split {
	background: #fff;
	padding: 40px 0;
}

.kniha-split__inner {
	display: flex;
	align-items: stretch;
	background: var(--k-gray);
	border-radius: 20px;
	overflow: hidden;
	min-height: 387px;
}

.kniha-split__text {
	flex: 1 1 50%;
	padding: 80px 62px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.kniha-split__title {
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--k-ink);
	margin-bottom: 24px;
}

.kniha-split__text p {
	font-size: 16px;
	line-height: 1.5;
	max-width: 542px;
}

.kniha-split__media {
	flex: 1 1 50%;
}

.kniha-split__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

/* --- O KNIHE ------------------------------------------------------------ */
.kniha-about {
	background: var(--k-gray);
	padding: 80px 0;
}

.kniha-about__inner {
	display: flex;
	gap: 80px;
	align-items: center;
}

.kniha-about__cover {
	flex: 0 0 532px;
	max-width: 532px;
}

.kniha-about__cover img {
	width: 100%;
	border-radius: 12px;
}

.kniha-about__content {
	flex: 1 1 auto;
	min-width: 0;
}

.kniha-about__title {
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--k-ink);
	margin-bottom: 32px;
}

.kniha-about__lead {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 16px;
	line-height: 1.5;
	margin-bottom: 32px;
}

.kniha-bullets {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.kniha-bullets li {
	position: relative;
	padding-left: 40px;
	font-size: 16px;
	line-height: 1.5;
}

.kniha-bullets li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 22px;
	height: 22px;
	border-radius: 60px;
	background: var(--k-blue-10) url("../../images/kniha/icon-check.svg") no-repeat center;
	background-size: 11px 9px;
}

/* --- ČO ČITATEĽ ZÍSKA --------------------------------------------------- */
.kniha-benefits {
	background: #fff;
	padding: 100px 0;
}

.kniha-benefits__title {
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--k-blue-dark);
	text-align: center;
	margin-bottom: 72px;
}

.kniha-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.kniha-card {
	background: var(--k-card);
	border-top: 6px solid var(--k-blue);
	border-radius: 0 0 16px 16px;
	padding: 40px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.kniha-card__icon {
	width: 72px;
	height: 72px;
	border-radius: 18px;
	background: var(--k-blue-05);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.kniha-card__icon img {
	width: 34px;
	height: 34px;
}

.kniha-card__title {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--k-blue-dark);
}

.kniha-card__text {
	font-size: 16px;
	line-height: 1.5;
}

/* --- FORMULÁR (FAPI) ---------------------------------------------------- */
.kniha-form {
	background: #fff;
	padding: 0 0 100px;
}

/* --- ČASTÉ OTÁZKY ------------------------------------------------------- */
.kniha-faq {
	background: #fff;
	padding: 0 0 100px;
}

.kniha-faq__title {
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--k-blue-dark);
	margin-bottom: 40px;
}

.kniha-accordion__item {
	border-bottom: 1px solid var(--k-border);
}

.kniha-accordion__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 32px 0;
	cursor: pointer;
	list-style: none;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.16;
	color: var(--k-blue);
}

.kniha-accordion__q::-webkit-details-marker {
	display: none;
}

.kniha-accordion__q .kniha-accordion__icon {
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	transition: transform 0.25s ease;
}

.kniha-accordion__item[open] .kniha-accordion__icon {
	transform: rotate(45deg);
}

.kniha-accordion__a {
	font-size: 16px;
	line-height: 1.5;
	padding-bottom: 32px;
	max-width: 1100px;
}

/* --- CTA ---------------------------------------------------------------- */
.kniha-cta {
	background-color: var(--k-ink);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	text-align: center;
	padding: 118px 20px 96px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 31px;
}

.kniha-cta__title {
	max-width: 931px;
	margin: 0 auto !important;
	font-size: 40px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
}

.kniha-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--k-blue);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	padding: 18px 25px;
	border-radius: 60px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.kniha-btn img {
	width: 18px;
	height: 12px;
	transform: rotate(180deg);
}

.kniha-btn:hover {
	background: #1487d6;
	transform: translateY(-1px);
	color: #fff;
}

/* "Kúpiť knihu" tlačidlo v obsahových sekciách (O knihe, split) */
.kniha-btn--buy {
	margin-top: 36px;
}

.kniha-split__text .kniha-btn--buy {
	align-self: flex-start;
}

/* Smooth scroll na objednávkový formulár (#kupit).
   Súbor sa enqueuuje len pre template Kniha, takže to neovplyvní zvyšok webu. */
html {
	scroll-behavior: smooth;
}

#kupit {
	scroll-margin-top: 110px;
}

/* --- RESPONSIVE --------------------------------------------------------- */
@media (max-width: 1100px) {
	.kniha-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 991px) {
	.kniha-split__inner {
		flex-direction: column;
	}

	.kniha-split__media {
		min-height: 280px;
	}

	.kniha-about__inner {
		flex-direction: column;
		gap: 40px;
	}

	.kniha-about__cover {
		flex-basis: auto;
		max-width: 420px;
		width: 100%;
	}
}

@media (max-width: 767px) {
	/* viac priestoru po stranach na mobile */
	.kniha-page .wrapper {
		padding-left: 32px !important;
		padding-right: 32px !important;
	}

	.kniha-benefits__title {
		margin-bottom: 48px;
	}

	.kniha-hero {
		padding: 48px 0 56px;
	}

	.kniha-hero__title,
	.kniha-split__title,
	.kniha-about__title,
	.kniha-cta__title {
		font-size: 30px;
	}

	.kniha-pressure {
		padding: 56px 0 32px;
	}

	.kniha-pressure__title,
	.kniha-quote__text {
		font-size: 24px;
	}

	.kniha-quote__text {
		padding-left: 24px;
	}

	.kniha-split__text {
		padding: 40px 28px;
	}

	.kniha-about,
	.kniha-benefits {
		padding: 56px 0;
	}

	.kniha-benefits__title,
	.kniha-faq__title {
		font-size: 26px;
	}

	.kniha-cards {
		grid-template-columns: 1fr;
	}

	.kniha-form {
		padding-bottom: 56px;
	}

	.kniha-faq {
		padding-bottom: 56px;
	}

	.kniha-accordion__q {
		font-size: 16px;
		padding: 24px 0;
	}

	.kniha-cta {
		padding: 72px 20px 64px;
	}
}
