@font-face {
	font-family: 'Transforma Sans';
	src: url('../fonts/TransformaSans_Trial-Regular.ttf');
}

:root {
	--bg-main: #fffaf6;
	--bg-soft: #fff3eb;
	--bg-card: rgba(255, 255, 255, 0.88);
	--text-main: #4a3b36;
	--text-soft: #6e5b54;
	--title: #7c4f46;
	--accent: #d9897b;
	--accent-dark: #bf6d60;
	--accent-light: #f8d8cf;
	--gold: #e7c98b;
	--shadow: 0 15px 40px rgba(124, 79, 70, 0.12);
	--shadow-hover: 0 20px 50px rgba(124, 79, 70, 0.18);
	--radius-xl: 28px;
	--radius-lg: 22px;
	--radius-md: 16px;
	--container: 1240px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Transforma Sans', sans-serif;
	color: var(--text-main);
	background:
		radial-gradient(circle at top left, rgba(248, 216, 207, 0.65), transparent 30%),
		radial-gradient(circle at top right, rgba(231, 201, 139, 0.28), transparent 25%),
		linear-gradient(180deg, #fff8f3 0%, #fffdfb 35%, #fff7f1 100%);
	line-height: 1.7;
	overflow-x: hidden;
}

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

a {
	color: inherit;
	text-decoration: none;
}

.container-fluid {
	width: min(var(--container), calc(100% - 32px));
	margin: 0 auto;
}

/* Header */
.header {
	position: relative;
	padding: 64px 0 70px;
	overflow: hidden;
}

.header::before,
.header::after {
	content: '';
	position: absolute;
	border-radius: 50%;
	z-index: 0;
	pointer-events: none;
}

.header::before {
	width: 420px;
	height: 420px;
	top: -180px;
	left: -120px;
	background: radial-gradient(circle, rgba(248, 216, 207, 0.75) 0%, rgba(248, 216, 207, 0) 70%);
}

.header::after {
	width: 360px;
	height: 360px;
	right: -100px;
	top: -80px;
	background: radial-gradient(circle, rgba(231, 201, 139, 0.35) 0%, rgba(231, 201, 139, 0) 70%);
}

.intro {
	position: relative;
	z-index: 1;
	min-height: 72vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 0;
}

.intro-heading-wrapper {
	width: min(900px, 100%);
	text-align: center;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 36px;
	box-shadow: var(--shadow);
	padding: 48px 38px;
	position: relative;
}

.intro-heading-wrapper::before {
	content: '';
	position: absolute;
	inset: 12px;
	border: 1px dashed rgba(217, 137, 123, 0.28);
	border-radius: 28px;
	pointer-events: none;
}

.subtitle {
	margin: 0 0 14px;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-dark);
}

.intro-heading-wrapper h1 {
	margin: 0 0 18px;
	font-family: 'Transforma Sans', sans-serif;
	font-size: clamp(2rem, 4vw, 3.7rem);
	line-height: 1.15;
	color: var(--title);
}

.intro-heading-wrapper p {
	margin: 10px auto;
	max-width: 760px;
	font-size: 1.05rem;
	color: var(--text-soft);
}

.intro-heading-wrapper p strong {
	color: var(--text-main);
	font-weight: 700;
}

/* Main */
.main {
	padding: 10px 0 80px;
}

.book {
	margin-bottom: 34px;
	scroll-margin-top: 30px;
}

.book-wrapper {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 28px;
	align-items: stretch;
	background: linear-gradient(135deg, rgba(255, 243, 235, 0.88), rgba(255, 255, 255, 0.92));
	border: 1px solid rgba(217, 137, 123, 0.14);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition:
		transform 0.35s ease,
		box-shadow 0.35s ease;
	position: relative;
}

.book-wrapper:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-hover);
}

.book-wrapper::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(248, 216, 207, 0.14),
		transparent 30%,
		transparent 70%,
		rgba(231, 201, 139, 0.08)
	);
	pointer-events: none;
}

