/* ==========================================================================
   plc25.ru — стили фронтенда
   ========================================================================== */

html {
	scroll-padding-top: 110px;
}

/* ------------------------------ Hero slider ------------------------------ */

#main-slider {
	position: relative;
	width: 100%;
	height: 780px;
	max-height: calc(100vh - 110px);
	min-height: 420px;
	overflow: hidden;
	background: #111;
}

#mainSlider {
	position: relative;
	width: 100%;
	height: 100%;
}

#mainSlider.master-slider {
	visibility: visible !important;
}

#mainSlider .ms-slide {
	position: absolute;
	inset: 0;
	height: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8%) scale(1.04);
	transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s;
	z-index: 1;
}

#mainSlider .ms-slide.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	z-index: 3;
}

#mainSlider .ms-slide.is-prev {
	transform: translateY(-8%) scale(0.98);
}

#mainSlider .ms-slide > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
}

#mainSlider .ms-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.12) 60%, rgba(0, 0, 0, 0.2) 100%);
	z-index: 1;
	pointer-events: none;
}

#mainSlider .ms-anim-layers {
	position: relative;
	top: 0 !important;
	z-index: 2;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#mainSlider .ms-layer {
	position: relative !important;
	left: auto !important;
	top: auto !important;
	bottom: auto !important;
	margin: 0 0 10px !important;
	opacity: 0;
	transform: translateX(var(--from-x, 0)) skewX(var(--from-skew, 0deg));
	transition:
		transform var(--layer-duration, 0.6s) cubic-bezier(0.16, 0.84, 0.44, 1),
		opacity var(--layer-duration, 0.6s) ease;
	transition-delay: var(--layer-delay, 0s);
	will-change: transform, opacity;
}

#mainSlider .ms-slide.is-active .ms-layer {
	opacity: 1;
	transform: none;
}

.hero-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 6;
	width: 46px;
	height: 46px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 18px;
	line-height: 44px;
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.hero-nav:hover,
.hero-nav:focus {
	background: #e1730f;
	border-color: #e1730f;
	outline: none;
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

.hero-timebar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 4px;
	background: rgba(255, 255, 255, 0.16);
	z-index: 6;
}

.hero-timebar span {
	display: block;
	height: 100%;
	width: 0;
	background: #e1730f;
}

/* ------------------------------- Carousels ------------------------------- */

.carousel-viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

.carousel-viewport.is-dragging {
	cursor: grabbing;
}

.carousel-track {
	display: flex;
	align-items: stretch;
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.carousel-track.is-dragging {
	transition: none;
}

.carousel-track img {
	user-select: none;
	-webkit-user-drag: none;
}

#trail-slider .item .trail-hover,
#parts-slider .item .parts-hover {
	display: none !important;
}

.carousel-track > .item {
	flex: 0 0 calc(100% / var(--visible, 3));
	max-width: calc(100% / var(--visible, 3));
	margin: 0;
	box-sizing: border-box;
}

.carousel-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 30px;
	margin-bottom: 10px;
	padding: 4px 0;
}

.carousel-dots button {
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dots button.is-active {
	background: #e1730f;
	transform: scale(1.25);
}

.carousel-arrows {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
}

.carousel-arrow {
	position: absolute;
	top: calc(50% - 44px);
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.18);
	background: rgba(255, 255, 255, 0.92);
	color: #1f2226;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	pointer-events: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.carousel-arrow:hover,
.carousel-arrow:focus {
	background: #e1730f;
	border-color: #e1730f;
	color: #fff;
	outline: none;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-arrows[hidden] {
	display: none !important;
}

#trail-slider,
#parts-slider { --visible: 3; }

#testimonials-slider { --visible: 1; }

/* ------------------ Карточки линейки контроллеров ПЛК-25 ------------------ */

#parts-gallery {
	padding: 24px 0 32px;
}

#parts-slider {
	padding: 6px 0 4px;
}

#parts-slider > .item {
	display: flex;
	padding: 10px 12px;
	overflow: visible;
}

#parts-slider .item .part-card {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	background: #ffffff;
	border: 1px solid rgba(20, 22, 26, 0.08);
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(17, 20, 24, 0.07);
	overflow: hidden;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

