:root {
	--orange: #F39C12FF;
	--white: #fff;
	--text-dark: #2C3E50FF;
	--gray: rgb(149, 165, 166);
	--red-primary: #C53F31FF;
	--red-secondary: #E44B3BFF;
	--orange-primary: #F39C12FF;
	--green-primary: #2ECC71FF;
	--font-family: 'Product Sans', 'Google Sans', 'Segoe UI', sans-serif;
	--transition: 0.3s all;
	--shadow: 3px 10px 17px 0px rgba(34, 60, 80, 0.2);

}

html, body {
	overflow-x: hidden;
	height: 100%;
	margin: 0;
	font-family: var(--font-family);
}

body {
	display: grid;
	grid-template-rows: auto 1fr auto; 
	min-height: 100vh;
}

a {
	text-decoration: underline;
	color: var(--text-dark);
}

i {
	margin: 0;  
	padding: 0; 
}

img {
	max-width: 100%;
	height: auto;
}



header {
	.header__banner {
		display: flex;
		flex-wrap: wrap;
		padding: 8px 0;
		background-color: var(--red-primary);
		color: var(--white);
		white-space: wrap;


		.banner__leftside, .banner__rightside {
			color: var(--white);
			white-space: wrap;

		}
		a {
			color: var(--white);
			text-decoration: underline;
			white-space: wrap;

			&:hover {
				opacity: .7;
			}
		}
	}
	i {
		color: var(--orange);
		padding-right: 4px;
	}
	.header__menu {
		background-color: var(--red-secondary);
		padding: 16px 0;
	}
	a.header__menu-title {
		display: inline;
		font-size: 24px;
		font-weight: 700;
		text-decoration: none;
		color: var(--white);
		&:hover {
			color: var(--white);
			opacity: .7;
			transition: var(--transition);
		}
	}
	.header__menu-center {
		i {
			color: inherit;
		}

		.header__nav {
			display: flex;
			gap: 4px;

			.header__menu-link {
				text-decoration: none;
				font-size:  16px;
				font-weight: 500;
				color: var(--white);
				display: inline-block;
				padding: 8px 12px;
				border-radius: 24px;
				transition: var(--transition);

				&:first-child {
					background-color: #FFFFFF42;

				}

				&:hover {
					background-color: #FFFFFF54;
				}

			}
		}
	}
	.header__menu-right {
		display: flex;
		justify-content: center;
		gap: 8px;

		.search-form {
			display: flex;
			gap: 16px;
			border-radius: 25px;
			border: none;
			padding: 4px 4px ;
			font-size: 0.9rem;
			background-color: #FFFFFF42;
			color: var(--white);
			transition: var(--transition);
			box-shadow: var(--shadow);
			&:hover {
				background-color: #FFFFFF30;
			}
			input[type="text"] {
				background: none;
				color: var(--white);
				border: none;
				outline: none;
				font-size: 18px;
				border-radius: 12px;
				margin-left: 8px;



				&::placeholder {
					font-size: 14px;
					opacity: 0.5;
					color: var(--white);
				}
				
			}

			button[type="submit"] {
				background: var(--orange-primary);
				border: none;
				color: var(--white);
				width: 36px;
				height: 36px;
				border-radius: 50%;
				cursor: pointer;
				transition: var(--transition);
				display: flex;
				align-items: center;
				justify-content: center;
				transition: var(--transition);

				&:hover {
					opacity: .5;
				}

				i {
					color: var(--white);
				}
			}
		}
		.header__gift-button {
			display: flex;
			justify-content: center;
			align-items: center;
			color: var(--white);
			text-decoration: none;
			background-color: var(--green-primary);
			transition: var(--transition);
			font-size: 14px;
			padding: 8px 16px;
			border-radius: 24px;
			box-shadow: var(--shadow);
			&:hover {
				opacity: .7;
			}
			i {
				color: var(--white);
			}
		}
	}
}



