:root {
	--primary-color: #12b4aa;
	--secondary-color: #0d7c76;
	--accent-color: #3fd6cc;
	--light-color: #f8fafc;
	--dark-color: #1e293b;
	--text-color: #334155;
	--border-radius: 8px;
	--box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	--transition: all 0.3s ease;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--light-color);
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
header {
	background-color: white;
	box-shadow: var(--box-shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 0;
}

.logo {
	display: flex;
	align-items: center;
}

.logo h1 {
	font-size: 1.5rem;
	color: var(--secondary-color);
}

.logo span {
	color: var(--primary-color);
}

nav ul {
	display: flex;
	list-style: none;
}

nav ul li {
	margin-left: 25px;
}

nav ul li a {
	text-decoration: none;
	color: var(--dark-color);
	font-weight: 500;
	transition: var(--transition);
}

nav ul li a:hover {
	color: var(--primary-color);
}

.mobile-menu-btn {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--dark-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    text-align: center; /* Центрируем текст */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-align: center; /* Центрируем заголовок */
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px; /* Центрируем параграф */
    text-align: center; /* Центрируем текст */
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center; /* Центрируем кнопки */
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: nowrap; /* Запрещаем переносы */
}

.hero-image {
    height: 48px;
    width: auto;
    max-width: 100px;
    margin-right: 20px;
    object-fit: contain;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-main-image {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background-color: white;
    color: var(--primary-color);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    height: 48px;
    white-space: nowrap; /* Запрещаем перенос текста в кнопках */
    min-width: max-content; /* Минимальная ширина по содержимому */
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

/* Классы для регулировки отступа изображения */
.hero-image.close {
    margin-right: 10px;
}

.hero-image.far {
    margin-right: 30px;
}

/* Sections */
section {
	padding: 80px 0;
}

.section-title {
	text-align: center;
	margin-bottom: 50px;
}

.section-title h2 {
	font-size: 2rem;
	color: var(--secondary-color);
	margin-bottom: 15px;
}

.section-title p {
	max-width: 700px;
	margin: 0 auto;
	color: var(--text-color);
}

/* About Section */
.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.about-text h3 {
	margin-bottom: 20px;
	color: var(--secondary-color);
}

.about-details {
	margin-top: 30px;
}

.detail-item {
	margin-bottom: 20px;
}

.detail-item h4 {
	margin-bottom: 10px;
	color: var(--secondary-color);
}

.publications {
	margin-top: 30px;
}

.publication-card {
	background-color: white;
	padding: 20px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	margin-bottom: 15px;
}

/* Services Section */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.service-card {
	background-color: white;
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	transition: var(--transition);
}

.service-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
	margin-bottom: 15px;
	color: var(--secondary-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    justify-items: center; /* Центрирует карточки */
}

.project-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    max-width: 400px; /* Ограничиваем максимальную ширину */
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center; /* Центрируем текст */
}

.project-image {
    height: 400px; /* Увеличили в 2 раза (было 200px) */
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Сохраняет пропорции */
    object-position: center;
}

.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрируем содержимое */
}

.project-content h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    text-align: center;
}

.project-content p {
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    justify-content: center; /* Центрируем теги */
}

.tag {
    background-color: #e2e8f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Project Button */
.btn-project {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    margin: 15px 0;
    border: none;
    cursor: pointer;
}

.btn-project:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

/* Technologies Section */
.tech-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 20px;
}

.tech-item {
	background-color: white;
	padding: 20px;
	border-radius: var(--border-radius);
	text-align: center;
	box-shadow: var(--box-shadow);
	transition: var(--transition);
}

.tech-item:hover {
	transform: scale(1.05);
}

/* Partnership Section */
.partnership-content {
	background-color: white;
	padding: 40px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	text-align: center;
}

.partnership-content p {
	margin-bottom: 20px;
}

/* Contact Section */
.contact-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}

.contact-info h3 {
	margin-bottom: 20px;
	color: var(--secondary-color);
}

.contact-details {
	margin-top: 20px;
}