.book-cover-wrapper {
	background: linear-gradient(180deg, #fdebe5 0%, #fff7f4 100%);
	padding: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.book-cover-wrapper::after {
	content: '';
	position: absolute;
	inset: 16px;
	border-radius: 20px;
	border: 1px dashed rgba(191, 109, 96, 0.25);
	pointer-events: none;
}

.book-cover-link {
	display: block;
	width: 100%;
	max-width: 220px;
	transition: transform 0.35s ease;
	position: relative;
	z-index: 1;
}

.book-cover-link:hover {
	transform: scale(1.03);
}

.book-cover {
	width: 100%;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 18px;
	box-shadow: 0 18px 35px rgba(74, 59, 54, 0.18);
	border: 4px solid rgba(255, 255, 255, 0.8);
	background: #fff;
}

.book-card {
	padding: 30px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.book-title {
	margin: 0 0 18px;
	font-family: 'Transforma Sans', sans-serif;
	font-size: clamp(1.25rem, 2.2vw, 1.85rem);
	line-height: 1.35;
	color: var(--title);
}

.book-description p {
	margin: 0 0 14px;
	color: var(--text-soft);
	font-size: 1rem;
}

.book-description p:last-child {
	margin-bottom: 0;
}

.book-description strong {
	color: var(--accent-dark);
	font-weight: 700;
}

/* Чередование карточек */
.book:nth-child(even) .book-wrapper {
	grid-template-columns: 1fr 300px;
}

.book:nth-child(even) .book-cover-wrapper {
	order: 2;
}

.book:nth-child(even) .book-card {
	order: 1;
}

/* Небольшие индивидуальные оттенки */
#book-1 .book-wrapper {
	background: linear-gradient(135deg, rgba(234, 243, 255, 0.86), rgba(255, 255, 255, 0.95));
}

#book-2 .book-wrapper {
	background: linear-gradient(135deg, rgba(255, 244, 235, 0.92), rgba(255, 255, 255, 0.95));
}

#book-3 .book-wrapper {
	background: linear-gradient(135deg, rgba(255, 240, 247, 0.92), rgba(255, 255, 255, 0.95));
}

#book-4 .book-wrapper {
	background: linear-gradient(135deg, rgba(243, 248, 240, 0.92), rgba(255, 255, 255, 0.95));
}

#book-5 .book-wrapper {
	background: linear-gradient(135deg, rgba(255, 248, 232, 0.95), rgba(255, 255, 255, 0.95));
}

#book-6 .book-wrapper {
	background: linear-gradient(135deg, rgba(239, 247, 255, 0.92), rgba(255, 255, 255, 0.95));
}

/* Декоративные разделители */
.book + .book {
	position: relative;
}

.book + .book::before {
	content: '✦';
	display: block;
	width: fit-content;
	margin: 0 auto 22px;
	color: var(--gold);
	font-size: 1.2rem;
	opacity: 0.9;
}

/* Адаптивность */
@media (max-width: 1100px) {
	.book-wrapper,
	.book:nth-child(even) .book-wrapper {
		grid-template-columns: 260px 1fr;
	}
}

@media (max-width: 900px) {
	.header {
		padding-top: 36px;
		padding-bottom: 44px;
	}

	.intro {
		min-height: auto;
	}

	.intro-heading-wrapper {
		padding: 34px 22px;
		border-radius: 28px;
	}

	.book-wrapper,
	.book:nth-child(even) .book-wrapper {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.book:nth-child(even) .book-cover-wrapper,
	.book:nth-child(even) .book-card {
		order: initial;
	}

	.book-cover-wrapper {
		padding: 24px 24px 10px;
	}

	.book-cover-link {
		max-width: 240px;
	}

	.book-card {
		padding: 18px 22px 24px;
	}
}

@media (max-width: 600px) {
	.container-fluid {
		width: min(100% - 20px, var(--container));
	}

	.intro-heading-wrapper h1 {
		font-size: 1.8rem;
	}

	.subtitle {
		font-size: 0.82rem;
	}

	.intro-heading-wrapper p {
		font-size: 0.96rem;
	}

	.book-title {
		font-size: 1.15rem;
	}

	.book-description p {
		font-size: 0.95rem;
	}

	.book-cover-wrapper {
		padding: 18px 18px 8px;
	}

	.book-card {
		padding: 16px 16px 20px;
	}
}

/* Анимации появления без AOS тоже смотрятся приятно */
.book-wrapper,
.intro-heading-wrapper {
	animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Улучшение доступности */
.book-cover-link:focus-visible,
a:focus-visible {
	outline: 3px solid rgba(217, 137, 123, 0.5);
	outline-offset: 4px;
	border-radius: 16px;
}