.section-hero {
	position: relative;
	background: linear-gradient(135deg, #fff5f5 0%, #ffeaa7 100%);
	padding: 60px 0 60px;
	border-bottom: 4px solid var(--red-primary);

	.hero-title {
		font-size: 2.5rem;
		font-weight: 800;
		color: var(--red-primary);
		margin-bottom: 10px;
	}

	.hero-subtitle {
		font-size: 1.2rem;
		color: var(--text-dark);
		font-weight: 500;
	}

	&::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-image: url('../images/logo-mark1.png');
		background-repeat: no-repeat;
		background-position: 95% 30%;
		background-size: 30rem;
		opacity: 0.8; 
		z-index: 0;
	}
	
	& > * {
		position: relative;
		z-index: 1;
	}

	.hero__buttons {
		margin-top: 20px;
		display: flex;
		gap: 16px;
	}
	.hero__date {
		text-align: center;
		font-size: 19px;
		color: var(--text-dark);
		border-radius: 16px;
		font-weight: 700;
		padding: 16px;
		background-color: var(--white);
		-webkit-box-shadow: 3px 10px 17px 0px rgba(34, 60, 80, 0.2);
		-moz-box-shadow: 3px 10px 17px 0px rgba(34, 60, 80, 0.2);
		box-shadow: 3px 10px 17px 0px rgba(34, 60, 80, 0.2);
	}
}
.btn {
	display: block;
	padding: 10px 20px;
	transition: var(--transition);
	box-shadow: var(--shadow);

	&:hover {
		opacity: .7;
	}
	&.btn-green {
		background-color: var(--green-primary);
		color: var(--white);
	}
	&.btn-white {
		background-color: #FFFFFF76;
	}
}

.section-main {
	padding: 30px 0;

	.main-card__img {
		min-height: 300px;
		background-position: center;
		background-repeat: no-repeat;
	}
	.main-card {
		border: 1px solid var(--red-secondary);
		border-radius: 16px;
		padding: 16px;
	}
	.main-card__date {
		color: var(--gray);
		padding: 8px 0;
	}
	.main-card__title {
		color: var(--text-dark);
		font-size: 22px;
		font-weight: 700;

	}
	.main-card__excerpt {
		color: var(--gray);
	}
	.main-card__buttons {
		margin-top: 16px;
	}
	.main-card__buttons {
		margin-top: 16px;
		display: flex;
		gap: 16px;
	}
	.btn.btn-red-filled {
		border-radius: 32px;
		background-color: var(--red-primary);
		color: var(--white);
	}
	.btn.btn-red-hollow {
		border-radius: 32px;
		border: 3px solid var(--red-primary);
		color: var(--red-primary);
	}
}

.section-title {
	color: var(--text-dark);
	font-size: 24px;
	font-weight: 700;
	padding-bottom: 8px;
	border-bottom: 3px solid var(--red-primary);
	i {
		color: var(--orange);
		margin-right: 8px;
	}

}