.contact-item {
	display: flex;
	align-items: center;
	margin-bottom: 15px;
}

.contact-item i {
	margin-right: 10px;
	color: var(--primary-color);
}

.contact-form {
	background-color: white;
	padding: 30px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}

.form-control {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: var(--border-radius);
	font-family: inherit;
}

textarea.form-control {
	min-height: 120px;
	resize: vertical;
}

/* Footer */
footer {
	background-color: var(--secondary-color);
	color: white;
	padding: 40px 0 20px;
}

.footer-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-bottom: 30px;
}

.footer-info h3 {
	margin-bottom: 15px;
}

.footer-links h3 {
	margin-bottom: 15px;
}

.footer-links ul {
	list-style: none;
}

.footer-links ul li {
	margin-bottom: 10px;
}

.footer-links ul li a {
	color: #cbd5e1;
	text-decoration: none;
	transition: var(--transition);
}

.footer-links ul li a:hover {
	color: white;
}

.footer-bottom {
	text-align: center;
	padding-top: 20px;
	border-top: 1px solid #334155;
}

/* Footer Social */
.footer-social h3 {
	margin-bottom: 15px;
}

.social-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.social-link {
	display: flex;
	align-items: center;
	color: #cbd5e1;
	text-decoration: none;
	transition: var(--transition);
}

.social-link:hover {
	color: white;
	transform: translateX(5px);
}

.social-link i {
	margin-right: 8px;
	font-style: normal;
}

.footer-social {
	margin-top: 20px;
}

.footer-social h4 {
	margin-bottom: 10px;
	color: white;
}

/* Privacy Notice */
.privacy-notice {
	background-color: rgba(0, 0, 0, 0.2);
	padding: 20px;
	border-radius: var(--border-radius);
	margin-bottom: 20px;
	font-size: 0.85rem;
	line-height: 1.4;
}

.privacy-notice p {
	margin: 0;
	text-align: center;
}

.privacy-notice a {
	color: #cbd5e1; /* Серый цвет как у других ссылок в футере */
	text-decoration: underline; /* Всегда подчеркнуто */
	transition: var(--transition);
}

.privacy-notice a:hover {
	color: white; /* Белый при наведении */
	text-decoration: underline;
}

/* Styles for Policy Pages (privacy-policy.html, personal-data-policy.html) */
.policy-page body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    padding: 20px;
}

.policy-page .container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.policy-page .back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.policy-page .back-link:hover {
    text-decoration: underline;
}

.policy-page h1 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: center;
}

.policy-page h2 {
    color: var(--secondary-color);
    margin: 30px 0 15px 0;
    font-size: 1.3rem;
}

.policy-page p {
    margin-bottom: 15px;
}

.policy-page ul {
    margin: 15px 0;
    padding-left: 20px;
}

.policy-page li {
    margin-bottom: 8px;
}

.policy-page .effective-date {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Сохраняет пропорции, не растягивает */
    object-position: center;
}

/* Responsive */
@media (max-width: 768px) {
    /* Policy Pages */
    .policy-page body {
        padding: 10px;
    }
    
	.contact-container {
		display : block;
	}
	
	.about-content {
		display: block;
	}

    .policy-page .container {
        padding: 20px;
    }
    
    /* Header */
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px 10px;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px 0;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero h1 {
        text-align: center;
        font-size: 2rem;
    }
    
    .hero p {
        text-align: center;
        margin: 0 auto 30px auto;
        font-size: 1rem;
    }
    
    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap; /* Разрешаем перенос только на мобильных */
        gap: 10px;
    }
    
    .hero-main-image {
        max-height: 300px;
    }
    
    .btn {
        white-space: nowrap; /* Сохраняем без переносов */
        min-width: 140px; /* Минимальная ширина для читаемости */
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: row; /* Сохраняем в один ряд если возможно */
        flex-wrap: wrap; /* Переносим если не помещается */
        justify-content: center;
    }
    
    .btn {
        min-width: 120px;
        font-size: 0.9rem;
        padding: 10px 15px;
    }
}