:root {
 --primary-color: #3b82f6; /* Синий */
 --primary-dark: #2563eb;
 --secondary-color: #1f2937; /* Темно-серый */
 --text-dark: #111827;
 --text-light: #6b7280;
 --bg-light: #f3f4f6;
 --bg-white: #ffffff;
 --border-color: #d1d5db;
 --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
 --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
 --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
 --radius-md: 8px;
 --radius-lg: 16px;
 --transition: all 0.3s ease-in-out;
 --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 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);
 line-height: 1.6;
 color: var(--text-dark);
 background: var(--bg-white);
 -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
 font-weight: 700;
 line-height: 1.2;
 color: var(--text-dark);
 margin-bottom: 1rem;
}

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

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

a:hover {
 color: var(--primary-dark);
}

img {
 max-width: 100%;
 height: auto;
 display: block;
}

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

/* Header */
.header {
 background: rgba(255, 255, 255, 0.9);
 backdrop-filter: blur(10px);
 border-bottom: 1px solid var(--border-color);
 position: sticky;
 top: 0;
 width: 100%;
 z-index: 1000;
 transition: var(--transition);
}
.header.scrolled {
 box-shadow: var(--shadow-md);
}
.nav {
 display: flex;
 justify-content: space-between;
 align-items: center;
 height: 70px;
}
.nav-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: var(--text-dark);
}
.nav-links {
 display: flex;
 gap: 32px;
 list-style: none;
}
.nav-links a {
 color: var(--text-light);
 font-weight: 500;
 position: relative;
 padding: 5px 0;
}
.nav-links a:hover, .nav-links a.active {
 color: var(--text-dark);
}
.nav-links a::after {
 content: '';
 position: absolute;
 bottom: 0;
 left: 0;
 width: 0;
 height: 2px;
 background-color: var(--primary-color);
 transition: var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after {
 width: 100%;
}
.nav-actions {
 display: flex;
 align-items: center;
}
.nav-toggle {
 display: none;
 background: none;
 border: none;
 cursor: pointer;
 z-index: 1001;
}
.nav-toggle span {
 display: block;
 width: 25px;
 height: 2px;
 background-color: var(--text-dark);
 margin: 5px 0;
 transition: var(--transition);
}

/* Buttons */
.btn {
 display: inline-block;
 padding: 12px 28px;
 font-weight: 600;
 border-radius: var(--radius-md);
 transition: var(--transition);
 border: 2px solid transparent;
 cursor: pointer;
 text-align: center;
}
.btn-primary {
 background-color: var(--primary-color);
 color: white;
}
.btn-primary:hover {
 background-color: var(--primary-dark);
 color: white;
 transform: translateY(-2px);
}
.btn-secondary {
 background-color: transparent;
 color: var(--primary-color);
 border-color: var(--primary-color);
}
.btn-secondary:hover {
 background-color: var(--primary-color);
 color: white;
}

.mt-2 { margin-top: 2rem; }

/* Sections */
.section {
 padding: 80px 0;
}
.bg-light {
 background-color: var(--bg-light);
}
.section-header {
 text-align: center;
 max-width: 700px;
 margin: 0 auto 50px;
}
.section-label, .badge {
 display: inline-block;
 background-color: var(--primary-color);
 color: white;
 padding: 4px 12px;
 border-radius: 999px;
 font-size: 0.8rem;
 font-weight: 600;
 margin-bottom: 1rem;
 text-transform: uppercase;
 letter-spacing: 0.5px;
}
.section-title { color: var(--text-dark); }
.section-title-small { font-size: 1.75rem; color: var(--text-dark); }
.section-subtitle {
 font-size: 1.125rem;
 color: var(--text-light);
}
.pt-0 { padding-top: 0; }
.text-center { text-align: center; }

/* Hero Section */
.hero-section {
 padding: 80px 0;
 background: linear-gradient(45deg, var(--bg-light), var(--bg-white));
}
.hero-container {
 display: grid;
 grid-template-columns: 1fr 1fr;
 align-items: center;
 gap: 40px;
}
.hero-title {
 font-size: clamp(2.5rem, 5vw, 3.8rem);
 margin-bottom: 1.5rem;
}
.hero-description {
 font-size: 1.1rem;
 color: var(--text-light);
 margin-bottom: 2rem;
 max-width: 500px;
}
.hero-buttons {
 display: flex;
 gap: 1rem;
}
.hero-image-container {
 display: flex;
 justify-content: center;
 align-items: center;
}
.hero-image {
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
 max-height: 500px;
 object-fit: cover;
}

/* Logos Section */
.logos-section { padding: 40px 0; background-color: var(--bg-white); }
.logos-title { text-align: center; color: var(--text-light); font-size: 1rem; font-weight: 500; margin-bottom: 2rem; }
.logos-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 2rem; }
.logo-item { font-weight: 600; color: #9ca3af; filter: grayscale(1); opacity: 0.8; transition: var(--transition); }
.logo-item:hover { filter: grayscale(0); opacity: 1; color: var(--text-light); }

/* Grid & Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
 background-color: var(--bg-white);
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
 transition: var(--transition);
 overflow: hidden;
 display: flex;
 flex-direction: column;
}
.card:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-lg);
}
.card-image {
 width: 100%;
 height: 200px;
 object-fit: cover;
}
.card-body {
 padding: 24px;
 flex-grow: 1;
 display: flex;
 flex-direction: column;
}
.card-badge {
 color: var(--primary-color);
 font-weight: 600;
 font-size: 0.8rem;
 margin-bottom: 0.5rem;
}
.card-title {
 font-size: 1.25rem;
 margin-bottom: 0.75rem;
}
.card-text {
 color: var(--text-light);
 flex-grow: 1;
 margin-bottom: 1.5rem;
}
.card-btn {
 align-self: flex-start;
}

/* Feature Icon Card */
.feature-card-icon {
 background-color: var(--bg-white);
 padding: 30px;
 border-radius: var(--radius-lg);
 text-align: center;
 box-shadow: var(--shadow-md);
 transition: var(--transition);
}
.feature-card-icon:hover {
 transform: translateY(-5px);
 box-shadow: var(--shadow-lg);
}
.feature-icon {
 width: 60px;
 height: 60px;
 margin: 0 auto 20px;
 background-color: var(--primary-color);
 color: white;
 border-radius: 50%;
 display: flex;
 align-items: center;
 justify-content: center;
}
.feature-icon svg {
 width: 30px;
 height: 30px;
}
.feature-card-icon h3 {
 font-size: 1.25rem;
}
.feature-card-icon p {
 color: var(--text-light);
}

/* Media Object */
.media-object-alt {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 40px;
 align-items: center;
 margin-bottom: 80px;
}
.media-object-alt.reverse {
 grid-template-columns: 1fr 1fr;
}
.media-object-alt.reverse .media-image-alt {
 order: 2;
}
.media-object-alt:last-child {
 margin-bottom: 0;
}
.media-image-alt img {
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-lg);
 width: 100%;
 height: 400px;
 object-fit: cover;
}
.media-title {
 font-size: 1.75rem;
 margin-bottom: 1.5rem;
}
.media-content-alt p {
 color: var(--text-light);
 margin-bottom: 1rem;
}
.media-content-alt ul {
 list-style: none;
 padding-left: 0;
 margin-top: 1.5rem;
}
.media-content-alt ul li {
 padding-left: 25px;
 position: relative;
 margin-bottom: 0.5rem;
 color: var(--text-dark);
}
.media-content-alt ul li::before {
 content: '';
 position: absolute;
 left: 0;
 color: var(--primary-color);
 font-weight: 700;
}