footer {
	margin-top: 8px;
	
	.footer__top {
		background-color: var(--red-secondary);
		color: var(--white);
		padding: 48px 0 32px;
	}

	.footer__logo {
		display: inline-block;
		font-size: 24px;
		font-weight: 700;
		color: var(--white);
		text-decoration: none;
		margin-bottom: 16px;

		&:hover {
			opacity: 0.7;
			transition: var(--transition);
			color: var(--white);
		}

		i {
			color: var(--orange);
		}
	}

	.footer__desc {
		font-size: 14px;
		line-height: 1.6;
		opacity: 0.9;
		margin-bottom: 0;
	}

	.footer__title {
		font-size: 18px;
		font-weight: 700;
		margin-bottom: 16px;
		color: var(--white);
		position: relative;
		padding-bottom: 8px;

		&::after {
			content: '';
			position: absolute;
			bottom: 0;
			left: 0;
			width: 40px;
			height: 2px;
			background-color: var(--orange);
		}
	}

	.footer__links {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.footer__link {
		color: var(--white);
		text-decoration: none;
		font-size: 16px;
		transition: var(--transition);
		padding: 4px 0;

		&:hover {
			opacity: 0.7;
			padding-left: 4px;
			transition: var(--transition);
			color: var(--white);
		}

		i {
			color: var(--orange);
		}
	}

	.footer__contacts {
		.footer__contact-item {
			color: var(--white);
			margin-bottom: 12px;
			font-size: 16px;
		}
	}

	.footer__socials {
		display: flex;
		gap: 12px;
		margin-top: 20px;
	}

	.footer__social-link {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		border-radius: 50%;
		background-color: rgba(255, 255, 255, 0.15);
		color: var(--white);
		text-decoration: none;
		transition: var(--transition);

		&:hover {
			background-color: var(--orange);
			transform: translateY(-2px);
			color: var(--white);
		}

		i {
			font-size: 18px;
		}
	}

	.footer__bottom {
		background-color: var(--red-primary);
		padding: 16px 0;
	}

	.footer__copyright {
		font-size: 14px;
		opacity: 0.9;
		color: var(--white);
	}

	.footer__links-bottom {
		display: flex;
		gap: 16px;
		flex-wrap: wrap;
		justify-content: center;
	}

	.footer__bottom-link {
		color: var(--white);
		text-decoration: none;
		font-size: 14px;
		opacity: 0.8;
		transition: var(--transition);
		border-bottom: 1px solid rgba(255, 255, 255, 0.3);

		&:hover {
			opacity: 1;
			border-bottom-color: var(--orange);
			color: var(--white);
		}
	}

	.fa-orange {
		color: var(--orange);
	}
}

.sidebar {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	width: 100%;
	
	.sidebar__box {
		padding: 32px;
		border: 1px solid #00000631;
		border-radius: 16px;
		box-shadow: var(--shadow);
		margin-bottom: 16px;
	}
	.sidebar__box-title {
		font-size: 18px;
		border-bottom: 3px solid var(--orange-primary);
		padding-bottom: 16px;
		margin-bottom: 16px;
		color: var(--text-dark);
		i {
			color: var(--orange);
		}
	}
	.sidebar__list {
		margin: 0;
		padding: 0;
		list-style: none;

		li {
			margin-top: 8px;
			a {
				position: relative;
				padding-left: 4px;
				&:hover {
					color: var(--text-dark);
				}
				&:hover::before {
					display: block;
					position: absolute;
					content: "⭑";
					margin-left: -10px;
				}
			}
		}
	}         
	.sidebar__tags {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;

		.tag-badge {
			padding: 8px;
			background-color: #F0F0F0FF;
			border-radius: 16px;
			color: var(--text-dark);
			transition: var(--transition);
			&:hover {
				transform: translateX(2px);
			}
		}
	}
}
}

///////////////////////////////////////////////////////////////////////////////////////
/* Стили для single-prazdnik.php */
/*.container {
    max-width: 1320px;
}
*/
.prazdnik-article {
	background: #fff;
	border-radius: 16px;
	padding: 1.5rem;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

	/* Вложенность 2026 */
	.prazdnik-thumbnail {
		margin-bottom: 1.5rem;
		overflow: hidden;
		border-radius: 12px;

		img {
			transition: transform 0.3s ease;
			width: 100%;
			height: auto;
		}

		&:hover img {
			transform: scale(1.02);
		}
	}

	.prazdnik-title {
		font-size: 2.25rem;
		font-weight: 700;
		line-height: 1.2;
		color: #1a1a1a;
		border-left: 5px solid #0d6efd;
		padding-left: 1rem;
	}

	.prazdnik-meta {
		font-size: 0.9rem;
		color: #6c757d;
		border-bottom: 1px solid #e9ecef;
		padding-bottom: 0.75rem;
	}

	.prazdnik-content {
		font-size: 1.1rem;
		line-height: 1.7;
		color: #212529;

		h2, h3 {
			margin-top: 1.5em;
			margin-bottom: 0.5em;
			font-weight: 600;
		}

		p {
			margin-bottom: 1.25em;
		}

		img {
			max-width: 100%;
			height: auto;
			border-radius: 12px;
		}

		blockquote {
			border-left: 4px solid #0d6efd;
			padding-left: 1.25rem;
			font-style: italic;
			color: #495057;
			margin: 1.5rem 0;
		}
	}

	.page-links {
		margin-top: 2rem;
		padding-top: 1rem;
		border-top: 1px solid #e9ecef;
	}
}

