:root {
  --primary: #64748b;
  --primary-foreground: #FFFFFF;
  --secondary: #DC2828;
  --secondary-foreground: #FFFFFF;
  --accent: #EB9824;
  --accent-foreground: #111827;
  --background: #FFFFFF;
  --foreground: #111827;
  --card: #FFFFFF;
  --card-foreground: #111827;
  --border: #E5E7EB;
  --input: #E5E7EB;
  --ring: #64748b;
  --muted: #F3F4F6;
  --muted-foreground: #6B7280;
  --font-family: 'Poppins', sans-serif;
  --radius: 0.75rem;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  overflow-wrap: break-word;
}

.hidden {
  display: none !important;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  line-height: 1.3;
  color: var(--foreground);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin: 0 0 1rem 0;
  color: var(--foreground);
}

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

a:hover {
  color: var(--secondary);
}

/* Utility Classes */
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.text-lg { font-size: 1.125rem; }
.font-semibold { font-weight: 600; }
.mb-4 { margin-bottom: 1rem; }
.text-sm { font-size: 0.875rem; }

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--secondary);
  color: var(--secondary-foreground);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 0.75rem 2rem;
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
}

/* Icons */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--muted);
  margin-bottom: 1rem;
}

.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }

/* Header */
.header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-img {
  height: 2rem;
  width: auto;
}

