/* Подключаем каллиграфический шрифт для заголовков */
@import url('https://googleapis.com');

:root {
	/* 60% База */
	--bg-main: #eceee6;
	--bg-soft-olive: #E6E8DE;
	--bg-light-olive: #f2faf0;
	--text-main: #3f4632;

	/* 30% Вторичный (Оливковый со скриншота) */
	--olive-sage: #999C82;
	--olive-deep: #474E3B;

	/* 10% Акцент (Тёмно-оливковый HEX #556832 с референса) */
	--olive-accent: #556832;
	--olive-accent-hover: #3F4E24;

	/* Серебро */
	--silver-border: #C5CACF;
	--silver-light: #E8ECEF;
	--silver-gradient: linear-gradient(45deg, #5e5f5a 5%, #babbb5 55%, #5e5f5a 93%);
}

/* 60% Базовый фон страницы */
body {
	background-image: url('/images/basic/vip4me_bg.png');
	background-repeat: repeat;
	background-color: var(--bg-main);
	color: var(--text-main);
	font-size: 15px;
	line-height: 27px;
}

/* контакты список */
.contact {
	display: block;
	padding-bottom: 20px;
	line-height: 1.8;
}
.contact .fa {
	color: var(--olive-accent);
}

/* карусель */
.carousel-inner, .entry-image img {
	border: var(--bg-light-olive) solid 13px;
	box-shadow: 5px 5px 15px rgba(71, 78, 59, 0.16);
	border-radius: 30px;
}
.carousel-inner, .entry-image img:hover {
	box-shadow: 5px 5px 15px rgba(71, 78, 59, 0.28);
}
@media screen and (min-width: 992px) {
	.item.item-page .entry-gallery {
		max-width: 40vw;
		float: left;
		margin-right: 40px;
	}
}

/* коррекция верстки helix3 */

.row>* {
	padding-right: calc(var(--bs-gutter-x) * 1);
	padding-left: calc(var(--bs-gutter-x) * 1);
}
#offcanvas-toggler {
	margin-left: 0; 
}

#sp-header {
	background: none;
	box-shadow: none;
	height: 140px;
}
#sp-top-bar {
	background-color: transparent !important;
	padding: 0;
}
#sp-header .logo {
	margin-left: 20vw;
}
#sp-header .logo img {
	animation: text-shine-flow 6s linear infinite;
}
#sp-logo {
	width: 100%;
}

/* 10% Ссылки и акценты */
a {
	color: var(--olive-accent);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.25s ease;
}
a:hover, a:focus, a:active {
	color: var(--olive-accent-hover);	
	text-decoration: dotted underline var(--silver-border);
}

#offcanvas-toggler {
	line-height: 50px;
}
a, #offcanvas-toggler i {
	color: var(--olive-accent);
}
.fa.fa-mobile {
	color: var(--olive-accent);
}
.sp-megamenu-parent, #offcanvas-toggler {
	float: left;
}
.sp-megamenu-parent li a, .sp-megamenu-parent li span, .sp-contact-info li {
	line-height: 50px;
	padding: 0 30px 0 0;
	text-wrap: nowrap;
}
#sp-top2, #sp-menu {
	max-width: 50vw;
}
#sp-menu {
	z-index: 199;
}
.edit.item-page, .alert {
	z-index: 1001;
	position: relative;
}

#sp-header.menu-fixed {
	z-index: 1000;
	pointer-events: none;
}

.page-header {
	padding-top: 20px;
}

/* 30% Футер в приглушенном оливковом со скриншота с серебряной линией */
#sp-footer {
	background-image: url('/images/basic/vip4me_bg_bottom.png');
	background-repeat: repeat-x;
	background-color: var(--olive-sage);
	color: #FFFFFF;
	padding: 12px 5px;
}
#sp-footer a {
	color: #FFFFFF;
}
#sp-footer a:hover {
	color: var(--silver-light);
}

/* 10% Кнопки ("Смотреть: Машенька", пагинация) с серебряной обводкой */
.btn-secondary, .page-item .page-link {
	color: #fff;
	background-color: #8a8d73;
	border-radius: 5px;
	font-size: 12px;
	transition: all 0.25s ease;
	border: 0px;
}
.btn-secondary:hover, .page-item .page-link:hover {
	background-color: var(--olive-accent);
	box-shadow: 0 3px 10px rgba(85, 104, 50, 0.25);
}

/* Меню Helix3 */
.sp-megamenu-parent li a {
	color: var(--olive-deep);
}
.sp-megamenu-parent li.active a, .sp-megamenu-parent li:hover a {
	color: var(--olive-accent);
}
.sp-megamenu-parent li:hover a {
	text-decoration: dotted var(--silver-border) underline;
}