#parts-slider .item .part-card:hover,
#parts-slider .item .part-card:focus-within {
	transform: translateY(-8px);
	border-color: rgba(225, 115, 15, 0.45);
	box-shadow: 0 18px 40px rgba(17, 20, 24, 0.16);
}

#parts-slider .item .part-card-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 26px 26px 12px;
	background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
	border-bottom: 1px solid rgba(20, 22, 26, 0.06);
}

#parts-slider .item .part-card-media img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: contain;
	border-radius: 10px;
	opacity: 1;
	transform: none;
	-webkit-transform: none;
	transition: transform 0.45s ease;
}

#parts-slider .item .part-card:hover .part-card-media img {
	transform: scale(1.04);
	-webkit-transform: scale(1.04);
}

#parts-slider .item .part-card-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 5px 12px;
	border-radius: 999px;
	background: #e1730f;
	color: #ffffff;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.4;
	box-shadow: 0 4px 12px rgba(225, 115, 15, 0.35);
}

#parts-slider .item .part-card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1 1 auto;
	gap: 8px;
	padding: 20px 26px 26px;
}

#parts-slider .item .part-card-cat {
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
	color: #9a9fa6;
}

#parts-slider .item .part-card-body h3 {
	margin: 0;
	text-align: left;
}

#parts-slider .item .part-card-body h3 a {
	display: inline-block;
	margin: 0;
	font-family: 'Raleway', sans-serif;
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
	color: #151614;
	text-decoration: none;
	transition: color 0.3s ease;
}

#parts-slider .item .part-card-body p {
	margin: 0;
	padding: 0;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15px;
	line-height: 1.6;
	text-align: left;
	color: #686868;
}

#parts-slider .item .part-card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 16px;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
	color: #e1730f;
	text-decoration: none;
}

#parts-slider .item .part-card-link::after {
	content: "\2192";
	font-size: 15px;
	line-height: 1;
	transition: transform 0.25s ease;
}

#parts-slider .item .part-card-link:hover,
#parts-slider .item .part-card-link:focus {
	color: #b85c09;
	text-decoration: none;
}

#parts-slider .item .part-card-link:hover::after,
#parts-slider .item .part-card-link:focus::after {
	transform: translateX(4px);
}

@media (max-width: 767px) {
	#parts-slider > .item {
		padding: 8px;
	}

	#parts-slider .item .part-card-media {
		padding: 20px 20px 10px;
	}

	#parts-slider .item .part-card-media img {
		height: 150px;
	}

	#parts-slider .item .part-card-body {
		padding: 16px 20px 22px;
	}

	#parts-slider .item .part-card-body h3 a {
		font-size: 19px;
	}
}

/* --------------------------- Навигация и меню ---------------------------- */

.navbar-collapse.in {
	display: block;
}

#navigation.affix {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1040;
	background: rgba(17, 17, 17, 0.94);
	border-bottom: 3px solid #e1730f;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

#navigation.affix .navbar {
	margin-bottom: 0;
	border-bottom: 0;
}

.nav.navbar-nav > li.active > a {
	color: #e1730f;
}

.nav-brand,
.nav-quick-actions {
	display: none;
}

@media (max-width: 767px) {
	#navigation.affix .navbar-header {
		display: flex;
		align-items: center;
		gap: 8px;
		min-height: 54px;
		padding: 6px 4px;
	}

	#navigation.affix .nav-brand {
		display: flex;
		float: none;
		align-items: center;
		height: auto;
		margin: 0;
		padding: 0;
	}

	#navigation.affix .nav-brand img {
		display: block;
		width: auto;
		max-width: 120px;
		height: 32px;
	}

	#navigation.affix .nav-quick-actions {
		display: flex;
		align-items: center;
		gap: 6px;
		margin-left: auto;
	}

	#navigation.affix .nav-quick-actions a {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		border: 1px solid rgba(196, 179, 153, 0.35);
		border-radius: 8px;
		color: #f2ede6;
		text-decoration: none;
		-webkit-tap-highlight-color: transparent;
		transition: background 0.2s ease, border-color 0.2s ease;
	}

	#navigation.affix .nav-quick-actions i {
		color: #e1730f;
		font-size: 16px;
		line-height: 1;
	}

	#navigation.affix .nav-quick-actions a:hover,
	#navigation.affix .nav-quick-actions a:focus,
	#navigation.affix .nav-quick-actions a:active {
		background: #e1730f;
		border-color: #e1730f;
	}

	#navigation.affix .nav-quick-actions a:hover i,
	#navigation.affix .nav-quick-actions a:focus i,
	#navigation.affix .nav-quick-actions a:active i {
		color: #fff;
	}

	#navigation.affix .navbar-header .navbar-toggle {
		float: none;
		flex: 0 0 auto;
		margin: 0;
	}
}

