:root {
 --primary-color: #343a40; /* Глубокий Синий */
 --primary-dark: #23272b;
 --secondary-color: #6c757d; /* Нейтральный Серый */
 --bg-light: #f8f9fa; /* Теплый Бежевый */
 --bg-white: #ffffff;
 --text-dark: #212529;
 --text-light: #6c757d;
 --border-color: #dee2e6;
 --radius-sm: 4px;
 --radius-md: 8px;
 --radius-lg: 16px;
 --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
 --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.07);
 --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
 --transition: all 0.3s ease-in-out;
 --font-main: 'Montserrat', sans-serif;
}

*, *::before, *::after {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

html {
 scroll-behavior: smooth;
 font-size: 16px;
}

body {
 font-family: var(--font-main);
 color: var(--text-dark);
 background-color: var(--bg-white);
 line-height: 1.7;
 -webkit-font-smoothing: antialiased;
}

.container {
 max-width: 1200px;
 margin: 0 auto;
 padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
 font-weight: 700;
 line-height: 1.3;
 color: var(--primary-color);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a {
 color: var(--secondary-color);
 text-decoration: none;
 transition: var(--transition);
}
a:hover {
 color: var(--primary-color);
}

p {
 margin-bottom: 1rem;
 color: var(--text-light);
}

ul {
 list-style-type: none;
}

.section {
 padding: 80px 0;
}
.section.bg-light {
 background-color: var(--bg-light);
}

.section-header {
 margin-bottom: 60px;
}

.section-title {
 margin-bottom: 1rem;
}
.section-title-small {
 font-size: 2rem;
 margin-bottom: 1rem;
}

.section-subtitle {
 font-size: 1.1rem;
 color: var(--text-light);
 max-width: 700px;
 margin: 0 auto;
}

.text-center {
 text-align: center;
}

.grid-2 {
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 30px;
}
.grid-3 {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
}
.grid-4 {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 20px;
}

.btn {
 display: inline-block;
 font-weight: 600;
 text-align: center;
 white-space: nowrap;
 vertical-align: middle;
 user-select: none;
 border: 2px solid transparent;
 padding: 12px 30px;
 font-size: 1rem;
 border-radius: var(--radius-sm);
 transition: var(--transition);
 cursor: pointer;
}

.btn-primary {
 color: #fff;
 background-color: var(--primary-color);
 border-color: var(--primary-color);
}
.btn-primary:hover {
 background-color: var(--primary-dark);
 border-color: var(--primary-dark);
 color: #fff;
 transform: translateY(-2px);
}
.btn-secondary {
 color: var(--primary-color);
 background-color: transparent;
 border-color: var(--primary-color);
}
.btn-secondary:hover {
 color: #fff;
 background-color: var(--primary-color);
 border-color: var(--primary-color);
}
.btn-sm {
 padding: 8px 16px;
 font-size: 0.875rem;
}
.btn-link {
 color: var(--primary-color);
 font-weight: 600;
 display: inline-flex;
 align-items: center;
 gap: 5px;
}
.btn-link:hover {
 color: var(--primary-dark);
 gap: 8px;
}

/* Header */
.header {
 background-color: var(--bg-white);
 box-shadow: var(--shadow-sm);
 position: sticky;
 top: 0;
 z-index: 1000;
 width: 100%;
}
.header-top-bar {
 background-color: var(--primary-color);
 color: rgba(255, 255, 255, 0.8);
 padding: 8px 0;
 font-size: 0.875rem;
}
.header-contact-info {
 display: flex;
 justify-content: flex-end;
 gap: 20px;
}
.header-contact-info a {
 color: rgba(255, 255, 255, 0.8);
 display: inline-flex;
 align-items: center;
 gap: 8px;
}
.header-contact-info a:hover {
 color: #fff;
}
.header-main {
 padding: 15px 0;
}

.nav {
 display: flex;
 justify-content: space-between;
 align-items: center;
}
.nav-logo {
 font-weight: 700;
 font-size: 1.5rem;
 color: var(--primary-color);
}
.nav-logo-subtitle {
 display: block;
 font-size: 0.75rem;
 font-weight: 500;
 color: var(--text-light);
}
.nav-links {
 display: flex;
 gap: 30px;
}
.nav-links a {
 font-weight: 600;
 color: var(--text-dark);
 padding-bottom: 5px;
 position: relative;
}
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background-color: var(--primary-color);
 transition: width 0.3s;
}
.nav-links a:hover::after, .nav-links a.active::after {
 width: 100%;
}

.nav-toggle {
 display: none;
 cursor: pointer;
 background: transparent;
 border: none;
}
.nav-toggle span {
 display: block;
 width: 25px;
 height: 3px;
 background-color: var(--primary-color);
 margin: 5px 0;
 transition: var(--transition);
}

/* Hero Business */
.hero-business {
 background-color: var(--bg-light);
 padding: 100px 0;
 text-align: center;
 background-image:
 linear-gradient(rgba(248, 249, 250, 0.9), rgba(248, 249, 250, 0.9)),
 repeating-linear-gradient(45deg, #e9ecef, #e9ecef 1px, transparent 1px, transparent 20px);
}
.hero-logo-container {
 margin-bottom: 2rem;
}
.hero-logo-mark {
 display: inline-flex;
 width: 80px;
 height: 80px;
 align-items: center;
 justify-content: center;
 background-color: var(--primary-color);
 color: #fff;
 font-size: 2.5rem;
 font-weight: 700;
 border-radius: 50%;
}
.hero-title {
 margin-bottom: 1.5rem;
}
.hero-subtitle {
 font-size: 1.25rem;
 margin-bottom: 2.5rem;
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
}

/* Page Header */
.page-header-section {
 padding: 80px 0;
 text-align: center;
 color: #fff;
 background-size: cover;
 background-position: center;
}
.page-title {
 color: #fff;
}
.page-subtitle {
 color: rgba(255,255,255,0.9);
}

/* Mission Section */
.section-mission .section-header {
 max-width: 800px;
 margin-left: auto;
 margin-right: auto;
}
.title-underline {
 width: 80px;
 height: 3px;
 background-color: var(--primary-color);
 margin: 1.5rem auto 1.5rem;
}

/* Service Grid */
.service-grid {
 gap: 30px;
}
.service-card {
 background: var(--bg-white);
 padding: 30px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 text-align: center;
 transition: var(--transition);
}
.service-card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-md);
}
.service-icon {
 width: 60px;
 height: 60px;
 margin: 0 auto 20px;
 border-radius: 50%;
 background-color: var(--bg-light);
 color: var(--primary-color);
 display: flex;
 align-items: center;
 justify-content: center;
}
.service-icon svg {
 width: 28px;
 height: 28px;
}
.service-title {
 font-size: 1.2rem;
 margin-bottom: 10px;
}
.service-text {
 font-size: 0.95rem;
 margin-bottom: 0;
}