/* Каллиграфические заголовки с серебряным отливом */
h1 {
	width:min-content;
	text-wrap: nowrap;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	filter: drop-shadow(0px 1px 1px rgba(43, 48, 34, 0.25));
	position: relative;
	overflow: hidden; /* Обрезает блик строго по границам и скруглениям объекта */
	display: inline-block;

	/* Базовый цвет текста (оливковый) с яркой серебристо-белой полосой блика посередине */
	background: linear-gradient(
		110deg,
		#474E3B 35%,
		#D9DEE2 47%,
		#FFFFFF 50%,
		#D9DEE2 53%,
		#474E3B 65%
	);
	background-size: 250% auto;

	/* Обрезаем градиент строго по форме букв */
	color: transparent;
	-webkit-background-clip: text;
	background-clip: text;

	/* Запускаем плавное движение блика */
	animation: text-shine-flow 11s linear infinite;
}

@keyframes text-shine-flow {
	0% {
		background-position: 100% center;
	}
	35% {
		background-position: 0% center;
	}
	100% {
		background-position: 0% center;
	}
}




/* БЛИК */
.shine-effect {
	position: relative;
	overflow: hidden; /* Обрезает блик строго по границам и скруглениям объекта */
}

/* Полоса серебристого блика */
.shine-effect::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%; /* Стартует слева за пределами кнопки */
	width: 60%;
	height: 100%;

	/* Мягкий полупрозрачный серебряно-белый градиент */
	background: linear-gradient(
		120deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(232, 236, 239, 0.45) 50%,
		rgba(255, 255, 255, 0) 100%
	);

	transform: skewX(-25deg); /* Наклон полосы блика */
	pointer-events: none; /* Чтобы блик не мешал нажимать на кнопку */
	animation: shine-sweep 4s infinite ease-in-out;
}

/* Сценарий движения: быстро пролетает и ждет до конца 4-й секунды */
@keyframes shine-sweep {
	0% {
		left: -100%;
	}
	25% {
		left: 150%;
	}
	100% {
		left: 150%;
	}
}



.entry-header h2 {
	font-size: 28px;
	color: var(--text-main);
}

body, .sp-module ul li a {
	color: var(--text-main);
}

/* Стрелки карусели */
.carousel-right {
	right: 13px;
}
.carousel-left {
	left: 13px;
}
.carousel-left:hover, .carousel-right:hover, .carousel-left:focus, .carousel-right:focus {
	background-color: var(--olive-accent);
	color: #FFFFFF;
}

.login {
	margin-top: 50px;
}
.login .form-validate .form-links {
	display: none;
}

/* Поля ввода в мягком светло-оливковом тоне с серебряной рамкой */
select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {
	background-color: var(--bg-soft-olive);
	border: 1px solid var(--silver-border);
	color: var(--text-main);
}

/* 30% Боковое мобильное меню (Offcanvas) */
.offcanvas-menu {
	background-color: var(--olive-deep);
	color: #F5F6F1;
	border-left: 2px solid var(--silver-border);
}
.offcanvas-menu a {
	color: #F5F6F1;
}

@media screen and (max-width: 992px) {
	#sp-header {
		height: 130px;
	}
}
@media screen and (max-width: 530px) {
	#sp-header {
		height: 90px;
	}
}
@media screen and (max-width: 450px) {
	#sp-header {
		height: 60px;
	}
}
.article-info dd.category-name {
	margin-bottom: 10px;
	padding: 7px;
	background-color: #dddfd0;
	border-radius: 5px;
	margin: 0 8px 12px 0;
}
.article-list .category-name {
	display: none;
}
.sp-module .sp-module-title {
	font-size: 14px;
	letter-spacing: 5px;
	color: var(--olive-deep);
	border-bottom: 1px solid var(--silver-border);
	padding-bottom: 6px;
}

.entry-header h2 a {
	color: var(--olive-deep);
}
.entry-header h2 a:hover {
	color: var(--olive-accent);
}



/* фишка под меню */
.sp-megamenu-parent > li::after {
	content: "";
	position: absolute;
	top: calc(100% - 24px); /* Стартовая позиция чуть выше финальной */
	left: 50%;
	margin-left: -44px; /* Ровно половина ширины (240px / 2) для идеального центра */

	/* Обязательно задаем размеры всплывающей картинки */
	width: 56px;
	height: 17px;

	/* Путь к вашей картинке и ее подгонка под рамку */
	background-image: url('/images/basic/menu_arr.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	
	/* Скрываем по умолчанию */
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 9999;
	
	transition: top 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

/* Показываем при наведении */
.sp-megamenu-parent > li:hover::after {
	top: calc(100% - 14px);
	opacity: 1;
	visibility: visible; 
}

/* стили админки */
.edit.item-page {
	margin-bottom: 100px;
}