/* --------------------------- Появление блоков ---------------------------- */

.wow {
	visibility: visible !important;
}

.wow {
	visibility: visible !important;
}

.plc-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.6s ease, transform 0.6s ease;
	will-change: opacity, transform;
}

.plc-reveal.is-visible {
	opacity: 1;
	transform: none;
}

/* ------------------------------- Форма ----------------------------------- */

.hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.consent-field {
	margin: 10px 0 0;
	color: #444;
	font-size: 14px;
	line-height: 1.5;
}

.consent-field label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	cursor: pointer;
}

.consent-field input[type="checkbox"] {
	margin-top: 3px;
	flex: 0 0 auto;
}

.consent-field a {
	color: #e1730f;
	text-decoration: underline;
}

.expMessage p {
	margin: 0 0 14px;
	padding: 12px 16px;
	border-radius: 3px;
}

.expMessage p.is-success {
	background: #eef7ee;
	border: 1px solid #b9dfb9;
	color: #245c24;
}

.expMessage p.is-error {
	background: #fdf0ef;
	border: 1px solid #efc2be;
	color: #8a2b22;
}

/* ---------------------------- Cookie-баннер ------------------------------ */

.cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3000;
	max-height: 85vh;
	overflow-y: auto;
	background: #1f2226;
	color: #fff;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.28);
}

.cookie-banner[hidden] {
	display: none !important;
}

.cookie-banner-inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px 24px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 16px 24px;
	align-items: center;
}

.cookie-banner-text h2 {
	margin: 0 0 6px;
	color: #fff;
	font-size: 18px;
	font-weight: 600;
}

.cookie-banner-text p {
	margin: 0;
	color: #d8dadd;
	font-size: 14px;
	line-height: 1.55;
}

.cookie-banner-text a {
	color: #f2a45e;
	text-decoration: underline;
}

.cookie-banner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.cookie-btn {
	padding: 10px 18px;
	border-radius: 3px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn-primary {
	background: #e1730f;
	border-color: #e1730f;
	color: #fff;
}

.cookie-btn-primary:hover,
.cookie-btn-primary:focus {
	background: #c5610a;
	border-color: #c5610a;
}

.cookie-btn-secondary {
	background: transparent;
	border-color: #9aa0a6;
	color: #fff;
}

.cookie-btn-secondary:hover,
.cookie-btn-secondary:focus {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.cookie-btn-link {
	padding-left: 6px;
	padding-right: 6px;
	background: transparent;
	color: #d8dadd;
	text-decoration: underline;
	font-weight: 400;
}

.cookie-settings {
	grid-column: 1 / -1;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	padding-top: 14px;
	display: grid;
	gap: 10px;
}

.cookie-settings[hidden] {
	display: none !important;
}

.cookie-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	color: #d8dadd;
	font-size: 14px;
	cursor: pointer;
}

.cookie-option input {
	margin-top: 3px;
}

.cookie-settings-actions {
	margin-top: 4px;
}

/* ------------------------------ Правовые страницы ------------------------ */

.legal-body {
	background: #f4f5f7;
	color: #222;
}

.legal-header {
	background: #1f2226;
	padding: 14px 0;
}

.legal-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.legal-brand img {
	width: 150px;
	height: auto;
}

.legal-back {
	color: #fff;
	font-size: 14px;
}

.legal-back:hover,
.legal-back:focus {
	color: #f2a45e;
	text-decoration: none;
}

.legal-page {
	max-width: 900px;
	margin: 40px auto 60px;
	padding: 40px 44px;
	background: #fff;
	box-shadow: 0 2px 18px rgba(0, 0, 0, 0.07);
	border-radius: 4px;
}

.legal-page h1 {
	margin: 0 0 18px;
	font-size: 30px;
	line-height: 1.25;
	color: #1f2226;
}

.legal-page h2 {
	margin: 28px 0 12px;
	font-size: 21px;
	color: #1f2226;
}

.legal-page p,
.legal-page li {
	font-size: 15px;
	line-height: 1.7;
}

.legal-page a {
	color: #c5610a;
	text-decoration: underline;
}

.legal-meta {
	margin-bottom: 8px;
	color: #6b7075;
	font-size: 13px;
}

.legal-content ul {
	padding-left: 22px;
	margin: 10px 0 16px;
}

.legal-links {
	margin-top: 32px;
	padding-top: 18px;
	border-top: 1px solid #e6e8eb;
	font-size: 14px;
}

.legal-links span {
	margin: 0 8px;
	color: #b6b9bd;
}

.legal-footer {
	padding: 24px 0 40px;
	color: #6b7075;
	font-size: 13px;
	text-align: center;
}

.legal-footer p {
	margin: 4px 0;
}

.legal-footer a {
	color: #6b7075;
	text-decoration: underline;
}

.link-button {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

#copyright .legal-links {
	margin: 6px 0 0;
	padding-top: 0;
	border-top: 0;
	color: #cfd2d6;
}

#copyright .legal-links a,
#copyright .legal-links .link-button {
	color: #cfd2d6;
}