/* Timeline */
.timeline {
 position: relative;
 max-width: 900px;
 margin: 0 auto;
 display: flex;
 flex-direction: column;
 gap: 40px;
}
.timeline::after {
 content: '';
 position: absolute;
 width: 4px;
 background-color: var(--bg-light);
 top: 0;
 bottom: 0;
 left: 48px;
 margin-left: -2px;
}
.timeline-item {
 padding-left: 100px;
 position: relative;
}
.timeline-number {
 position: absolute;
 left: 0;
 top: 0;
 width: 100px;
 height: 100px;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 2rem;
 font-weight: 700;
 color: var(--primary-color);
 background-color: #fff;
 border-radius: 50%;
 border: 4px solid var(--bg-light);
 z-index: 1;
}
.timeline-content h3 {
 margin-bottom: 10px;
}
.timeline-content p {
 margin-bottom: 0;
}

/* Card */
.card {
 background-color: var(--bg-white);
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 overflow: hidden;
 transition: var(--transition);
}
.card:hover {
 box-shadow: var(--shadow-lg);
 transform: translateY(-5px);
}
.card-image {
 width: 100%;
 height: 220px;
 object-fit: cover;
}
.card-body {
 padding: 25px;
}
.card-title {
 font-size: 1.3rem;
 margin-bottom: 15px;
}
.card-text {
 font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
 background-color: var(--primary-color);
 color: #fff;
 text-align: center;
 padding: 60px 40px;
 border-radius: var(--radius-lg);
 background-image: linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.05) 75%, transparent 75%, transparent);
 background-size: 40px 40px;
}
.cta-title {
 color: #fff;
 margin-bottom: 1rem;
}
.cta-text {
 color: rgba(255, 255, 255, 0.8);
 margin-bottom: 2rem;
}
.cta-section .btn-primary {
 background-color: #fff;
 color: var(--primary-color);
 border-color: #fff;
}
.cta-section .btn-primary:hover {
 background-color: var(--bg-light);
 border-color: var(--bg-light);
}

