.hero__wrapper-title {
	text-align: center;
}

.hero__wrapper-img {
	left: auto;
}



.hero__wrapper-img img {
	display: inline-block;
	width: 70%;
	height: auto;
	vertical-align: bottom;
}

.hero__wrapper-img img.hero_d {
	width: 21%;
	height: auto;
	vertical-align: bottom;
}

@media (max-width: 4000px) and (min-width: 1721px) {
	.hero__wrapper-img {
		left: -23px;
	}

	.hero__button--top {
		display: flex;
	}

	.hero__button--bottom {
		display: none;
	}

	.hero__wrapper .hero__button {
		display: block;
		margin-top: 404px;
	}
}

@media (max-width: 4000px) and (min-width: 1200px) {
	/*.hero__wrapper .hero__button {*/
	/*	display: block;*/
	/*}*/

	.hero__wrapper-title {
		margin-left: 5%;
	}
}

@media (min-width: 1721px) {

	.hero__button--top {
		display: block !important;
	}

	.hero__button--bottom {
		display: none !important;
	}
}

@media (max-width: 1720px) {

	.hero__button--top {
		display: none !important;
	}

	.hero__button--bottom {
		display: block !important;
	}
}

@media (max-width: 1720px) and (min-width: 1411px) {
	.hero__wrapper-img {
		left: auto;
		margin-left: 130px;
		max-width: 760px;
	}

	.hero__wrapper-img img {
		width: 70%;
	}

	.hero__wrapper-img img.hero_d {
		width: 21%;
	}
}

@media (max-width: 1410px) and (min-width: 1201px) {
	.hero__wrapper-img {
		left: auto;
		margin-top: -120px;
		margin-left: 120px;
		width: 620px;
		max-width: 620px;
		min-width: 620px;
	}

	.hero__wrapper-img img {
		width: 70%;
		/*transform: translateX(-40px);*/
	}

	.hero__wrapper-img img.hero_d {
		width: 21%;
	}
}

@media (max-width: 1200px) and (min-width: 769px) {
	.hero__wrapper-img {
		width: 100%;
		max-width: 680px;
		margin-top: -100px;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
		transform: translateX(64px);
	}

	.hero__wrapper-img img {
		display: inline-block;
		width: 70%;
		max-width: none;
		height: auto;
		vertical-align: bottom;
	}

	.hero__wrapper-img img.hero_d {
		display: inline-block;
		width: 21%;
		max-width: none;
		height: auto;
		vertical-align: bottom;
	}

	.hero__wrapper .hero__button {
		display: block;
	}

	.hero__wrapper-title {
		width: 100%;
		margin-top: 56px;
		text-align: center;
	}

	.hero__wrapper-title h1 {
		text-align: center;
	}
}

@media (max-width: 768px) {
	.hero__wrapper-title {
		text-align: center;
	}

	.hero__wrapper-title h1 {
		text-align: center;
	}

	.hero__wrapper-img {
		max-width: 780px;
		width: 100%;
		padding: 0 12px 0 28px;
		margin-top: -78px;
		text-align: right;
	}

	.hero__wrapper-img img {
		display: inline-block;
		width: 70%;
		max-width: none;
		height: auto;
		vertical-align: bottom;
	}

	.hero__wrapper-img img.hero_d {
		display: inline-block;
		width: 21%;
		max-width: none;
		height: auto;
		vertical-align: bottom;
		transform: translateX(44px);
	}
}

@media (max-width: 455px) {
	.hero__wrapper-img {
		width: 100%;
		display: flex;
		align-items: flex-end;
		justify-content: center;

		margin-top: -135px;
		/*padding: 0 20px;*/

		gap: 100px;
	}

	.hero__wrapper-img img {
		width: 55%;
		height: auto;

		transform: translateX(16px) translateY(75px);
	}

	.hero__wrapper-img img.hero_d {
		width: 16%;
		height: auto;
		transform: translateX(35px) translateY(75px);
	}

	.hero__wrapper-block {
		margin-top: 80px;
	}
}


@media (max-width: 390px) {
	.hero__wrapper-img {
		width: 100%;
		display: flex;
		align-items: flex-end;
		justify-content: center;

		margin-top: -120px;
		gap: 78px;
	}

	.hero__wrapper-img img {
		width: 52%;
		height: auto;

		transform: translateX(14px) translateY(16px);
	}

	.hero__wrapper-img img.hero_d {
		width: 15%;
		height: auto;

		transform: translateY(-2px);
	}
}

@media (max-width: 375px) {
	.hero__wrapper-img {
		width: 100%;
		display: flex;
		align-items: flex-end;
		justify-content: center;

		margin-top: -115px;
		gap: 70px;
	}

	.hero__wrapper-img img {
		width: 50%;
		height: auto;

		transform: translateX(10px) translateY(14px);
	}

	.hero__wrapper-img img.hero_d {
		width: 14%;
		height: auto;

		transform: translateX(18px) translateY(6px);
	}
}






/* Анимация золотого блика на главном заголовке */

