/* Serial page: Solar Garden design-system integration. */

.page-template-page-serial > .wrap .s-content,
.page-template-page-serial-php > .wrap .s-content {
	padding: 0;
}

.page-template-page-serial > .wrap .s-content > .cn-container,
.page-template-page-serial-php > .wrap .s-content > .cn-container {
	max-width: 100%;
	padding: 0;
}

.page-template-page-serial > .wrap .s-content > .cn-container > .e-speedbar,
.page-template-page-serial-php > .wrap .s-content > .cn-container > .e-speedbar {
	display: none;
}

.serial-page {
	color: #292929;
	font-family: "Gotham Pro", sans-serif;
}

.serial-page *,
.serial-page *::before,
.serial-page *::after {
	box-sizing: border-box;
}

.page-template-page-serial > .wrap .s-content > .cn-container .bg-white,
.page-template-page-serial-php > .wrap .s-content > .cn-container .bg-white {
	background: #fff;
}

.page-template-page-serial > .wrap .s-content > .cn-container .bg-gray,
.page-template-page-serial-php > .wrap .s-content > .cn-container .bg-gray {
	background: #f6f6f6;
}

#serial-teaser,
#serial-consultation {
	scroll-margin-top: 300px;
}

.page-template-page-serial > .wrap .s-content > .cn-container .btn,
.page-template-page-serial-php > .wrap .s-content > .cn-container .btn {
	font: normal 18px/100% Gotham Pro;
	text-align: center;
	letter-spacing: -0.05em;
	padding-left: 2.21em;
	padding-right: 2.21em;
	border-radius: 10px;
	gap: 10px;
}

.page-template-page-serial > .wrap .s-content > .cn-container .btn svg,
.page-template-page-serial-php > .wrap .s-content > .cn-container .btn svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.serial-page .video-section {
	padding: 80px 0;
}

.serial-page .video-section__inner {
	display: flex;
	align-items: flex-start;
	gap: 48px;
	justify-content: space-between;
	flex-wrap: wrap;
}

.serial-page .video-section__inner.media-left {
	flex-direction: row-reverse;
}

.serial-page .video-section__content {
	width: calc((100% - 48px) / 2);
}

.serial-page .video-section__title {
	margin-top: 0;
	line-height: 1;
}

.serial-page .video-section__list {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-start;
	margin-bottom: 32px;
}

.serial-page .video-section__list-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	width: calc((100% - 12px) / 2);
	font-size: 14px;
}

.serial-page .video-section__list-item svg {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

.serial-page .video-section__buttons {
	display: flex;
	align-items: stretch;
	gap: 16px;
	flex-wrap: wrap;
}

.serial-page .video-section__buttons .btn {
	width: calc((100% - 16px) / 2);
}

.serial-page .video-section__image,
.serial-page .video-section__video {
	position: relative;
	width: calc((100% - 48px) / 2);
	aspect-ratio: 552/500;
	box-shadow: 0 0 #000, 0 0 #000, 0 0 #000, 0 0 #000, 0 10px 15px -3px rgba(0, 0, 0, 0.1019607843), 0 4px 6px -4px rgba(0, 0, 0, 0.1019607843);
	border-radius: 14px;
	max-height: 500px;
}

.serial-page .video-section__image img,
.serial-page .video-section__video img {
	width: 100%;
	aspect-ratio: 552/500;
	max-height: 500px;
	border-radius: 14px;
	-o-object-fit: cover;
	object-fit: cover;
}

.serial-page .video-section__image iframe,
.serial-page .video-section__video iframe,
.serial-page .video-section__video video {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 552/500;
	max-height: 500px;
	border-radius: 14px;
	-o-object-fit: cover;
	object-fit: cover;
}

.serial-page .video-section__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	cursor: pointer;
}

.serial-page .video-section__play svg {
	width: 60px;
	height: 60px;
	transition: 0.3s all ease;
	fill: rgba(255, 255, 255, 0.8);
}

.serial-page .video-section__play:hover svg {
	transform: scale(1.2);
	fill: rgb(255, 255, 255);
}

.serial-section-label {
	margin: 0 0 12px;
	color: #25a638;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.serial-section-label--light { color: #8de49a; }

.serial-teaser {
	width: 100%;
	padding: 0;
	overflow: hidden;
	background: #0f2e23;
}

.serial-teaser__media {
	width: 100%;
	height: clamp(360px, 47.22vw, 680px);
	background: #000;
}

.serial-teaser__media iframe,
.serial-teaser__media video {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
}

.serial-teaser__media video {
	background: #000;
	object-fit: cover;
}

.serial-teaser__media video::-webkit-media-controls {
	display: none !important;
}

.serial-episodes { padding: 56px 0; }

.serial-section-heading { margin-bottom: 32px; }

.serial-section-heading .e-title {
	margin: 0;
	line-height: 1;
}

.serial-episodes__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 22px;
}