/* Footer */
.footer {
 background-color: var(--primary-color);
 color: rgba(255, 255, 255, 0.7);
 padding: 80px 0 30px;
 margin-top: 80px;
}
.footer-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
 gap: 40px;
 margin-bottom: 50px;
}
.footer-logo {
 font-size: 1.6rem;
 font-weight: 700;
 color: #fff;
 margin-bottom: 1rem;
 display: inline-block;
}
.footer-description {
 font-size: 0.9rem;
 line-height: 1.6;
}
.footer-heading {
 font-size: 1rem;
 font-weight: 600;
 color: #fff;
 margin-bottom: 20px;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}
.footer-links li {
 margin-bottom: 10px;
}
.footer-links a, .footer-contact-item a {
 color: rgba(255, 255, 255, 0.7);
}
.footer-links a:hover, .footer-contact-item a:hover {
 color: #fff;
}
.footer-contact-list li {
 margin-bottom: 15px;
 display: flex;
 align-items: flex-start;
}
.footer-contact-item {
 gap: 10px;
}

.footer-contact-item svg {
 width: 16px;
 height: 16px;
 flex-shrink: 0;
 margin-top: 5px;
 color: #fff;
}
.footer-bottom {
 border-top: 1px solid rgba(255, 255, 255, 0.1);
 padding-top: 30px;
 text-align: center;
 font-size: 0.875rem;
}

/* About Page */
.align-items-center {
 align-items: center;
}
.content-image {
 width: 100%;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
}
.team-member-card {
 text-align: center;
}
.team-member-photo {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 20px;
 border: 5px solid var(--bg-white);
 box-shadow: var(--shadow-md);
}
.team-member-name {
 font-size: 1.3rem;
 margin-bottom: 5px;
}
.team-member-title {
 color: var(--text-light);
 font-weight: 500;
}
.value-card {
 padding: 30px;
 background-color: var(--bg-light);
 border-radius: var(--radius-md);
 text-align: center;
}
.value-card h3 {
 margin-bottom: 1rem;
}

/* Research Page */
.feature-card .card-body {
 padding-top: 0;
}
.case-study-list {
 display: flex;
 flex-direction: column;
 gap: 50px;
}
.case-study-item {
 display: grid;
 grid-template-columns: 1fr 2fr;
 gap: 30px;
 align-items: center;
}
.case-study-item:nth-child(even) {
 grid-template-columns: 2fr 1fr;
}
.case-study-item:nth-child(even) .case-study-image {
 order: 2;
}
.case-study-image img {
 width: 100%;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
}
.case-study-content h3 {
 margin-bottom: 1rem;
}