/* Адаптивность */
@media (max-width: 992px) {
	.prazdnik-article {
		padding: 1rem;

		.prazdnik-title {
			font-size: 1.75rem;
		}

		.prazdnik-content {
			font-size: 1rem;
		}
	}
}


///////////////////////////////////////////////////////////////////////////////////////////////////
.error-404 {
	padding: 100px 0;
	text-align: center;
}

.error-404 h1 {
	font-size: 120px;
	font-weight: 700;
	margin-bottom: 20px;
	color: #dc3545;
}

.error-404 h2 {
	font-size: 32px;
	margin-bottom: 20px;
}

.error-404 p {
	font-size: 18px;
	margin-bottom: 30px;
	color: #6c757d;
}

.taxonomy-card {
	display: block;
	border: 1px solid var(--red-primary);
	padding: 16px;
	border-radius: 16px;
}
.taxonomy-card__img {
	min-height: 300px;
	background-position: center;
	background-repeat: no-repeat;
}

.taxonomy-card__title {
	margin-top: 8px;
	font-size: 22px;

}

.h1-title {
	color: var(--text-dark);
	font-size: 32px;
	font-weight: 700;
	margin-top: 16px;
}

.no-result {
	color: var(--gray);
	font-size: 32px;
	font-weight: 700;
	width: 100%;
	text-align: center;
	margin-top: 60px;
	a {
		font-size: 24px;
		text-decoration: underline;
	}
}

ol.breadcrumb-list {
	margin: 16px 0 0 0;
	padding: 0;
	display: flex;
	gap: 8px;
	list-style-type: none;
}

/* --- Адаптивность --- */

@media (max-width: 991.98px) {
	header {
		.header__menu {
			.header__menu-center {
				.header__nav {
					justify-content: center;
					flex-wrap: wrap;
					text-align: center;
				}
			}
			.header__menu-right {
				justify-content: center;
				flex-wrap: wrap;
				gap: 12px;
				margin-top: 10px;
			}
		}
	}

	.section-hero {
		text-align: center;
		padding: 40px 0;
		
		.hero-title {
			font-size: 1.8rem;
		}
		.hero-subtitle {
			font-size: 1rem;
		}
		.hero__buttons {
			justify-content: center;
		}
		&::before {
			background-size: 20rem;
			background-position: 50% 50%;
		}
	}
}

@media (max-width: 1199.98px) {
	&::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-image: url('../images/logo-mark1.png');
		background-repeat: no-repeat;
		background-position: 95% 30%;
		background-size: 30rem;
		opacity: 0.8; 
		z-index: 0;
	}
}

@media (max-width: 767.98px) {
	header {
		.header__banner {
			text-align: center;
			.banner__leftside, .banner__rightside {
				width: 100%;
				margin-bottom: 5px;
			}
		}
		.header__menu-title {
			font-size: 20px;
			display: block;
			text-align: center;
			margin-bottom: 15px;
		}
	}

	.section-hero {
		.hero-title {
			font-size: 1.5rem;
		}
	}

	.sidebar {
		.sidebar__box {
			padding: 20px;
		}
	}
}

@media (max-width: 575.98px) {
	.header__nav {
		.header__menu-link {
			font-size: 14px;
			padding: 6px 10px;
		}
	}

	.section-hero {
		.hero-title {
			font-size: 1.3rem;
		}
		.hero-subtitle {
			font-size: 0.9rem;
		}
	}

	.main-card {
		padding: 12px;
		.main-card__title {
			font-size: 18px;
		}
	}
}