#copyright .legal-links a:hover,
#copyright .legal-links .link-button:hover {
	color: #f2a45e;
}

/* ------------------------------- Scroller -------------------------------- */

.back-to-top {
	--btt-size: 56px;
	--btt-offset: 0px;
	--scroll-progress: 0%;
	position: fixed;
	right: clamp(16px, 2.6vw, 40px);
	bottom: calc(clamp(16px, 2.6vw, 32px) + env(safe-area-inset-bottom, 0px) + var(--btt-offset));
	z-index: 2500;
	display: grid;
	place-items: center;
	width: var(--btt-size);
	height: var(--btt-size);
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(145deg, #f6a04a 0%, #e1730f 52%, #c5610a 100%);
	box-shadow: 0 12px 26px rgba(225, 115, 15, 0.34), 0 3px 8px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(0.9);
	transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, box-shadow 0.28s ease;
	-webkit-tap-highlight-color: transparent;
}

/* Индикатор прогресса прокрутки по периметру кнопки. */
.back-to-top::before {
	content: "";
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: conic-gradient(#e1730f var(--scroll-progress), rgba(17, 17, 17, 0.14) 0);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
	opacity: 0;
	transition: opacity 0.28s ease;
	pointer-events: none;
}

.back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.back-to-top.is-visible::before {
	opacity: 1;
}

.back-to-top:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 34px rgba(225, 115, 15, 0.42), 0 4px 10px rgba(0, 0, 0, 0.26);
}

.back-to-top:active {
	transform: translateY(0) scale(0.96);
	box-shadow: 0 8px 18px rgba(225, 115, 15, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2);
}

.back-to-top:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
	box-shadow: 0 0 0 6px rgba(225, 115, 15, 0.35), 0 12px 26px rgba(225, 115, 15, 0.34);
}

.back-to-top-icon {
	width: 24px;
	height: 24px;
	transition: transform 0.28s ease;
	pointer-events: none;
}

.back-to-top:hover .back-to-top-icon {
	transform: translateY(-2px);
}

.back-to-top-label {
	position: absolute;
	right: calc(100% + 14px);
	top: 50%;
	padding: 7px 12px;
	border-radius: 6px;
	background: #1f2226;
	color: #fff;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-50%) translateX(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	pointer-events: none;
}

.back-to-top-label::after {
	content: "";
	position: absolute;
	left: 100%;
	top: 50%;
	border: 5px solid transparent;
	border-left-color: #1f2226;
	transform: translateY(-50%);
}

.back-to-top:hover .back-to-top-label,
.back-to-top:focus-visible .back-to-top-label {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
}

@media (max-width: 991px) {
	.back-to-top {
		--btt-size: 50px;
	}

	.back-to-top-icon {
		width: 22px;
		height: 22px;
	}
}

