/**
 * Styles for Informational Pages (Template Info)
 * Design Node: Desktop (355:18074), Mobile (355:18526)
 *
 * @package cukiernia
 */



/* ==========================================================================
   Hero Section with Decorative Shapes and H1 Title
   ========================================================================== */
.info-hero {
	position: relative;
	width: 100%;
	background-color: #F4EBE1;
	min-height: 316px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-x: clip;
	overflow-y: visible;
	padding: 56px 0;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.info-hero {
		min-height: 290px;
		padding: 50px 0 44px;
	}
}

.info-hero__container {
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Title wrapper to anchor text and surrounding shapes */
.info-hero__title-wrapper {
	position: relative;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
	display: flex;
	justify-content: center;
}

.info-hero__title {
	margin: 0;
	font-family: var(--font-heading, 'Romile', serif);
	font-size: 80px;
	line-height: 1.12;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: #80142E;
	font-weight: 400;
	position: relative;
	z-index: 3;
	word-break: break-word;
}

.info-hero__title-desktop {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.info-hero__title-mobile {
	display: none;
}

.info-hero__title-desktop span,
.info-hero__title-mobile span {
	display: block;
	white-space: nowrap;
}

/* Desktop indentation: cascading shift */
.info-hero__title-desktop span:nth-child(1) {
	margin-left: 0;
}

.info-hero__title-desktop span:nth-child(2) {
	margin-left: 82px;
}

.info-hero__title-desktop span:nth-child(3) {
	margin-left: 164px;
}

.info-hero__title-desktop span:nth-child(4) {
	margin-left: 246px;
}

@media (max-width: 1024px) {
	.info-hero__title {
		font-size: 64px;
		letter-spacing: 1.2px;
	}

	.info-hero__title-desktop span:nth-child(2) {
		margin-left: 60px;
	}

	.info-hero__title-desktop span:nth-child(3) {
		margin-left: 120px;
	}
}

@media (max-width: 768px) {
	.info-hero__title {
		font-size: 48px;
		line-height: 1.15;
		letter-spacing: 0.96px;
	}

	.info-hero__title-desktop {
		display: none;
	}

	.info-hero__title-mobile {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}

	/* Mobile indentation: each next line shifted to the right */
	.info-hero__title-mobile span:nth-child(1) {
		margin-left: 0;
	}

	.info-hero__title-mobile span:nth-child(2) {
		margin-left: 70px;
	}

	.info-hero__title-mobile span:nth-child(3) {
		margin-left: 135px;
	}

	.info-hero__title-mobile span:nth-child(4) {
		margin-left: 180px;
	}
}

@media (max-width: 375px) {
	.info-hero__title {
		font-size: 44px;
	}

	.info-hero__title-mobile span:nth-child(2) {
		margin-left: 55px;
	}

	.info-hero__title-mobile span:nth-child(3) {
		margin-left: 110px;
	}
}

@media (max-width: 340px) {
	.info-hero__title {
		font-size: 38px;
	}

	.info-hero__title-mobile span:nth-child(2) {
		margin-left: 40px;
	}

	.info-hero__title-mobile span:nth-child(3) {
		margin-left: 80px;
	}
}

/* ==========================================================================
   Decorative Shapes Positioning and Z-Index
   ========================================================================== */
.info-hero__shape {
	position: absolute;
	pointer-events: none;
	user-select: none;
	z-index: 1;
	/* Always beneath the title text (z-index: 3) */
}

/* Green capsule (top-left, behind "ПО") */
.info-hero__shape--capsule {
	top: -24px;
	left: 230px;
	width: 65px;
	height: 92px;
	border-radius: 21px;
	background-color: #CAD98A;
	transform: rotate(29.3deg);
}

@media (max-width: 1024px) {
	.info-hero__shape--capsule {
		top: -45px;
		left: 37px;
		width: 52px;
		height: 74px;
		border-radius: 17px;
	}
}

@media (max-width: 768px) {
	.info-hero__shape--capsule {
		top: -45px;
		left: 37px;
		width: 36px;
		height: 52px;
		border-radius: 12px;
	}
}

/* Yellow flower (top-right, behind title) */
.info-hero__shape--flower {
	top: -50px;
	right: 53px;
	width: 139px;
	height: 138px;
}

@media (max-width: 1024px) {
	.info-hero__shape--flower {
		top: -80px;
		right: 13px;
		width: 100px;
		height: 100px;
	}
}

@media (max-width: 768px) {
	.info-hero__shape--flower {
		top: -80px;
		right: 13px;
		width: 72px;
		height: 72px;
	}
}

/* Blue ribbon (bottom-right, below title) */
.info-hero__shape--ribbon {
	bottom: -52px;
	right: 260px;
	width: 67px;
	height: 91px;
	transform: rotate(48.78deg);
}

@media (max-width: 1024px) {
	.info-hero__shape--ribbon {
		bottom: -50px;
		right: 50px;
		width: 52px;
		height: 72px;
	}
}

@media (max-width: 768px) {
	.info-hero__shape--ribbon {
		bottom: -50px;
		right: 50px;
		width: 40px;
		height: 60px;
	}
}

/* Pink star (anchored to container at left, overlapping bottom edge) */
.info-hero__shape--star {
	bottom: -103px;
	left: -36px;
	width: 186px;
	height: 185px;
	transform: rotate(4.44deg);
}

@media (max-width: 1024px) {
	.info-hero__shape--star {
		bottom: -85px;
		left: 7px;
		width: 145px;
		height: 145px;
	}
}

@media (max-width: 768px) {
	.info-hero__shape--star {
		bottom: -85px;
		left: 7px;
		width: 115px;
		height: 115px;
	}
}

/* ==========================================================================
   Page Content Typography (Visual Editor Output)
   ========================================================================== */
.info-page-content {
	padding-top: 80px;
	padding-bottom: 120px;
	font-family: var(--font-body, 'KyivType Sans', sans-serif);
	color: #4D3024;
	line-height: 1.45;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.info-page-content {
		padding-top: 48px;
		padding-bottom: 64px;
	}
}

/* All heading levels (H1-H6) in the visual editor share a unified design */
.info-page-content h1,
.info-page-content h2,
.info-page-content h3,
.info-page-content h4,
.info-page-content h5,
.info-page-content h6 {
	font-family: var(--font-heading, 'Romile', serif);
	color: #80142E;
	text-transform: uppercase;
	font-weight: 400;
	font-size: 48px;
	line-height: 1.2;
	letter-spacing: 0.02em;
	margin-top: 48px;
	margin-bottom: 24px;
	word-break: break-word;
}

.info-page-content h1:first-child,
.info-page-content h2:first-child,
.info-page-content h3:first-child,
.info-page-content h4:first-child,
.info-page-content h5:first-child,
.info-page-content h6:first-child {
	margin-top: 0;
}

@media (max-width: 768px) {

	.info-page-content h1,
	.info-page-content h2,
	.info-page-content h3,
	.info-page-content h4,
	.info-page-content h5,
	.info-page-content h6 {
		font-size: 24px;
		line-height: 1.35;
		margin-top: 32px;
		margin-bottom: 16px;
	}
}

/* Paragraphs */
.info-page-content p {
	font-size: 18px;
	line-height: 1.45;
	letter-spacing: 0.02em;
	margin-top: 0;
	margin-bottom: 24px;
	color: #4D3024;
}

@media (max-width: 768px) {
	.info-page-content p {
		font-size: 16px;
		margin-bottom: 20px;
	}
}

/* Lists */
.info-page-content ul {
	list-style-type: disc;
	margin: 0 0 32px 0;
	padding-left: 28px;
}

.info-page-content ol {
	list-style-type: decimal;
	margin: 0 0 32px 0;
	padding-left: 28px;
}

.info-page-content li {
	font-size: 18px;
	line-height: 1.45;
	margin-bottom: 16px;
	color: #4D3024;
}

.info-page-content li:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {

	.info-page-content ul,
	.info-page-content ol {
		margin-bottom: 24px;
		padding-left: 24px;
	}

	.info-page-content li {
		font-size: 16px;
		margin-bottom: 12px;
	}
}

/* Links */
.info-page-content a {
	color: #80142E;
	text-decoration: underline;
	text-underline-offset: 3px;
	word-break: break-word;
	transition: opacity 0.2s ease;
}

.info-page-content a:hover {
	opacity: 0.8;
}

/* Strong / Bold */
.info-page-content strong,
.info-page-content b {
	font-weight: 700;
	color: #4D3024;
}

/* ==========================================================================
   404 Page (Error 404 Not Found)
   ========================================================================== */
.error-404-hero .info-hero__title {
	font-size: 110px;
	line-height: 1;
	letter-spacing: 2px;
	color: #80142e;
	text-align: center;
}

@media (max-width: 768px) {
	.error-404-hero .info-hero__title {
		font-size: 72px;
	}
}

.error-404-main {
	padding: 70px 0 140px;
	text-align: center;
	box-sizing: border-box;
}

@media (max-width: 768px) {
	.error-404-main {
		padding: 40px 0 80px;
	}
}

.error-404-content {
	max-width: 580px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.error-404-title {
	font-family: 'KyivType Sans', sans-serif;
	font-size: 28px;
	font-weight: 500;
	color: #80142e;
	line-height: 1.25;
	margin: 0 0 16px 0;
}

@media (max-width: 768px) {
	.error-404-title {
		font-size: 22px;
	}
}

.error-404-description {
	font-family: 'KyivType Sans', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #4d3024;
	line-height: 1.6;
	margin: 0 0 36px 0;
}

@media (max-width: 768px) {
	.error-404-description {
		font-size: 15px;
		margin-bottom: 28px;
	}
}

.error-404-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 52px !important;
	padding: 0 40px !important;
	background-color: #80142e !important;
	color: #f4ebe1 !important;
	font-family: 'KyivType Sans', sans-serif !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	letter-spacing: 0.02em !important;
	text-decoration: none !important;
	border-radius: 100px !important;
	border: 1px solid #80142e !important;
	cursor: pointer !important;
	transition: all 0.25s ease !important;
	box-sizing: border-box !important;
}

.error-404-button:hover {
	background-color: transparent !important;
	color: #80142e !important;
	border-color: #80142e !important;
}

@media (max-width: 768px) {
	.error-404-button {
		height: 48px !important;
		padding: 0 28px !important;
		font-size: 14px !important;
		width: 100% !important;
		max-width: 280px;
	}
}