/* Resources Page */
.literature-list {
 list-style: none;
 padding-left: 0;
 max-width: 800px;
 margin: auto;
}
.literature-list li {
 padding: 15px;
 border-bottom: 1px solid var(--border-color);
 font-weight: 500;
}
.literature-list li:last-child {
 border-bottom: none;
}
.cookie-table{ width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.cookie-table th, .cookie-table td{ border: 1px solid var(--border-color); padding: 12px 15px; text-align: left; }
.cookie-table th{ background-color: var(--bg-light); font-weight: 600; }
.cookie-table tr:nth-child(even){ background-color: var(--bg-light); }

/* Contact Page */
.grid-2-contact {
 display: grid;
 grid-template-columns: 2fr 1.5fr;
 gap: 50px;
}
.form-group {
 margin-bottom: 20px;
}
.form-group label {
 display: block;
 margin-bottom: 8px;
 font-weight: 600;
}
.form-control {
 width: 100%;
 padding: 14px;
 font-size: 1rem;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-sm);
 transition: var(--transition);
}
.form-control:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(52, 58, 64, 0.15);
}
textarea.form-control {
 resize: vertical;
 min-height: 120px;
}
.checkbox-group {
 display: flex;
 align-items: center;
 gap: 10px;
}
.checkbox-group input {
 width: 16px;
 height: 16px;
}
.checkbox-group label {
 margin-bottom: 0;
 font-weight: 400;
}
.contact-details-list {
 list-style: none;
 padding: 0;
}
.contact-details-list li {
 margin-bottom: 20px;
}
.contact-details-list li strong {
 display: block;
 margin-bottom: 5px;
 color: var(--text-dark);
}
.contact-details-list li span, .contact-details-list li a {
 color: var(--text-light);
}
.map-container {
 width: 100%;
 height: 450px;
 border-radius: var(--radius-md);
 overflow: hidden;
 box-shadow: var(--shadow-md);
}

/* Legal Pages */
.legal-page {
 padding: 80px 0;
}
.legal-page h1 {
 margin-bottom: 1rem;
}
.legal-page h2 {
 margin-top: 2.5rem;
 margin-bottom: 1rem;
}
.legal-page p {
 margin-bottom: 1rem;
}
.legal-page ul {
 list-style-type: disc;
 padding-left: 20px;
 margin-bottom: 1rem;
}
.legal-page li {
 margin-bottom: 0.5rem;
}

/* Cookie Banner */
.cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: var(--primary-color);
 color: #fff;
 padding: 20px;
 display: none;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
 z-index: 1001;
 box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}
.cookie-banner p {
 margin: 0;
 font-size: 0.9rem;
 color: rgba(255,255,255,0.9);
}
.cookie-banner a {
 color: #fff;
 text-decoration: underline;
}
.cookie-buttons {
 display: flex;
 gap: 10px;
 flex-shrink: 0;
}

/* Form Validation */
.input-error {
 border-color: #dc3545 !important;
 box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}
.field-error {
 color: #dc3545;
 font-size: 0.85rem;
 margin-top: 5px;
}
.spinner {
 display: inline-block;
 width: 16px;
 height: 16px;
 border: 2px solid rgba(255,255,255,0.3);
 border-radius: 50%;
 border-top-color: #fff;
 animation: spin 0.8s linear infinite;
 margin-right: 8px;
 vertical-align: middle;
}
@keyframes spin {
 to { transform: rotate(360deg); }
}
button[disabled] {
 opacity: 0.7;
 cursor: not-allowed;
}

/* Responsive */
@media (max-width: 992px) {
 .grid-4, .grid-3 {
 grid-template-columns: repeat(2, 1fr);
 }
 .grid-2-contact {
 grid-template-columns: 1fr;
 }
 .case-study-item, .case-study-item:nth-child(even) {
 grid-template-columns: 1fr;
 }
 .case-study-item:nth-child(even) .case-study-image {
 order: 0;
 }
 .footer-grid {
 grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
 }
}
@media (max-width: 768px) {
 .grid-4, .grid-3, .grid-2 {
 grid-template-columns: 1fr;
 }
 .nav-toggle {
 display: block;
 z-index: 1001;
 }
 .nav-links {
 position: fixed;
 top: 0;
 left: -100%;
 width: 80%;
 max-width: 300px;
 height: 100vh;
 background-color: var(--bg-white);
 flex-direction: column;
 padding: 80px 20px 20px;
 box-shadow: var(--shadow-lg);
 transition: left 0.4s ease;
 }
 .nav-links.active {
 left: 0;
 }
 .header-top-bar { display: none; }
 .hero-title { font-size: 2.2rem; }
 .hero-subtitle { font-size: 1.1rem; }
 .timeline::after { left: 25px; }
 .timeline-item { padding-left: 60px; }
 .timeline-number { width: 50px; height: 50px; font-size: 1.5rem; }
 .cookie-banner {
 flex-direction: column;
 text-align: center;
 }
}