@media (max-width: 575px) {
	.back-to-top {
		--btt-size: 46px;
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--btt-offset));
	}

	.back-to-top-icon {
		width: 20px;
		height: 20px;
	}

	.back-to-top-label {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.back-to-top,
	.back-to-top::before,
	.back-to-top-icon,
	.back-to-top-label {
		transition: none;
	}

	.back-to-top,
	.back-to-top:hover,
	.back-to-top:active {
		transform: none;
	}

	.back-to-top:hover .back-to-top-icon {
		transform: none;
	}
}

/* ------------------ Управляющий контроллер ПЛК-25 «Преимущества» ------------------ */

#vapouring-theme #theme-img {
	min-height: 575px;
}

/* --------------------- Преимущества «Почему ПЛК-25?» --------------------- */

#party-images {
	padding: 72px 0 80px;
}

#party-images #images-text {
	border-left: 6px solid #e1730f;
	height: auto;
	padding: 4px 0 4px 22px;
}

#party-images #images-text .advantages-kicker {
	margin: 0 0 6px;
	color: #f2a45e;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

#party-images #images-text h1 {
	margin: 0;
	color: #ffffff;
	font-family: 'Raleway', sans-serif;
	font-size: 34px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: none;
}

#party-images .advantages-lead {
	max-width: 720px;
	margin: 14px 0 0;
	color: rgba(255, 255, 255, 0.78);
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	text-transform: none;
}

.advantages-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-top: 40px;
}

.advantage-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 24px 28px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 24px;
	width: 38px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: #e1730f;
}

.advantage-card:hover,
.advantage-card:focus-within {
	transform: translateY(-5px);
	background: rgba(255, 255, 255, 0.11);
	border-color: rgba(225, 115, 15, 0.55);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.advantage-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(225, 115, 15, 0.16);
	color: #f2a45e;
	font-size: 21px;
	line-height: 1;
}

.advantage-card h3 {
	margin: 0;
	color: #ffffff;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}

.advantage-card p {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 14px;
	line-height: 1.6;
}

@media (max-width: 991px) {
	.advantages-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575px) {
	#party-images {
		padding: 48px 0 56px;
	}

	#party-images #images-text {
		padding-left: 16px;
	}

	#party-images #images-text h1 {
		font-size: 26px;
	}

	.advantages-grid {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-top: 28px;
	}
}

/* ------------------------------ Адаптивность ----------------------------- */

@media (max-width: 1199px) {
	#main-slider {
		height: 640px;
	}
}

@media (max-width: 991px) {
	#main-slider {
		height: 540px;
	}

	#trail-slider,
	#parts-slider { --visible: 2; }

	.cookie-banner-inner {
		grid-template-columns: 1fr;
	}

	.cookie-banner-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 767px) {
	#main-slider {
		height: 460px;
		max-height: none;
	}

	#mainSlider .ms-anim-layers {
		padding-left: 16px;
		padding-right: 16px;
	}

	#mainSlider .ms-slide h1 {
		font-size: 32px !important;
		line-height: 1.15 !important;
		margin: 0 0 8px !important;
	}

	#mainSlider .ms-slide h3 {
		font-size: 24px !important;
		line-height: 1.2 !important;
		margin: 0 0 8px !important;
	}

	#mainSlider .ms-slide h4 {
		font-size: 18px !important;
		line-height: 1.25 !important;
		margin: 0 0 6px !important;
	}

	#mainSlider .ms-layer {
		max-width: 100%;
		overflow-wrap: break-word;
	}

	.hero-nav {
		width: 38px;
		height: 38px;
		line-height: 36px;
		font-size: 15px;
	}

	.hero-prev { left: 8px; }
	.hero-next { right: 8px; }

	#trail-slider,
	#parts-slider { --visible: 1; }

	.legal-page {
		margin: 20px 12px 40px;
		padding: 24px 18px;
	}

	.legal-page h1 {
		font-size: 24px;
	}

	.legal-header-inner {
		padding: 0 12px;
	}
}

@media (max-width: 479px) {
	.cookie-banner-inner {
		padding: 16px;
	}

	.cookie-banner-actions,
	.cookie-btn {
		width: 100%;
	}

	.cookie-btn {
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	#mainSlider .ms-slide,
	#mainSlider .ms-layer,
	.carousel-track,
	.plc-reveal {
		transition: none !important;
	}

	.plc-reveal {
		opacity: 1;
		transform: none;
	}
}

/* --------------------------- Шапка: логотип и слоган --------------------------- */

#header .header-center {
	text-align: center;
}

