/* ==========================================================================
   Modern styles — header, lang switch, burger menu, animations, main page
   ========================================================================== */

/* --- Header layout ------------------------------------------------------- */
.header {
	position: fixed;
	width: 100%;
	left: 0;
	top: 0;
	z-index: 100;
	transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.header_scrolled {
	background: rgba(13, 92, 99, 0.92);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.header__container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 80px;
	gap: 20px;
}

.header__logo {
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.header__logo:hover {
	transform: scale(1.03);
}

.header__logo img {
	display: block;
	max-height: 60px;
	width: auto;
	height: auto;
}

.header__actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-left: auto;
}

.header__menu {
	margin: 0;
}

.header__menu .menu__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px 24px;
}

.menu__item:not(:last-child) {
	margin: 0;
}

.menu__link {
	position: relative;
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
	padding: 6px 0;
	transition: color 0.25s ease;
	white-space: nowrap;
}

.menu__link::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background: #fff;
	transition: width 0.3s ease;
}

.menu__link:hover::after,
.menu__link:focus-visible::after {
	width: 100%;
}

.menu__link:hover {
	text-decoration: none;
	color: #fff;
}

.menu__lang-mobile {
	display: none;
}

/* --- Language switch (KZ / RU) ------------------------------------------- */
.lang-switch {
	display: inline-flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.15);
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 50px;
	padding: 3px;
	gap: 2px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.lang-switch__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 36px;
	padding: 0 14px;
	border: none;
	border-radius: 50px;
	background: transparent;
	color: rgba(255, 255, 255, 0.75);
	font-family: Montserrat, sans-serif;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.lang-switch__btn:hover {
	color: #fff;
	transform: scale(1.05);
}

.lang-switch__btn_active {
	background: #fff;
	color: #0d5c63;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.lang-switch__btn_active:hover {
	color: #0d5c63;
	transform: scale(1);
}

/* --- Burger menu --------------------------------------------------------- */
.header__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.1);
	cursor: pointer;
	transition: background 0.3s ease, border-color 0.3s ease;
}

.header__burger:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.6);
}

.burger__line {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.35s ease, opacity 0.25s ease;
}

.burger_active .burger__line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.burger_active .burger__line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.burger_active .burger__line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.header__overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 90;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.header__overlay_visible {
	opacity: 1;
	pointer-events: auto;
}

/* --- Main hero block ----------------------------------------------------- */
.page-main .main-block {
	min-height: 100vh;
	min-height: 100dvh;
	position: relative;
	overflow: hidden;
}

.page-main .main-block__container {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	min-height: 100vh;
	min-height: 100dvh;
	padding-top: 100px;
	padding-bottom: 140px;
}

.page-main .main-block__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		105deg,
		rgba(13, 92, 99, 0.88) 0%,
		rgba(13, 92, 99, 0.65) 42%,
		rgba(20, 77, 83, 0.25) 72%,
		rgba(0, 0, 0, 0.15) 100%
	);
}

.page-main .main-block__body {
	width: 100%;
	max-width: 620px;
	padding: 0;
	margin: 0;
	text-align: left;
}

.page-main .main-block__body > *:not(:last-child) {
	margin: 0 0 0 0;
}

.page-main .main-block__label {
	display: inline-flex;
	align-items: center;
	margin-bottom: 20px;
	padding: 8px 18px;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: rgba(255, 255, 255, 0.9);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	animation: heroTitleIn 0.8s ease 0.1s both;
}

.page-main .main-block__title {
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: clamp(26px, 4.2vw, 44px);
	line-height: 1.2;
	font-weight: 800;
	color: #fff;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
	animation: heroTitleIn 0.9s ease 0.2s both;
}

.page-main .main-block__title-main {
	display: block;
	max-width: 540px;
}

