:root {
	--primary-color: #18503f;
	--secondary-color: #6c757d;
	--dark-color: #0f2922;
	--light-color: #f8f9fa;
	--success-color: #2d5a4d;
	--warning-color: #3d6b5c;
	--danger-color: #5c4d4d;
	--info-color: #4d6b5c;
	--accent-color: #1e991a;
	--dark-green: #04241b;
	--light-green: #16ad5a;
	--nav-cur: #fff;
	/* Высота фиксированного navbar */
	--navbar-height: 80px;
	/* Высота navbar на мобильных устройствах (процент высоты экрана) */
	--navbar-height-mobile: 12vh;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #333;
	/* Отступ сверху под фиксированный navbar с учётом безопасной зоны */
	padding-top: calc(var(--navbar-height) + env(safe-area-inset-top));
}

.hero-section {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	background: linear-gradient(135deg, #064e3b 0%, #1b4d3e 50%, #0f2922 100%);
	overflow: hidden;
}

.hero-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
	opacity: 0.3;
	z-index: 1;
}

.hero-section .container {
	position: relative;
	z-index: 2;
}

.ai-brain-container {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 400px;
}

.pulse-rings {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.pulse-ring {
	position: absolute;
	border: 2px solid rgba(34, 197, 94, 0.3);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

.pulse-ring:nth-child(1) {
	width: 200px;
	height: 200px;
	margin: -100px 0 0 -100px;
	animation-delay: 0s;
}

.pulse-ring:nth-child(2) {
	width: 300px;
	height: 300px;
	margin: -150px 0 0 -150px;
	animation-delay: 0.7s;
}

.pulse-ring:nth-child(3) {
	width: 400px;
	height: 400px;
	margin: -200px 0 0 -200px;
	animation-delay: 1.4s;
}

@keyframes pulse {
	0% {
		transform: scale(0.5);
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 0;
	}
}

.laboratory-building {
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	padding: 20px;
	margin: 20px 0;
}

.lab-floor {
	margin: 15px 0;
	padding: 20px;
	border-radius: 10px;
	position: relative;
	border: 2px solid #e9ecef;
	transition: all 0.3s ease;
}

.lab-floor:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.floor-top {
	background: linear-gradient(135deg, #064e3b, #1b4d3e);
	color: white;
}

.floor-research {
	background: linear-gradient(135deg, #0f2922, #2d5a4d);
	color: white;
}

.floor-development {
	background: linear-gradient(135deg, #10b981, #22c55e);
	color: white;
}

.floor-ground {
	background: linear-gradient(135deg, #1b4d3e, #064e3b);
	color: white;
}

.floor-label {
	position: absolute;
	top: -10px;
	left: 20px;
	background: #fff;
	color: #333;
	padding: 5px 15px;
	border-radius: 20px;
	font-weight: bold;
	font-size: 12px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lab-room {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	padding: 15px;
	text-align: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.lab-room:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: scale(1.05);
}

.lab-room i {
	font-size: 1.5rem;
	margin-bottom: 8px;
	display: block;
}

.lab-room span {
	font-size: 0.9rem;
	font-weight: 500;
}

.direction-card {
	background: #fff;
	border-radius: 15px;
	padding: 30px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	border: 1px solid #e9ecef;
	height: 100%;
}

.direction-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.direction-icon {
	text-align: center;
	margin-bottom: 20px;
}

.direction-icon i {
	font-size: 3rem;
	opacity: 0.8;
}

.direction-card h4 {
	color: var(--dark-color);
	margin-bottom: 15px;
	font-size: 1.25rem;
}

.direction-card p {
	color: #6c757d;
	line-height: 1.6;
}

.project-card {
	background: #fff;
	border-radius: 15px;
	padding: 25px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	border: 1px solid #e9ecef;
	height: 100%;
}

.project-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.project-header {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e9ecef;
}

.client-logo {
	margin-right: 15px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #f8f9fa;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
}

.project-header h4 {
	margin: 0;
	color: var(--dark-color);
	font-size: 1.1rem;
}

.project-description {
	color: #6c757d;
	line-height: 1.6;
	text-align: justify;
}

.stats-container {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 15px;
	padding: 30px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
	padding: 20px;
}

.stat-number {
	font-size: 3.5rem;
	font-weight: bold;
	display: block;
	margin-bottom: 10px;
}

.stat-label {
	color: #adb5bd;
	font-size: 0.9rem;
}

.team-card {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 15px;
	padding: 20px;
	backdrop-filter: blur(10px);
}

.leader-card {
	background: rgba(34, 197, 94, 0.1);
	border: 2px solid rgba(34, 197, 94, 0.3);
}

.team-photo {
	margin-bottom: 0px;
}

.team-img {
	width: 250px;
	height: 250px;
	border-radius: 15px;
	object-fit: cover;
	border: 3px solid var(--accent-color);
	box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
	transition: all 0.3s ease;
	background: radial-gradient(
		circle at center,
		rgba(34, 197, 94, 0.1) 0%,
		transparent 70%
	);
	mix-blend-mode: multiply;
	filter: contrast(1.1) brightness(1.05);
}

.team-img:hover {
	transform: scale(1.005);
	box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
	filter: contrast(1.2) brightness(1.1);
}

.team-img-small {
	margin-right: 20px;
	width: 190px;
	height: 190px;
	border-radius: 14px;
	object-fit: cover;
	border: 3px solid var(--light-green);
	box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
	transition: all 0.3s ease;
	background: radial-gradient(
		circle at center,
		rgba(16, 185, 129, 0.1) 0%,
		transparent 70%
	);
	mix-blend-mode: multiply;
	filter: contrast(1.1) brightness(1.05);
}

.team-img-small:hover {
	transform: scale(1.001) !important;
	box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
	filter: contrast(1.2) brightness(1.1);
}

.team-img,
.team-img-small {
	background: radial-gradient(
		circle at center,
		rgba(6, 78, 59, 0.1) 0%,
		transparent 100%
	);
	mix-blend-mode: multiply;
}

.team-img:hover,
.team-img-small:hover {
	filter: contrast(1.3) brightness(1.2) saturate(0.9) hue-rotate(40deg)
		drop-shadow(0 6px 12px rgba(34, 197, 94, 0.4));
}

.team-card h4,
.team-card h5 {
	margin-bottom: 10px;
}

.position {
	font-style: italic;
	margin-bottom: 15px;
	font-size: 0.9rem;
}

.achievements p {
	margin-bottom: 8px;
	font-size: 0.9rem;
	line-height: 1.5;
}

.achievements i {
	color: var(--primary-color);
	margin-right: 8px;
}

.team-description {
	background: rgba(34, 197, 94, 0.15);
	border-radius: 15px;
	padding: 20px;
	margin: 20px 0;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(34, 197, 94, 0.3);
}

.team-description p {
	color: #ffffff !important;
	margin-bottom: 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.team-stats {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 15px;
	padding: 30px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.research-card {
	background: #fff;
	border-radius: 15px;
	padding: 30px;
	text-align: center;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	border: 1px solid #e9ecef;
}

.research-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.research-icon {
	position: relative;
	margin-bottom: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.research-number {
	position: absolute;
	top: -10px;
	right: -10px;
	background: var(--primary-color);
	color: white;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 14px;
	z-index: 2;
}

.research-icon i {
	font-size: 3rem;
	color: var(--primary-color);
	opacity: 0.8;
}

.research-features {
	list-style: none;
	padding: 0;
	margin-top: 20px;
}

.research-features li {
	padding: 8px 0;
	border-bottom: 1px solid #e9ecef;
	position: relative;
	padding-left: 20px;
}

.research-features li:before {
	content: "✓";
	color: var(--success-color);
	font-weight: bold;
	position: absolute;
	left: 0;
}

.research-features li:last-child {
	border-bottom: none;
}

.analytics-card {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 15px;
	padding: 25px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	margin-bottom: 20px;
}

.wave-container {
	height: 100px;
	margin: 20px 0;
	position: relative;
}

.wave-chart {
	width: 100%;
	height: 100%;
}

.wave {
	fill: none;
	stroke: var(--primary-color);
	stroke-width: 2;
	animation: wave-animation 3s ease-in-out infinite;
}

.wave-2 {
	stroke: var(--success-color);
	animation-delay: 0.5s;
}

.wave-3 {
	stroke: var(--warning-color);
	animation-delay: 1s;
}

@keyframes wave-animation {
	0%,
	100% {
		opacity: 0.7;
		stroke-width: 2;
	}
	50% {
		opacity: 1;
		stroke-width: 3;
	}
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.stat {
	text-align: center;
}

.stat-value {
	display: block;
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--primary-color);
}

.stat-label {
	display: block;
	font-size: 0.9rem;
	color: #adb5bd;
	margin-top: 5px;
}

.system-status {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.status-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 15px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-indicator {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin-right: 10px;
	animation: blink 2s infinite;
}

.status-online {
	background: var(--success-color);
}

.status-warning {
	background: var(--warning-color);
}

.status-offline {
	background: var(--danger-color);
}

@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

.status-value {
	font-weight: 500;
	color: #28a745;
}

.progress-items {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.progress-item {
	padding: 15px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress {
	height: 8px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 4px;
	overflow: hidden;
}

.progress-bar {
	transition: width 0.6s ease;
}

/* Contact Section */
.contact-item {
	padding: 20px;
	transition: all 0.3s ease;
}

.contact-item:hover {
	transform: translateY(-5px);
}

html {
	scroll-behavior: smooth;
}

.navbar-brand {
	font-weight: bold;
	font-size: 1.5rem;
}

.navbar-nav .nav-link {
	font-weight: 500;
	transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
	color: var(--nav-cur) !important;
}

.social-links a {
	font-size: 1.2rem;
	transition: color 0.3s ease;
}

.social-links a:hover {
	color: var(--primary-color) !important;
}

.scroll-down-indicator {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 2;
}
.arrow {
	width: 12px;
	height: 12px;
	border-bottom: 2px solid #fff;
	border-right: 2px solid #fff;
	transform: rotate(45deg);
	margin: 6px;
	animation: arrow-animation 1.5s infinite;
}
.arrow:nth-child(2) {
	animation-delay: 0.3s;
}
.arrow:nth-child(3) {
	animation-delay: 0.6s;
}
@keyframes arrow-animation {
	0% {
		opacity: 0;
		transform: translateY(-10px) rotate(45deg);
	}
	50% {
		opacity: 1;
		transform: translateY(0px) rotate(45deg);
	}
	100% {
		opacity: 0;
		transform: translateY(10px) rotate(45deg);
	}
}

.navbar-dark {
	background-color: var(--dark-green) !important;
}

.bg-dark {
	background: linear-gradient(
		135deg,
		var(--dark-green) 0%,
		var(--primary-color) 100%
	) !important;
}

@media (max-width: 768px) {
	.display-4 {
		font-size: 2rem;
		text-align: center;
	}

	.display-5 {
		font-size: 1.8rem;
	}

	.hero-section {
		text-align: center;
	}

	.hero-section .d-flex {
		flex-direction: column;
		align-items: center;
		gap: 15px;
	}

	.btn-lg {
		padding: 12px 24px;
		font-size: 0.95rem;
		width: 100%;
		max-width: 280px;
	}

	.ai-brain-container {
		height: 250px;
		margin-top: 30px;
	}

	.ai-brain-container i {
		font-size: 5rem !important;
	}

	.pulse-ring:nth-child(1) {
		width: 120px;
		height: 120px;
		margin: -60px 0 0 -60px;
	}

	.pulse-ring:nth-child(2) {
		width: 180px;
		height: 180px;
		margin: -90px 0 0 -90px;
	}

	.pulse-ring:nth-child(3) {
		width: 240px;
		height: 240px;
		margin: -120px 0 0 -120px;
	}

	.direction-card {
		padding: 25px 20px;
		margin-bottom: 20px;
	}

	.direction-card h4 {
		font-size: 1.1rem;
	}

	.project-card {
		padding: 20px;
		margin-bottom: 20px;
	}

	.project-header {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}

	.stats-container .row {
		text-align: center;
	}

	.stat-number {
		font-size: 2.8rem;
	}

	.team-img {
		width: 200px;
		height: 200px;
		margin-bottom: 15px;
	}

	.team-img-small {
		width: 180px;
		height: 180px;
		margin-bottom: 15px;
	}

	.team-card {
		padding: 20px;
		text-align: center;
	}

	.leader-card .row {
		flex-direction: column;
		text-align: center;
	}

	.achievements p {
		font-size: 0.85rem;
	}

	.contact-item {
		margin-bottom: 30px;
	}

	.navbar-nav {
		text-align: center;
	}

	.navbar-nav .nav-item {
		margin: 5px 0;
	}
}

@media (max-width: 576px) {
	.hero-section {
		padding: 40px 0;
		min-height: 70vh;
	}

	.display-4 {
		font-size: 1.6rem;
		line-height: 1.2;
	}

	.lead {
		font-size: 1rem;
	}

	.btn-lg {
		padding: 12px 20px;
		font-size: 0.9rem;
		width: 100%;
		max-width: 250px;
	}

	.ai-brain-container {
		height: 200px;
		margin-top: 20px;
	}

	.ai-brain-container i {
		font-size: 4rem !important;
	}

	.direction-card {
		padding: 20px 15px;
	}

	.direction-card h4 {
		font-size: 1rem;
	}

	.direction-icon i {
		font-size: 2.5rem !important;
	}

	.project-card {
		padding: 15px;
	}

	.stat-number {
		font-size: 2.5rem;
	}

	.team-img {
		width: 200px;
		height: 200px;
		margin-bottom: 15px;
	}

	.team-img-small {
		width: 180px;
		height: 180px;
		margin-bottom: 15px;
	}

	.team-card {
		padding: 15px;
	}

	.team-card .row {
		text-align: center;
	}

	.team-card .col-md-4 {
		margin-bottom: 15px;
	}

	.team-description {
		padding: 15px;
		margin: 15px 0;
	}

	.contact-item {
		margin-bottom: 25px;
	}

	.container {
		padding-left: 15px;
		padding-right: 15px;
	}

	.navbar-brand {
		font-size: 1.2rem;
	}

	.brand-text {
		display: none !important;
	}
	.navbar-brand picture img {
		height: 120px;
	}
}

@media (max-width: 480px) {
	.display-4 {
		font-size: 1.4rem;
	}

	.display-5 {
		font-size: 1.5rem;
	}

	.btn-lg {
		font-size: 0.85rem;
		padding: 10px 18px;
	}

	.hero-section .container {
		padding: 0 10px;
	}

	.direction-card {
		padding: 15px 10px;
		margin-bottom: 15px;
	}

	.project-card {
		padding: 12px;
		margin-bottom: 15px;
	}

	.team-card {
		padding: 12px;
		margin-bottom: 15px;
	}

	.stat-number {
		font-size: 2.2rem;
	}

	.team-img {
		width: 200px;
		height: 200px;
		margin-bottom: 15px;
	}

	.team-img-small {
		width: 180px;
		height: 180px;
		margin-bottom: 15px;
	}

	.team-description {
		padding: 12px;
		margin: 10px 0;
	}

	.team-description p {
		font-size: 0.9rem;
	}
}

/* Скрываем карточки по умолчанию, отображаем по появлению */
.direction-card,
.project-card,
.team-card,
.contact-item {
	opacity: 0;
}
/* Анимация плавного появления при добавлении класса loading */
.direction-card.loading,
.project-card.loading,
.team-card.loading,
.contact-item.loading {
	animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

::-webkit-scrollbar {
	width: 8px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
	background: var(--primary-color);
	border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--dark-green);
}

.btn-primary {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
}

.btn-primary:hover {
	background-color: var(--dark-green);
	border-color: var(--dark-green);
}

.text-primary {
	color: var(--accent-color) !important;
}

.navbar-nav .nav-link:hover {
	color: var(--accent-color) !important;
}

.social-links a:hover {
	color: var(--accent-color) !important;
}

/* Anchor offset for fixed navbar */
section[id] {
	/* Отступ под фиксированный navbar */
	scroll-margin-top: var(--navbar-height);
}
@media (max-width: 576px) {
	section[id] {
		/* Мобильный отступ под navbar с учётом безопасной зоны */
		scroll-margin-top: calc(
			var(--navbar-height-mobile) + env(safe-area-inset-top)
		);
	}
	body {
		/* Отступ для body на мобильных */
		padding-top: calc(var(--navbar-height-mobile) + env(safe-area-inset-top));
		/* Фон страницы */
		background: #fff;
	}
	/* Псевдоэлемент для фонового градиента в безопасной области */
	body::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: env(safe-area-inset-top);
		background: linear-gradient(
			135deg,
			var(--dark-green) 0%,
			var(--primary-color) 50%,
			var(--dark-color) 100%
		);
		z-index: 9999;
		pointer-events: none;
	}
}