#header #logo {
	line-height: 0;
}

#header #logo img {
	width: 170px;
	max-width: 100%;
	margin-bottom: 4px;
}

.header-tagline {
	text-align: center;
	color: #fff;
}

.header-tagline .tagline-accent {
	display: inline-block;
	margin-bottom: 3px;
	color: #e1730f;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 3px;
	line-height: 1;
	text-transform: uppercase;
}

.header-tagline h3 {
	margin: 0;
	color: #f2ede6;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.2px;
}

/* --------------------------- Шапка: мобильная панель --------------------------- */

.mobile-contacts {
	display: flex;
	align-items: stretch;
	margin-top: 10px;
	overflow: hidden;
	border: 1px solid rgba(196, 179, 153, 0.28);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.32);
}

.mobile-contact {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 11px 4px;
	color: #f2ede6;
	font-size: 12px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.2s ease, color 0.2s ease;
}

.mobile-contact + .mobile-contact {
	border-left: 1px solid rgba(196, 179, 153, 0.2);
}

.mobile-contact i {
	color: #e1730f;
	font-size: 18px;
	line-height: 1;
}

.mobile-contact:hover,
.mobile-contact:focus,
.mobile-contact:active {
	color: #fff;
	text-decoration: none;
	background: rgba(225, 115, 15, 0.22);
}

.mobile-header-info {
	padding: 9px 4px 13px;
	color: #c4b399;
	font-size: 11px;
	line-height: 1.5;
	text-align: center;
}

.mobile-header-info i {
	color: #e1730f;
}

@media (max-width: 767px) {
	#header {
		padding: 12px 0 0;
	}

	#header #logo {
		padding: 0;
		bottom: 0;
	}

	#header #logo img {
		width: 138px;
		margin-bottom: 6px;
	}

	.header-tagline .tagline-accent {
		margin-bottom: 4px;
		font-size: 10px;
		letter-spacing: 2.5px;
	}

	.header-tagline h3 {
		max-width: 300px;
		margin: 0 auto;
		font-size: 13px;
		line-height: 1.35;
	}
}

@media (max-width: 359px) {
	.mobile-contact {
		font-size: 11px;
		padding: 10px 3px;
	}

	.mobile-contact i {
		font-size: 16px;
	}

	.mobile-header-info {
		font-size: 10px;
	}
}

/* ------------------------------ Страницы ошибок --------------------------- */

.error-body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* --------------------------- Шапка страниц ошибок ------------------------- */

.error-header {
	position: relative;
	background:
		radial-gradient(1100px 220px at 88% -90%, rgba(225, 115, 15, 0.3) 0%, rgba(225, 115, 15, 0) 65%),
		linear-gradient(120deg, #16181c 0%, #1f2226 52%, #2a2d33 100%);
}

.error-header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 84px;
}

.error-brand {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}

.error-brand:hover,
.error-brand:focus {
	text-decoration: none;
}

.error-brand img {
	display: block;
	width: 128px;
	height: auto;
}

.error-brand-text {
	display: flex;
	flex-direction: column;
	padding-left: 14px;
	border-left: 1px solid rgba(255, 255, 255, 0.16);
	line-height: 1.2;
}

.error-brand-kicker {
	color: #c4b399;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
}