/* Case Studies */
.case-studies-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 30px;
}
.case-study-card {
 display: block;
 border-radius: var(--radius-lg);
 overflow: hidden;
 box-shadow: var(--shadow-md);
 transition: var(--transition);
}
.case-study-card:hover {
 box-shadow: var(--shadow-lg);
 transform: translateY(-5px);
}
.case-study-card img {
 width: 100%;
 height: 250px;
 object-fit: cover;
}
.case-study-content {
 background: white;
 padding: 24px;
}
.case-study-content h4 {
 font-size: 1.25rem;
 color: var(--text-dark);
}
.case-study-content p {
 color: var(--text-light);
 margin-bottom: 1rem;
}
.read-more-link {
 color: var(--primary-color);
 font-weight: 600;
}

/* FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question {
 width: 100%;
 display: flex;
 justify-content: space-between;
 align-items: center;
 padding: 20px 0;
 background: none;
 border: none;
 font-size: 1.125rem;
 font-weight: 600;
 color: var(--text-dark);
 cursor: pointer;
 text-align: left;
}
.faq-icon {
 width: 20px;
 height: 20px;
 transition: transform 0.3s ease;
}
.faq-item.active .faq-icon {
 transform: rotate(45deg);
}
.faq-answer {
 max-height: 0;
 overflow: hidden;
 transition: max-height 0.5s ease;
}
.faq-answer p {
 padding-bottom: 20px;
 color: var(--text-light);
}

/* CTA Section */
.cta-section { padding: 60px 0; }