.nav-desktop {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.clearvectorprois_mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.clearvectorprois_mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.mobile-nav-link {
  color: var(--foreground);
  font-weight: 500;
  padding: 0.5rem 0;
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .clearvectorprois_mobile-menu-toggle {
    display: block;
  }
}

/* Hero Section */
.hero {
  position: relative;
  background: #111;
  color: #fff;
  padding: 7rem 0;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-main-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* Page Hero */
.page-hero {
  padding: 5rem 0 3rem 0;
  text-align: center;
  background: linear-gradient(180deg, var(--background) 0%, var(--muted) 100%);
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */
section {
  padding: 7rem 0;
}

section:nth-child(even):not(.cta-section):not(.stats-section):not(.final-cta) {
  background: linear-gradient(180deg, var(--muted) 0%, var(--background) 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards */
.feature-card, .service-card, .team-card, .testimonial-card {
  background: var(--card);
  color: var(--card-foreground);
  padding: 2rem;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover, .service-card:hover, .team-card:hover, .testimonial-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-image, .service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

/* CTA Sections */
.cta-section {
  background: var(--background);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  margin: 2rem auto;
  max-width: 1000px;
  padding: 3rem;
  text-align: center;
}

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

/* Stats Section */
.stats-section {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Process Steps */
.process-step {
  text-align: center;
  position: relative;
}

.process-number {
  position: absolute;
  top: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Testimonials */
.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-author {
  margin-top: auto;
}

.author-name {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.author-role {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Team */
.team-avatar {
  text-align: center;
  margin-bottom: 1.5rem;
}

.avatar-icon {
  width: 4rem;
  height: 4rem;
  color: var(--primary);
}

.team-role {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.team-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.specialty {
  background: var(--muted);
  color: var(--muted-foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--input);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--background);
  color: var(--foreground);
}

.form-input:focus {
  outline: none;
  border-color: var(--ring);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* Contact Page */
.contact-section {
  padding: 5rem 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-content h3 {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* Success Message */
.success-message {
  background: #10B981;
  color: white;
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin-top: 1.5rem;
}

.success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.success-icon {
  width: 3rem;
  height: 3rem;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.125rem;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 1.5rem 0;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Services Page */
.service-section {
  padding: 5rem 0;
}

.service-section.alt {
  background: var(--muted);
}

.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-content.reverse {
  direction: rtl;
}

.service-content.reverse > * {
  direction: ltr;
}

.service-features {
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service-pricing {
  background: var(--muted);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.service-pricing h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

@media (max-width: 768px) {
  .service-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-content.reverse {
    direction: ltr;
  }
}

/* About Page */
.company-story, .about-preview {
  padding: 5rem 0;
}

.story-content, .about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-img, .about-img, .intro-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .story-content, .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.legal-content h1 {
  margin-bottom: 0.5rem;
}

.last-updated {
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  font-style: italic;
}

.legal-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-of-type {
  margin-top: 2rem;
  border-top: none;
  padding-top: 0;
}

.legal-content ul {
  margin: 1rem 0;
  padding-left: 2rem;
}

.legal-content li {
  margin-bottom: 0.5rem;
}

.contact-details {
  background: var(--muted);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

.contact-details p {
  margin-bottom: 0.75rem;
}

/* Cookie Table */
.cookie-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.cookie-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.cookie-table th,
.cookie-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.cookie-table th {
  background: var(--muted);
  font-weight: 600;
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

/* Cookie Banner */
.clearvectorprois_cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 1rem 0;
  z-index: 9999;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}

.clearvectorprois_cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.clearvectorprois_cookie-banner-text {
  flex: 1;
  min-width: 300px;
}

.clearvectorprois_cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .clearvectorprois_cookie-banner-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .clearvectorprois_cookie-banner-actions {
    width: 100%;
    justify-content: center;
  }
}

/* Cookie Modal */
.clearvectorprois_cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.clearvectorprois_cookie-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.clearvectorprois_cookie-modal-content {
  position: relative;
  background: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
}

.cookie-toggles {
  margin: 2rem 0;
}

.clearvectorprois_cookie-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.clearvectorprois_cookie-toggle-row:last-child {
  border-bottom: none;
}

.clearvectorprois_cookie-modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .clearvectorprois_cookie-modal-actions {
    flex-direction: column;
  }
}

/* Footer */
.footer {
  background: transparent;
  border-top: 1px solid var(--border);
  color: var(--foreground);
  padding: 3rem 0 1rem 0;
}

.footer a {
  color: var(--primary);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo h3 {
  margin: 0;
}

.footer-tagline {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.link-group h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.link-group a {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-links {
  display: flex;
  gap: 2rem;
}

.legal-links a {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-legal {
    flex-direction: column;
    text-align: center;
  }
  
  .legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Final CTA */
.final-cta {
  position: relative;
  background: #111;
  color: #fff;
  padding: 7rem 0;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cta-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.cta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
}

.final-cta .cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.final-cta h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.final-cta p {
  color: #fff;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .btn-primary, .btn-outline {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .clearvectorprois_cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* === CLASS ALIAS FIXES (injected by engine) === */
.hero-text { /* alias for .hero-content */ }
.hero-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* === BASELINE SAFETY CSS (injected by engine) === */

/* Ensure .hidden works consistently even with ID-specific overrides */
.hidden { display: none !important; }

/* Prevent content overflow breaking layout */
img, video, iframe { max-width: 100%; height: auto; }
* { box-sizing: border-box; }

/* Ensure container has responsive padding */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

/* Prevent flex/grid children from overflowing */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Responsive grid fallbacks */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Ensure forms don't break layout */
.form-input, input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  max-width: 100%;
}

/* Success message styling */
.success-message {
  margin-top: 1rem;
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 0.5rem;
  color: #065f46;
  text-align: center;
}

/* Stacking context for hero sections — prevents z-index:-1 children from going behind the page */
.hero, .hero-section, .page-header, .cta, .cta-section { isolation: isolate; position: relative; }

/* Desktop nav injected by engine — show on desktop, hide on mobile */
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu .nav-link { text-decoration: none; color: var(--foreground, #1f2937); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu .nav-link:hover { color: var(--primary, #2563eb); }
@media (max-width: 768px) {
  .nav-menu { display: none !important; }
}

/* Fixed header body padding safety */
body { min-height: 100vh; }

/* Prevent long words breaking layout */
h1, h2, h3, h4, p, li, td, th { overflow-wrap: break-word; word-wrap: break-word; }

/* === END BASELINE SAFETY CSS === */

/* Cookie banner visibility rules */
#clearvectorprois_cookie-banner.hidden, #cookie-consent-banner.hidden { display: none !important; }
#clearvectorprois_cookie-banner:not(.hidden), #cookie-consent-banner:not(.hidden) { display: block !important; }
#clearvectorprois_cookie-modal.hidden { display: none !important; }
.hidden { display: none !important; }

/* ============ CLEARVECTORPROIS — REPAIR PATCH ============ */

/* 1. Навбар поверх hero — ссылки белые */
.header {
  background: rgba(0,0,0,0.3) !important;
  backdrop-filter: blur(10px);
}
.nav-link {
  color: #fff !important;
}
.nav-link:hover { color: rgba(255,255,255,0.8) !important; }
.logo-img { filter: brightness(0) invert(1); }

/* После скролла (JS добавляет .scrolled) — тёмный фон */
.header.scrolled {
  background: rgba(255,255,255,0.97) !important;
}
.header.scrolled .nav-link { color: var(--foreground) !important; }
.header.scrolled .logo-img { filter: none; }

/* 2. hero-overlay — чуть светлее чтобы текст не был на совсем чёрном */
.hero-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.35)) !important;
}

/* 3. hero-text — flex column, не grid */
.hero-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  grid-template-columns: unset !important;
}

/* 4. Mobile toggle */
[class*="mobile-menu-toggle"]{display:none!important;}
@media(max-width:767px){[class*="mobile-menu-toggle"]{display:flex!important;align-items:center;justify-content:center;}}

/* 5. Icon-box */
.icon-box{color:var(--primary);}
.icon-box i,.icon-box svg{color:var(--primary)!important;}

/* 6. Animation visibility */
.fade-in-up,.fade-in-left,.fade-in-right,.fade-in-down,.fade-in,.slide-in-left,.slide-in-right{opacity:1!important;transform:none!important;}

/* === MISSING CLASSES === */
.features-section{padding:5rem 0;}
.feature-content{padding:1.5rem;display:flex;flex-direction:column;gap:.75rem;}
.process-section{padding:5rem 0;background:var(--muted);}
.testimonials-section{padding:5rem 0;}
.categories-section{padding:5rem 0;background:var(--muted);}
.category-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;}
.faq-section{padding:5rem 0;}
.faq-cta{padding:4rem 0;text-align:center;background:var(--muted);}
.faq-links{display:flex;flex-direction:column;gap:.75rem;}
.faq-link-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;display:flex;align-items:center;gap:1rem;text-decoration:none;color:var(--foreground);transition:border-color .2s;}
.faq-link-card:hover{border-color:var(--primary);}
.why-choose-section{padding:5rem 0;background:var(--muted);}
.achievements{padding:5rem 0;}
.achievement-item{display:flex;align-items:flex-start;gap:1rem;margin-bottom:1rem;}
.about-text{display:flex;flex-direction:column;gap:1rem;}
.about-text h2{color:var(--foreground);}
.about-text p{color:var(--muted-foreground);line-height:1.7;}
.about-image{border-radius:var(--radius);overflow:hidden;height:380px;}
.about-image img{width:100%;height:100%;object-fit:cover;display:block;}
.story-text{display:flex;flex-direction:column;gap:1rem;color:var(--muted-foreground);}
.story-text h2{color:var(--foreground);}
.story-image{border-radius:var(--radius);overflow:hidden;height:380px;}
.story-image img{width:100%;height:100%;object-fit:cover;display:block;}
.intro-content{display:grid;grid-template-columns:1fr 1fr;gap:3rem;align-items:center;}
@media(max-width:768px){.intro-content{grid-template-columns:1fr;}}
.intro-text{display:flex;flex-direction:column;gap:1rem;color:var(--muted-foreground);}
.intro-text h2{color:var(--foreground);}
.intro-image{border-radius:var(--radius);overflow:hidden;height:380px;}
.intro-image img{width:100%;height:100%;object-fit:cover;display:block;}
.mission-values{padding:5rem 0;background:var(--muted);}
.mission-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:2rem;text-align:center;}
.value-card,.values-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;}
.hero-image{border-radius:var(--radius);overflow:hidden;}
.hero-image img{width:100%;height:100%;object-fit:cover;display:block;}
.service-text{display:flex;flex-direction:column;gap:1rem;color:var(--muted-foreground);}
.service-image{border-radius:var(--radius);overflow:hidden;height:320px;}
.service-image img{width:100%;height:100%;object-fit:cover;display:block;}
.author-info{display:flex;flex-direction:column;gap:.25rem;}
.cta-text h2{color:#fff!important;}
.cta-text p{color:rgba(255,255,255,.9)!important;}
.cta-actions{display:flex;gap:1rem;justify-content:center;flex-wrap:wrap;}
.logo{display:flex;align-items:center;gap:.5rem;text-decoration:none;font-weight:700;color:var(--foreground);}
.info-block{display:flex;flex-direction:column;gap:.5rem;}
.info-list{display:flex;flex-direction:column;gap:.4rem;}
.company-info{padding:5rem 0;background:var(--muted);}
.contact-info-container{display:flex;flex-direction:column;gap:1.5rem;}
.response-time{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;}
.team-intro{padding:5rem 0;}
.team-description{color:var(--muted-foreground);line-height:1.7;}
.team-members{padding:5rem 0;background:var(--muted);}
.team-values{padding:5rem 0;}
.team-preview{padding:5rem 0;background:var(--muted);}
.team-cta,.team-contact{padding:5rem 0;text-align:center;}
.join-team,.join-content{padding:5rem 0;}
.footer-column{display:flex;flex-direction:column;gap:.5rem;}
.footer-column h4{font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin-bottom:.5rem;}
.footer-contact-injected{margin-top:.5rem;}

/* ============ CLEARVECTORPROIS PATCH 2: hero + white-on-white ============ */

/* === HERO LAYOUT FIX === */
/* hero-content: текст слева, картинка справа */
.hero-content {
  position: relative;
  z-index: 2;
  display: grid !important;
  grid-template-columns: 1.1fr 0.9fr !important;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr !important; }
  .hero-image { display: none; }
}

/* hero-text — только текстовая колонка, flex */
.hero-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  grid-template-columns: unset !important;
  z-index: 3;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff !important;
  margin: 0;
}
.hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.9) !important;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* hero-image — картинка справа */
.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 420px;
}
.hero-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
}

/* hero overlay чуть светлее */
.hero-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%) !important;
}

/* === CTA SECTION === */
/* cta-section теперь исключён из nth-child, но сам дизайн — карточка */
.cta-section {
  background: var(--card) !important;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  margin: 2rem auto;
  max-width: 1000px;
  padding: 3rem;
  text-align: center;
  color: var(--foreground) !important;
}
.cta-text h2 { color: var(--foreground) !important; }
.cta-text p  { color: var(--muted-foreground) !important; }

/* === FEATURE CARDS === */
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 0.75rem;
}
.feature-card img.feature-image, .feature-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 0.5rem;
}
.feature-card h3, .feature-title {
  color: var(--foreground);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}
.feature-card p, .feature-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

/* === TESTIMONIALS === */
.testimonial-text p { color: var(--muted-foreground); line-height: 1.7; }
.author-name { font-weight: 600; color: var(--foreground); font-size: 0.9rem; }
.author-role { color: var(--muted-foreground); font-size: 0.8rem; }

/* === STATS - гарантируем белый текст === */
.stats-section {
  background: var(--primary) !important;
  color: var(--primary-foreground) !important;
  padding: 5rem 0 !important;
}
.stats-section .stat-number,
.stats-section .stat-value { color: #fff !important; }
.stats-section .stat-label  { color: rgba(255,255,255,0.85) !important; }

/* === FINAL CTA === */
.final-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: #fff !important;
  padding: 5rem 0 !important;
}
.final-cta h2, .final-cta p { color: #fff !important; }
.final-cta .btn-outline {
  color: #fff !important;
  border-color: rgba(255,255,255,0.7) !important;
  background: transparent !important;
}

/* Grid-3 на 769-1024px — 3 колонки */
@media (min-width: 769px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr) !important; }
}