.error-brand-name {
	color: #fff;
	font-family: 'Raleway', sans-serif;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.error-header-contacts {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-left: auto;
}

.error-header-contacts a,
.error-header-hours {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #cfd2d6;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 13px;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.error-header-contacts a:hover,
.error-header-contacts a:focus {
	color: #f2a45e;
	text-decoration: none;
}

.error-header-contacts i,
.error-header-hours i {
	color: #e1730f;
	font-size: 14px;
}

.error-header-home {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 8px;
	padding: 10px 18px;
	border: 1px solid rgba(225, 115, 15, 0.55);
	border-radius: 6px;
	background: rgba(225, 115, 15, 0.12);
	color: #f6c79b;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.error-header-home:hover,
.error-header-home:focus {
	background: #e1730f;
	border-color: #e1730f;
	color: #fff;
	text-decoration: none;
}

.error-header-accent {
	height: 3px;
	background: linear-gradient(90deg, #e1730f 0%, #f6a04a 35%, rgba(225, 115, 15, 0.15) 75%, rgba(225, 115, 15, 0) 100%);
}

@media (max-width: 1199px) {
	.error-header-hours {
		display: none;
	}
}

@media (max-width: 991px) {
	.error-header-contacts {
		display: none;
	}

	.error-header-home {
		margin-left: auto;
	}
}

@media (max-width: 575px) {
	.error-header-inner {
		gap: 12px;
		min-height: 70px;
	}

	.error-brand {
		gap: 10px;
	}

	.error-brand img {
		width: 104px;
	}

	.error-brand-text {
		padding-left: 10px;
	}

	.error-brand-kicker {
		display: none;
	}

	.error-brand-name {
		font-size: 17px;
	}

	.error-header-home {
		padding: 10px 12px;
	}

	.error-header-home-text {
		display: none;
	}
}

.error-page {
	flex: 1 0 auto;
	max-width: 820px;
	margin: 48px auto 56px;
	padding: 0 16px;
}

.error-card {
	position: relative;
	overflow: hidden;
	padding: 52px 44px 44px;
	background: #fff;
	border-top: 4px solid #e1730f;
	border-radius: 8px;
	box-shadow: 0 10px 34px rgba(17, 20, 24, 0.1);
	text-align: center;
}

/* Декоративные пятна в углах карточки. */
.error-card::before,
.error-card::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.error-card::before {
	width: 300px;
	height: 300px;
	top: -160px;
	right: -130px;
	background: radial-gradient(circle, rgba(225, 115, 15, 0.12) 0%, rgba(225, 115, 15, 0) 70%);
}

.error-card::after {
	width: 240px;
	height: 240px;
	bottom: -140px;
	left: -120px;
	background: radial-gradient(circle, rgba(31, 34, 38, 0.07) 0%, rgba(31, 34, 38, 0) 70%);
}

.error-card > * {
	position: relative;
	z-index: 1;
}

.error-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: #fdf1e5;
	box-shadow: inset 0 0 0 1px rgba(225, 115, 15, 0.2);
	color: #e1730f;
	font-size: 27px;
	line-height: 1;
}

.error-kicker {
	margin: 0 0 4px;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1.4;
	text-transform: uppercase;
	color: #9a9fa6;
}

.error-code {
	margin: 0;
	font-family: 'Raleway', sans-serif;
	font-size: 92px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.04em;
	color: #e1730f;
	background: linear-gradient(135deg, #f6a04a 0%, #e1730f 52%, #b85a0a 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.error-code-small {
	margin: 12px 0 0;
	font-size: 54px;
	color: #d8dadd;
	background: none;
	-webkit-background-clip: border-box;
	background-clip: border-box;
	-webkit-text-fill-color: #d8dadd;
}

.error-divider {
	display: block;
	width: 56px;
	height: 3px;
	margin: 0 auto 18px;
	border-radius: 2px;
	background: #e1730f;
}

.error-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	padding: 7px 16px;
	border-radius: 999px;
	background: #fdf1e5;
	color: #b85a0a;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.error-card h1 {
	margin: 6px 0 14px;
	font-family: 'Raleway', sans-serif;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.22;
	color: #1f2226;
}

.error-message {
	max-width: 560px;
	margin: 0 auto;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: #3f4449;
}

.error-hint {
	max-width: 560px;
	margin: 12px auto 0;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: #6b7075;
}

.error-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 30px;
}

.error-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 1px solid rgba(20, 22, 26, 0.14);
	border-radius: 6px;
	background: #fff;
	color: #1f2226;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.error-btn:hover,
.error-btn:focus {
	border-color: #e1730f;
	color: #b85a0a;
	text-decoration: none;
	outline: none;
	box-shadow: 0 4px 14px rgba(225, 115, 15, 0.18);
}

.error-btn-primary {
	border-color: #e1730f;
	background: #e1730f;
	color: #fff;
}

.error-btn-primary:hover,
.error-btn-primary:focus {
	background: #c5610a;
	border-color: #c5610a;
	color: #fff;
}

.error-note {
	margin: 24px auto 0;
	max-width: 560px;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: #8a8f95;
}

.error-note a {
	color: #b85a0a;
	text-decoration: underline;
}

.error-copyright {
	margin-top: 10px !important;
	font-size: 12px;
	color: #9a9fa6;
}

@media (max-width: 767px) {
	.error-page {
		margin: 24px auto 32px;
	}

	.error-card {
		padding: 36px 20px 30px;
	}

	.error-icon {
		width: 56px;
		height: 56px;
		font-size: 24px;
	}

	.error-code {
		font-size: 68px;
	}

	.error-code-small {
		font-size: 42px;
	}

	.error-card h1 {
		font-size: 25px;
	}

	.error-message {
		font-size: 16px;
	}

	.error-actions {
		flex-direction: column;
		gap: 10px;
	}

	.error-btn {
		width: 100%;
	}
}

#packages .packages-container {
	padding: 80px 0;
}

#packages .packages-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
}