/* Page Header */
.page-header-section {
 padding: 60px 0;
 background: linear-gradient(to right, #e0e7ff, #c7d2fe);
 text-align: center;
}
.page-title {
 font-size: 3rem;
}
.page-subtitle {
 font-size: 1.2rem;
 color: var(--text-dark);
 max-width: 700px;
 margin: 0 auto;
}

/* Team Section */
.team-grid {
 display: grid;
 grid-template-columns: repeat(3, 1fr);
 gap: 30px;
}
.team-member-card {
 text-align: center;
}
.team-member-photo {
 width: 150px;
 height: 150px;
 border-radius: 50%;
 object-fit: cover;
 margin: 0 auto 1.5rem;
 box-shadow: var(--shadow-lg);
}
.team-member-name { font-size: 1.25rem; }
.team-member-role { color: var(--primary-color); font-weight: 600; margin-top: -0.5rem; margin-bottom: 0.5rem; }
.team-member-bio { font-size: 0.9rem; color: var(--text-light); max-width: 250px; margin: 0 auto; }

/* Value Cards */
.value-card {
 padding: 30px;
 background-color: var(--bg-white);
 border-radius: var(--radius-lg);
 border-left: 4px solid var(--primary-color);
 box-shadow: var(--shadow-md);
}
.value-card h3 { font-size: 1.25rem; }
.value-card p { color: var(--text-light); }

/* Timeline */
.timeline {
 position: relative;
 max-width: 800px;
 margin: 0 auto;
}
.timeline::after {
 content: '';
 position: absolute;
 width: 3px;
 background-color: var(--primary-color);
 top: 0;
 bottom: 0;
 left: 50%;
 margin-left: -1.5px;
}
.timeline-item {
 padding: 10px 40px;
 position: relative;
 width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::after {
 content: '';
 position: absolute;
 width: 20px;
 height: 20px;
 right: -10px;
 background-color: var(--bg-white);
 border: 4px solid var(--primary-color);
 top: 15px;
 border-radius: 50%;
 z-index: 1;
}
.timeline-item:nth-child(even)::after { left: -10px; }
.timeline-content {
 padding: 20px;
 background-color: var(--bg-white);
 position: relative;
 border-radius: var(--radius-lg);
 box-shadow: var(--shadow-md);
}
.timeline-content h3 { font-size: 1.2rem; }
.timeline-content p { font-size: 0.9rem; color: var(--text-light); }

/* Contact Page */
.contact-page-grid { 
 display: grid; 
 grid-template-columns: 2fr 1fr;
 gap: 50px;
}
.contact-form-container h2 { margin-bottom: 0.5rem; }
.contact-form-container p { margin-bottom: 2rem; color: var(--text-light); }
.contact-form .form-group { margin-bottom: 1.5rem; }
.contact-form label { display: block; font-weight: 500; margin-bottom: 0.5rem; }
.contact-form input, .contact-form textarea {
 width: 100%;
 padding: 12px;
 border: 1px solid var(--border-color);
 border-radius: var(--radius-md);
 font-family: var(--font-main);
 font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
 outline: none;
 border-color: var(--primary-color);
 box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.contact-form .checkbox-group { display: flex; align-items: center; gap: 0.5rem; }
.contact-form .checkbox-group label { margin-bottom: 0; font-weight: 400; }
.contact-form .checkbox-group input { width: auto; }
.contact-info-container h2 { margin-bottom: 0.5rem; }
.contact-info-container p { margin-bottom: 2rem; color: var(--text-light); }
.contact-info-block { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-info-item svg {
 flex-shrink: 0;
 width: 24px;
 height: 24px;
 color: var(--primary-color);
 margin-top: 3px;
}
.contact-info-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.contact-info-item p, .contact-info-item a { color: var(--text-light); margin-bottom: 0; }
.contact-info-item a:hover { color: var(--primary-dark); }
.map-container { 
 height: 400px; 
 border-radius: var(--radius-lg); 
 overflow: hidden; 
 box-shadow: var(--shadow-md);
}
.map-container iframe { border: none; }

/* Form validation styles */
.input-error { border-color: #dc2626 !important; }
.field-error { color: #dc2626; font-size: 0.85rem; margin-top: 4px; }
.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; }

/* Legal Pages */
.legal-page { padding: 80px 0; }
.legal-page h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.legal-page p { margin-bottom: 1rem; color: var(--text-light); }
.legal-page section { margin-bottom: 2.5rem; }
.legal-page h2 { font-size: 1.5rem; margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.legal-page ul { margin-left: 20px; margin-bottom: 1rem; }
.legal-page li { color: var(--text-light); margin-bottom: 0.5rem; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.legal-page th, .legal-page td { padding: 12px; border: 1px solid var(--border-color); text-align: left; }
.legal-page th { background-color: var(--bg-light); }

/* Footer */
.footer {
 background-color: var(--secondary-color);
 color: #d1d5db;
 padding: 60px 0 20px;
 margin-top: 80px;
}
.footer-grid {
 display: grid;
 grid-template-columns: 2fr 1fr 1fr 1.5fr;
 gap: 40px;
 margin-bottom: 40px;
}
.footer-logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: white;
 margin-bottom: 1rem;
 display: block;
}
.footer-description {
 font-size: 0.9rem;
 line-height: 1.5;
 max-width: 300px;
}
.footer-heading {
 color: white;
 font-size: 1rem;
 font-weight: 600;
 margin-bottom: 1.5rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { color: #d1d5db; font-size: 0.9rem; }
.footer-links a:hover { color: white; }
.footer-contact { list-style: none; }
.footer-contact li { margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.4; color: #d1d5db; }
.footer-contact a { color: #d1d5db; }
.footer-contact a:hover { color: white; }
.footer-hours { font-size: 0.9rem; line-height: 1.5; }
.footer-bottom {
 border-top: 1px solid #374151;
 padding-top: 20px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 font-size: 0.85rem;
}
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: #d1d5db; }
.footer-social a:hover { color: white; }

/* Cookie Banner */
#cookie-banner {
 position: fixed;
 bottom: 0;
 left: 0;
 right: 0;
 background-color: var(--secondary-color);
 color: white;
 padding: 15px 20px;
 display: none;
 justify-content: space-between;
 align-items: center;
 z-index: 2000;
 box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
#cookie-banner p { margin: 0; font-size: 0.9rem; }
#cookie-banner a { color: var(--primary-color); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 10px; }
#accept-cookies, #decline-cookies {
 padding: 8px 16px;
 border: none;
 border-radius: var(--radius-md);
 cursor: pointer;
}
#accept-cookies { background-color: var(--primary-color); color: white; }
#decline-cookies { background-color: #4b5563; color: white; }

/* Responsive */
@media (max-width: 992px) {
 .grid-3 { grid-template-columns: 1fr 1fr; }
 .hero-container { grid-template-columns: 1fr; text-align: center; }
 .hero-description, .hero-buttons { margin-left: auto; margin-right: auto; justify-content: center; }
 .media-object-alt, .media-object-alt.reverse { grid-template-columns: 1fr; }
 .media-object-alt.reverse .media-image-alt { order: 1; }
 .case-studies-grid { grid-template-columns: 1fr; }
 .contact-page-grid { grid-template-columns: 1fr; }
 .footer-grid { grid-template-columns: 1fr 1fr; }
 .timeline::after { left: 30px; }
 .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
 .timeline-item:nth-child(even) { left: 0%; }
 .timeline-item::after { left: 20px; }
}

@media (max-width: 768px) {
 .nav-links {
 position: fixed;
 top: 0;
 right: -100%;
 width: 70%;
 max-width: 300px;
 height: 100vh;
 background-color: var(--bg-white);
 box-shadow: -5px 0 15px rgba(0,0,0,0.1);
 flex-direction: column;
 padding: 100px 30px 30px;
 gap: 25px;
 transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
 }
 .nav-links.active {
 right: 0;
 }
 .nav-toggle { display: block; }
 .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
 .nav-toggle.active span:nth-child(2) { opacity: 0; }
 .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
 .nav-actions { display: none; } /* Hide button on mobile */

 .grid-3 { grid-template-columns: 1fr; }
 .footer-grid { grid-template-columns: 1fr;}
 .footer-bottom { flex-direction: column; gap: 1rem; }
 
 #cookie-banner { flex-direction: column; text-align: center; gap: 15px; }
}