.page-main .main-block__title-accent {
	display: inline-block;
	align-self: flex-start;
	margin-top: 4px;
	padding: 10px 22px;
	border-radius: 12px;
	background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
	color: #1a3a3d;
	font-size: clamp(18px, 2.8vw, 28px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 6px 24px rgba(255, 179, 0, 0.35);
	animation: heroAccentIn 0.9s ease 0.35s both;
}

.page-main .main-block__buttons {
	display: flex;
	justify-content: flex-start;
	margin-top: 36px;
	margin-bottom: 0;
}

.page-main .main-block__button {
	width: auto;
	min-width: 240px;
	min-height: 56px;
	padding: 14px 44px;
	margin: 0;
	font-size: 16px;
	letter-spacing: 0.06em;
	flex: none;
}

.page-main .main-block__button_orange {
	background: linear-gradient(135deg, #0d5c63 0%, #144D53 100%);
	box-shadow: 0 8px 28px rgba(13, 92, 99, 0.5);
	animation: heroBtnIn 0.9s ease 0.5s both;
}

.page-main .main-block__button_orange:hover {
	background: linear-gradient(135deg, #0a4a50 0%, #0d5c63 100%);
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(13, 92, 99, 0.55);
}

@keyframes heroAccentIn {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes heroTitleIn {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes heroBtnIn {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* --- Services cards ------------------------------------------------------ */
.page-main .services__item {
	border-radius: 16px;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.page-main .services__item:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.page-main .item-service__icon img {
	transition: transform 0.4s ease;
}

.page-main .services__item:hover .item-service__icon img {
	transform: scale(1.1);
}

.page-main .item-service__title {
	font-size: clamp(18px, 2.5vw, 24px);
}

/* --- Contact sections ---------------------------------------------------- */
.page-main .contact {
	border-bottom: 1px solid #eee;
}

.page-main .contact_alt {
	background: #f8fafa;
}

.page-main .contact__button {
	border-radius: 12px;
	font-weight: 600;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.page-main .contact__button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(13, 92, 99, 0.35);
}

/* --- Get in touch -------------------------------------------------------- */
.page-main .getintouch__items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
}

.page-main .getintouch__item {
	border-radius: 0;
	transition: transform 0.35s ease;
}

.page-main .item-getintouch:first-child {
	border-radius: 16px 0 0 16px;
}

.page-main .item-getintouch:last-child {
	border-radius: 0 16px 16px 0;
}

.page-main .item-getintouch:hover:not(.item-getintouch_active) {
	transform: translateY(-4px);
}

.page-main .item-getintouch__button {
	border-radius: 10px;
}

.page-main .getintouch__news {
	text-align: center;
	padding: 48px 0 0;
}

.page-main .getintouch__news-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #404040;
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
	padding: 12px 28px;
	border-radius: 50px;
	border: 2px solid #e0e0e0;
	transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.page-main .getintouch__news-link:hover {
	color: #0d5c63;
	border-color: #0d5c63;
	background: rgba(13, 92, 99, 0.06);
	transform: translateX(6px);
}

/* --- Scroll animations --------------------------------------------------- */
.animate-on-scroll {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.7s ease var(--delay, 0s), transform 0.7s ease var(--delay, 0s);
}

.animate-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.animate-fade-up.is-visible {
	animation: fadeUp 0.7s ease var(--delay, 0s) both;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(32px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --- Responsive: tablet & mobile ----------------------------------------- */
@media (max-width: 1100px) {
	.header__menu {
		position: fixed;
		top: 0;
		right: 0;
		width: min(320px, 85vw);
		height: 100vh;
		height: 100dvh;
		background: linear-gradient(180deg, #0d5c63 0%, #144D53 100%);
		padding: 100px 32px 40px;
		transform: translateX(100%);
		transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
		z-index: 95;
		overflow-y: auto;
		box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
	}

	.header__menu.menu_open {
		transform: translateX(0);
	}

	.header__menu .menu__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
	}

	.header__menu .menu__item {
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}

	.header__menu .menu__link {
		display: block;
		padding: 18px 0;
		font-size: 16px;
	}

	.header__menu .menu__link::after {
		display: none;
	}

	.menu__lang-mobile {
		display: flex;
		margin-top: 32px;
		justify-content: center;
		width: 100%;
	}

	.header__burger {
		display: flex;
		z-index: 96;
		position: relative;
	}

	.header__overlay {
		display: block;
	}

	body.menu-open {
		overflow: hidden;
	}

	.page-main .getintouch__items {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.page-main .item-getintouch:first-child,
	.page-main .item-getintouch:last-child {
		border-radius: 16px;
	}

	.page-main .item-getintouch_active {
		border-radius: 16px;
	}
}

@media (max-width: 992px) {
	.header__menu {
		margin: 0;
	}

	.page-main .main-block__container {
		padding-top: 90px;
		padding-bottom: 160px;
		align-items: flex-end;
	}

	.page-main .main-block__body {
		max-width: 100%;
	}

	.page-main .main-block__title-main {
		max-width: none;
	}

	.page-main .services__column {
		flex: 0 1 100%;
		margin-bottom: 20px;
	}
}

@media (max-width: 767px) {
	.header__container {
		min-height: 70px;
	}

	.header__logo img {
		max-height: 48px;
	}

	.lang-switch__btn {
		min-width: 40px;
		height: 34px;
		font-size: 12px;
		padding: 0 12px;
	}

	.page-main .main-block__container {
		padding-top: 80px;
		padding-bottom: 130px;
		align-items: center;
	}

	.page-main .main-block__body {
		max-width: 100%;
		text-align: center;
	}

	.page-main .main-block__label {
		margin-left: auto;
		margin-right: auto;
	}

	.page-main .main-block__title {
		align-items: center;
		font-size: clamp(24px, 6.5vw, 34px);
	}

	.page-main .main-block__title-main {
		max-width: none;
	}

	.page-main .main-block__title-accent {
		align-self: center;
		font-size: clamp(16px, 4.5vw, 22px);
		padding: 8px 18px;
	}

	.page-main .main-block__buttons {
		justify-content: center;
		margin-top: 28px;
	}

	.page-main .main-block__button {
		min-width: 220px;
		width: auto;
	}

	.page-main .contact__body {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}

	.page-main .contact__button {
		width: 100%;
	}

	.page-main .getintouch {
		padding: 50px 0 80px;
	}

	.page-main .getintouch__header {
		margin-bottom: 40px;
	}

	.page-main .getintouch__news-link {
		font-size: 16px;
		padding: 10px 20px;
	}
}

@media (max-width: 479px) {
	.header__actions {
		gap: 10px;
	}

	.page-main .main-block__container {
		padding-bottom: 110px;
	}

	.page-main .main-block__button {
		min-width: 100%;
		max-width: 320px;
	}

	.page-main .services__item {
		padding: 24px 20px;
	}

	.page-main .item-service__title {
		font-size: 18px;
	}
}

@media (min-width: 1101px) {
	.header__container {
		flex-wrap: nowrap;
	}

	.header__menu {
		display: flex;
		align-items: center;
		flex: 1;
		justify-content: flex-end;
		margin-right: 24px;
	}

	.header__actions .lang-switch {
		flex-shrink: 0;
	}

	.header__burger {
		display: none !important;
	}

	.header__overlay {
		display: none !important;
	}

	.menu__lang-mobile {
		display: none !important;
	}
}

/* --- Video / camera stream page ------------------------------------------ */
.page-video__hero {
	position: relative;
	min-height: 42vh;
	min-height: 42dvh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.page-video__hero-image {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.page-video__hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-video__hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		105deg,
		rgba(13, 92, 99, 0.9) 0%,
		rgba(13, 92, 99, 0.7) 45%,
		rgba(20, 77, 83, 0.35) 100%
	);
}

.page-video__hero-container {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-top: 120px;
	padding-bottom: 56px;
}

.page-video__hero-body {
	max-width: 640px;
}

.page-video__hero-label {
	display: inline-flex;
	align-items: center;
	margin: 0 0 16px;
	padding: 8px 18px;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: rgba(255, 255, 255, 0.92);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.page-video__hero-title {
	margin: 0 0 14px;
	font-size: clamp(28px, 4.5vw, 44px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0.02em;
	color: #fff;
}

.page-video__hero-subtitle {
	margin: 0;
	max-width: 460px;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(15px, 2vw, 17px);
	font-weight: 500;
	line-height: 1.55;
}

.video-stream {
	position: relative;
	padding: 48px 0 90px;
	background:
		radial-gradient(ellipse 80% 50% at 0% 0%, rgba(13, 92, 99, 0.06) 0%, transparent 55%),
		radial-gradient(ellipse 60% 40% at 100% 100%, rgba(20, 77, 83, 0.05) 0%, transparent 50%),
		#fafafa;
}

.video-stream__container {
	max-width: 1100px;
}

.video-stream__frame {
	position: relative;
	background: #0a3d42;
	box-shadow: 0 18px 40px rgba(13, 92, 99, 0.16);
	overflow: hidden;
}

.video-stream__live {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	background: rgba(13, 92, 99, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1;
	pointer-events: none;
}

.video-stream__live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff5252;
	box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.55);
	animation: videoLivePulse 1.6s ease infinite;
}

@keyframes videoLivePulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.55);
	}
	70% {
		box-shadow: 0 0 0 8px rgba(255, 82, 82, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 82, 82, 0);
	}
}
.video-stream__player {
    width: 1100px;
    height: 700px;
    overflow: hidden;
}

.video-stream__player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.video-stream__player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #082e32;
}

.video-stream__player .video-js {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	font-family: Montserrat, sans-serif;
}

.video-stream__player .video-js .vjs-tech {
	object-fit: contain;
	background: #082e32;
}

.video-stream__player .vjs-big-play-button {
	border: none;
	border-radius: 50%;
	width: 64px;
	height: 64px;
	line-height: 64px;
	margin-top: -32px;
	margin-left: -32px;
	background: rgba(13, 92, 99, 0.92);
	font-size: 2.4em;
}

.video-stream__player .vjs-big-play-button:hover,
.video-stream__player .vjs-big-play-button:focus {
	background: #0d5c63;
}

.video-stream__player .vjs-control-bar {
	background: linear-gradient(180deg, transparent 0%, rgba(8, 46, 50, 0.92) 100%);
}

.video-stream__player .vjs-play-progress,
.video-stream__player .vjs-volume-level {
	background: #0d5c63;
}

.video-stream__player .vjs-slider {
	background: rgba(255, 255, 255, 0.22);
}

.video-stream__note {
	margin: 18px 0 0;
	text-align: center;
	color: #737373;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

@media (max-width: 991.98px) {
	.page-video__hero {
		min-height: 36vh;
		min-height: 36dvh;
	}

	.page-video__hero-container {
		padding-top: 110px;
		padding-bottom: 40px;
	}

	.video-stream {
		padding: 32px 0 70px;
	}

	.video-stream__live {
		top: 12px;
		left: 12px;
	}
}

@media (max-width: 767.98px) {
	.page-video__hero-container {
		padding-top: 100px;
		padding-bottom: 32px;
	}

	.page-video__hero-label {
		margin-bottom: 12px;
		padding: 6px 14px;
		font-size: 12px;
	}

	.page-video__hero-title {
		margin-bottom: 10px;
	}

	.video-stream {
		padding: 24px 0 56px;
	}

	.video-stream__live {
		top: 10px;
		left: 10px;
		padding: 6px 10px;
		font-size: 10px;
	}

	.video-stream__player .vjs-big-play-button {
		width: 52px;
		height: 52px;
		line-height: 52px;
		margin-top: -26px;
		margin-left: -26px;
		font-size: 2em;
	}

	.video-stream__note {
		margin-top: 14px;
		font-size: 13px;
		padding: 0 8px;
	}
}