.serial-episode {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e6e6e6;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.serial-episode:hover {
	box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.14), 0 8px 12px -6px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
}

.serial-episode__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16/9;
	overflow: hidden;
	background: #0f2e23;
}

button.serial-episode__media {
	padding: 0;
	border: 0;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.serial-episode__cover-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.serial-episode__media:hover .serial-episode__cover-image {
	transform: scale(1.035);
}

.serial-episode__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.08);
	transition: background 0.25s ease;
}

.serial-episode__play svg {
	width: 56px;
	height: 56px;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
	transition: transform 0.25s ease;
}

.serial-episode__media:hover .serial-episode__play {
	background: rgba(0, 0, 0, 0.18);
}

.serial-episode__media:hover .serial-episode__play svg {
	transform: scale(1.08);
}

.serial-episode__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
}

.serial-episode__number {
	margin: 0 0 8px;
	color: #25a638;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.serial-episode__title {
	margin: 0;
	font-family: "Helios Cond", sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.serial-episode__description {
	margin-top: 12px;
	color: #5f5f5f;
}

.serial-episode__description > :first-child { margin-top: 0; }
.serial-episode__description > :last-child { margin-bottom: 0; }
.serial-episode__body .btn { margin-top: 22px; }

.serial-episode__description + .btn,
.serial-episode__title + .btn { margin-top: 22px; }

.serial-text-section { padding: 90px 0; }

.serial-text-section__video {
	width: 100%;
	margin-bottom: 56px;
}

.serial-text-section__video .video-section__video {
	width: 100%;
	max-height: none;
	aspect-ratio: 16/9;
}

.serial-text-section__video .video-section__video img,
.serial-text-section__video .video-section__video iframe,
.serial-text-section__video .video-section__video video {
	width: 100%;
	height: 100%;
	max-height: none;
	aspect-ratio: 16/9;
	object-fit: cover;
}

.serial-text-section .e-title {
	margin-top: 0;
	line-height: 1;
}

.serial-text-section .text {
	font-size: 17px;
	line-height: 1.75;
}

.serial-text-section .text > :first-child { margin-top: 0; }
.serial-text-section .text > :last-child { margin-bottom: 0; }

.serial-text-section__buttons {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 32px;
}

.serial-text-section__buttons .btn {
	width: auto;
	min-width: 230px;
	border: 0;
	cursor: pointer;
}

body.serial-video-modal-open { overflow: hidden; }

.serial-video-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
}

.serial-video-modal__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.82);
	cursor: pointer;
}

.serial-video-modal__content {
	position: relative;
	z-index: 1;
	width: min(1100px, 100%);
	background: #000;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.serial-video-modal__content video {
	display: block;
	width: 100%;
	max-height: calc(100vh - 96px);
	background: #000;
}

.serial-video-modal__close {
	position: absolute;
	top: -44px;
	right: -4px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font: 400 40px/40px Arial, sans-serif;
	cursor: pointer;
}
.serial-consultation .form-section__form .wpcf7-form { margin: 0; }

.serial-consultation .form-section__form input[type="text"],
.serial-consultation .form-section__form input[type="tel"] {
	width: 100%;
	max-width: 100%;
}

.serial-consultation .form-section__form .wpcf7-submit {
	width: 100%;
	border-radius: 10px;
}

@media (max-width: 1023px) {
	.serial-page .video-section__inner {
		flex-direction: column;
	}

	.serial-page .video-section__content {
		width: 100%;
	}

	.serial-page .video-section__image,
	.serial-page .video-section__video {
		width: 100%;
	}

	.serial-episodes { padding: 48px 0; }
	.serial-episodes__grid { gap: 18px; }
}

@media (max-width: 900px) {
	.serial-episodes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
	.serial-page .video-section {
		padding: 64px 0;
	}

	.serial-page .video-section__buttons {
		flex-direction: column;
	}

	.serial-page .video-section__buttons .btn {
		width: 100%;
	}

	.serial-teaser__media { height: 56.25vw; }
	.serial-episodes { padding: 42px 0; }
	.serial-text-section { padding: 64px 0; }
	.serial-text-section__video { margin-bottom: 40px; }
	.serial-text-section__buttons { flex-direction: column; }
	.serial-text-section__buttons .btn { width: 100%; min-width: 0; }
	.serial-video-modal { padding: 16px; }
	.serial-section-heading { margin-bottom: 26px; }
	.serial-episode__body { padding: 22px; }
	.serial-episode__body .btn { width: 100%; }
}

@media (max-width: 600px) {
	.serial-episodes__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.page-template-page-serial > .wrap .s-content > .cn-container .btn,
	.page-template-page-serial-php > .wrap .s-content > .cn-container .btn {
		width: 100%;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.serial-episode,
	.serial-episode__cover-image,
	.serial-episode__play,
	.serial-episode__play svg { transition: none; }
}