#packages .packages-row::before,
#packages .packages-row::after {
	display: none;
}

#packages .packages-row > .package {
	display: flex;
	margin-bottom: 30px;
}

#packages .packages-container .package .package-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 0;
	background: #fff;
	border: 1px solid #e7e9ec;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(17, 20, 24, 0.06);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#packages .packages-container .package .package-container:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 42px rgba(17, 20, 24, 0.14);
}

#packages .packages-container .package .package-container .package-image {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #f4f5f7;
	overflow: hidden;
}

#packages .packages-container .package .package-container .package-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	transition: transform 0.5s ease;
}

#packages .packages-container .package .package-container:hover .package-image img {
	transform: scale(1.045);
}

#packages .packages-container .package .package-container .package-info {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 24px 24px 20px;
}

#packages .packages-container .package .package-container .package-info h3 {
	margin: 0 0 12px;
	padding: 0;
	color: #151614;
	font-family: 'Raleway', sans-serif;
	font-size: clamp(17px, 1.6vw, 21px);
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.01em;
	text-transform: none;
	overflow-wrap: anywhere;
}

#packages .packages-container .package .package-container .package-info .package-info-text {
	float: none;
	width: 100%;
	margin: 0;
	padding: 0;
}

#packages .packages-container .package .package-container .package-info .package-info-text p {
	position: static;
	right: auto;
	margin: 0;
	padding: 0;
	color: #5d5d5d;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15.5px;
	line-height: 1.6;
	text-transform: none;
	overflow-wrap: anywhere;
}

#packages .packages-container .package .package-container .select-button {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding-left: 24px;
	background: #e1730f;
}

#packages .packages-container .package .package-container .select-button p {
	align-self: center;
	margin: 0;
	padding: 14px 0;
	color: #fff;
	font-family: 'Source Sans Pro', sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.07em;
	text-transform: uppercase;
}

#packages .packages-container .package .package-container .select-button .btn-select-pkg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	float: none;
	width: auto;
	min-width: 64px;
	height: auto;
	margin: 0;
	padding: 15px 24px;
	background: #333;
	border: 0;
	border-radius: 0;
	color: #fff;
}

#packages .packages-container .package .package-container .select-button .btn-select-pkg .fa {
	margin: 0;
	color: #fff;
}

#packages .packages-container .package .package-container .select-button .btn-select-pkg:hover,
#packages .packages-container .package .package-container .select-button .btn-select-pkg:focus {
	background: #1f1f1f;
	color: #fff;
}

@media (max-width: 991px) {
	#packages .packages-container {
		padding: 60px 0;
	}

	#packages .packages-container .package .package-container .package-info {
		padding: 20px 20px 16px;
	}

	#packages .packages-container .package .package-container .select-button {
		padding-left: 20px;
	}

	#packages .packages-container .package .package-container .select-button p {
		font-size: 14px;
	}
}

@media (max-width: 575px) {
	#packages .packages-container {
		padding: 48px 0;
	}

	#packages .packages-row > .package {
		margin-bottom: 20px;
	}

	#packages .packages-container .package .package-container .package-info h3 {
		font-size: 18px;
	}

	#packages .packages-container .package .package-container .package-info .package-info-text p {
		font-size: 15px;
	}

	#packages .packages-container .package .package-container .select-button p {
		font-size: 13px;
		letter-spacing: 0.05em;
	}

	#packages .packages-container .package .package-container .select-button .btn-select-pkg {
		min-width: 56px;
		padding: 12px 18px;
	}
}