.hero .hero__wrapper-title h1 {
	background-image:
			linear-gradient(
					110deg,
					transparent 40%,
					rgba(255, 230, 160, 0.2) 46%,
					rgba(255, 245, 195, 0.8) 49%,
					#FFF8DC 50%,
					rgba(255, 245, 195, 0.8) 51%,
					rgba(255, 230, 160, 0.2) 54%,
					transparent 60%
			),
			linear-gradient(180deg, #AD8433, #FFE5A0);

	background-size: 250% 100%, 100% 100%;
	background-position: 100% 0, 0 0;
	background-repeat: no-repeat;

	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;

	animation: heroGoldSweep 5s linear infinite;
}

@keyframes heroGoldSweep {
	0% {
		background-position: 100% 0, 0 0;
	}

	65% {
		background-position: 0% 0, 0 0;
	}

	100% {
		background-position: 0% 0, 0 0;
	}
}

/* Отключение анимации при соответствующей настройке ОС */
@media (prefers-reduced-motion: reduce) {
	.hero .hero__wrapper-title h1 {
		animation: none;
	}
}



/* =========================================
   НОВОГОДНЯЯ ЁЛКА
========================================= */

.hero .hero__wrapper-block {
	position: relative;
	isolation: isolate;
}

.hero .hero__christmas-tree {
	position: absolute;
	top: 140px;
	right: calc(100% + -7px);
	width: clamp(240px, 23vw, 355px);
	z-index: -1;
	pointer-events: none;
	opacity: 1;
}

.hero .hero__christmas-tree svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

/* Ствол */

.hero .tree__trunk {
	fill: none;
	stroke: #B86A20;
	stroke-width: 11;
	stroke-linecap: round;
}


/* =========================================
   ПЫШНАЯ ЗЕЛЁНАЯ ЁЛКА В БОЛЕЕ НАТУРАЛЬНЫХ ТОНАХ
========================================= */

/* Тёмная основа */

.hero .tree__shape {
	fill: #0A4F2A;
	stroke: #146638;
	stroke-width: 1;
	stroke-linejoin: round;
}

/* Основные ветви */

.hero .tree__branch {
	stroke: #145F34;
	stroke-width: 1.5;
	stroke-linejoin: round;
}

/* Основные ярусы — более натуральные хвойные оттенки */

.hero .tree__branch--1 {
	fill: #1E7A3E;
}

.hero .tree__branch--2 {
	fill: #146C34;
}

.hero .tree__branch--3 {
	fill: #238347;
}

.hero .tree__branch--4 {
	fill: #125F2F;
}

.hero .tree__branch--5 {
	fill: #1C7840;
}

/* Дополнительные боковые ветви */

.hero .tree__outer-sprigs {
	fill: #1B733C;
	stroke: #115B31;
	stroke-width: 1;
	stroke-linejoin: round;
}

.hero .tree__outer-sprigs path:nth-child(even) {
	fill: #2A8A4A;
}

.hero .tree__outer-sprigs path:nth-child(3n) {
	fill: #166634;
}

/* Светлые объёмные веточки */

.hero .tree__inner-sprigs {
	fill: #3C9A57;
	opacity: 0.95;
}

.hero .tree__inner-sprigs path:nth-child(even) {
	fill: #237A44;
}

/* Иголки */

.hero .tree__needles {
	fill: none;
	stroke: #5EAE73;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	opacity: 0.9;
}

/* Тёмные участки для объёма */

.hero .tree__shadows {
	fill: none;
	stroke: #0C4F28;
	stroke-width: 5;
	stroke-linecap: round;
	opacity: 0.85;
}

/* Мягкое зелёное свечение кроны */

.hero .tree__foliage {
	filter: drop-shadow(
			0 0 4px rgba(22, 90, 45, 0.25)
	);
}


/* =========================================
   ГИРЛЯНДЫ
========================================= */

.hero .tree__garland {
	fill: none;
	stroke: #FFD83D;
	stroke-width: 3;
	stroke-linecap: round;
	opacity: 1;

	filter: drop-shadow(
			0 0 4px rgba(255, 200, 30, 0.85)
	);
}


/* =========================================
   ЗВЕЗДА
========================================= */

.hero .tree__star {
	fill: #FFDB35;
	stroke: #FFF4B0;
	stroke-width: 1.6;

	filter:
			drop-shadow(0 0 5px rgba(255, 220, 40, 1))
			drop-shadow(0 0 12px rgba(255, 174, 0, 0.85));

	transform-box: fill-box;
	transform-origin: center;

	animation: christmasStarPulse 3s ease-in-out infinite;
}


/* =========================================
   НОВОГОДНИЕ ОГОНЬКИ
========================================= */

/* Общие настройки для всех огоньков */

.hero .tree__lights circle {
	fill: #FFE52C;

	transform-box: fill-box;
	transform-origin: center;

	filter:
			drop-shadow(0 0 6px #FFE52C)
			drop-shadow(0 0 12px rgba(255, 220, 60, 0.95))
			drop-shadow(0 0 20px rgba(255, 190, 0, 0.8));

	animation: christmasLightBlink 2.2s ease-in-out infinite;
}

/* Красные огоньки */

.hero .tree__lights circle:nth-child(3n) {
	fill: #FF2345;

	filter:
			drop-shadow(0 0 6px #FF2345)
			drop-shadow(0 0 12px rgba(255, 35, 69, 0.95))
			drop-shadow(0 0 20px rgba(255, 20, 50, 0.8));

	animation-delay: -0.8s;
}

/* Ярко-жёлтые огоньки */

.hero .tree__lights circle:nth-child(3n + 2) {
	fill: #FFCE15;

	filter:
			drop-shadow(0 0 6px #FFCE15)
			drop-shadow(0 0 12px rgba(255, 206, 21, 0.95))
			drop-shadow(0 0 20px rgba(255, 180, 0, 0.82));

	animation-delay: -1.6s;
}

/* Розовые огоньки */

.hero .tree__lights circle:nth-child(5n) {
	fill: #FF32CB;

	filter:
			drop-shadow(0 0 6px #FF32CB)
			drop-shadow(0 0 12px rgba(255, 50, 203, 0.95))
			drop-shadow(0 0 20px rgba(255, 40, 200, 0.82));
}

/* Голубые огоньки */

.hero .tree__lights circle:nth-child(7n) {
	fill: #36EDFF;

	filter:
			drop-shadow(0 0 6px #36EDFF)
			drop-shadow(0 0 12px rgba(54, 237, 255, 0.95))
			drop-shadow(0 0 20px rgba(20, 220, 255, 0.82));
}


/* =========================================
   ИСКРЫ ВОКРУГ ЁЛКИ
========================================= */

.hero .tree__sparkles {
	fill: none;
	stroke: #FFE66A;
	stroke-width: 2;
	stroke-linecap: round;

	filter:
			drop-shadow(0 0 4px rgba(255, 225, 65, 1))
			drop-shadow(0 0 8px rgba(255, 196, 0, 0.8));

	animation: christmasSparkle 4s ease-in-out infinite;
}


/* Новогоднее поздравление под ёлкой */

.hero .tree__greeting {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 27px;
	font-weight: 700;
	font-style: italic;
	letter-spacing: 0.4px;

	stroke: #754C18;
	stroke-width: 0.5px;
	paint-order: stroke fill;
	transform: translateY(-68px);

	filter:
			drop-shadow(0 0 3px rgba(255, 215, 110, 0.7))
			drop-shadow(0 0 7px rgba(218, 164, 54, 0.4));
}

/* =========================================
   АНИМАЦИЯ
========================================= */

@keyframes christmasStarPulse {
	0%, 100% {
		opacity: 0.45;
		transform: scale(0.97);
	}

	50% {
		opacity: 1;
		transform: scale(1.05);
	}
}

@keyframes christmasLightBlink {
	0%, 100% {
		opacity: 0.7;
		transform: scale(0.9);
	}

	50% {
		opacity: 1;
		transform: scale(1.12);
	}
}

@keyframes christmasSparkle {
	0%, 100% {
		opacity: 0.35;
	}

	50% {
		opacity: 1;
	}
}


/* =========================================
   АДАПТИВНОСТЬ
========================================= */

/* Планшеты */

@media (max-width: 1721px) {
	.hero .hero__christmas-tree {
		top: 45px;
		right: calc(100% + 49px);
		width: clamp(200px, 23vw, 300px);
	}
}

@media (max-width: 1522px) {
	.hero .hero__christmas-tree {
		top: 90px;
		right: calc(100% + 2px);
		width: clamp(160px, 23vw, 260px);
	}
}

@media (max-width: 1444px) {
	.hero .hero__christmas-tree {
		top: 80px;
		right: calc(100% + 2px);
		width: clamp(140px, 23vw, 240px);
	}
}

@media (max-width: 1280px) {
	.hero .hero__christmas-tree {
		top: 115px;
		right: calc(100% + 2px);
		width: clamp(100px, 23vw, 200px);
	}
}

@media (max-width: 1200px) {
	.hero .hero__christmas-tree {
		top: -95px;
		right: 0;
		width: clamp(200px, 28vw, 270px);
	}
}

/* Мобильные устройства */

@media (max-width: 768px) {
	.hero .hero__christmas-tree {
		top: -107px;
		right: 4px;
		width: clamp(100px, 34vw, 200px);
		opacity: 1;
	}
}

/* Небольшие смартфоны */

@media (max-width: 455px) {
	.hero .hero__christmas-tree {
		top: -12px;
		right: 0;
		width: 30%;
		opacity: 1;
	}
}

@media (max-width: 415px) {
	.hero .hero__christmas-tree {
		top: 31px;
		right: 0;
		width: 29%;
		opacity: 1;
	}
}



@media (max-width: 375px) {
	.hero .hero__christmas-tree {
		top: -93px;
		width: 30%;
	}
}

/* Уменьшение движения по настройке ОС */

@media (prefers-reduced-motion: reduce) {
	.hero .tree__star,
	.hero .tree__lights circle,
	.hero .tree__sparkles {
		animation: none;
		opacity: 1;
	}
}

