:root {
  /* Монохромная цветовая схема */
  --primary: #333333;
  --primary-dark: #222222;
  --primary-light: #555555;
  --secondary: #7a7a7a;
  --accent: #111111;
  --light: #f5f5f5;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Переходы и анимации */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Радиусы */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Размеры */
  --header-height: 80px;
  --content-width: 1200px;
}

/* Общие стили */
body {
  font-family: 'Merriweather', serif;
  color: var(--primary);
  background-color: var(--white);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
}

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

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

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

section {
  padding: 5rem 0;
  position: relative;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* Кнопки */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transition: width var(--transition-normal);
}

.btn:hover::after {
  width: 100%;
}

.btn-dark {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn-dark:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.btn-outline-dark {
  background-color: transparent;
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.btn-outline-dark:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

.btn-light {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--primary-dark);
}

.btn-light:hover {
  background-color: var(--gray-200);
  border-color: var(--gray-200);
  color: var(--primary-dark);
}

.btn-outline-light {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-light:hover {
  background-color: var(--white);
  color: var(--primary-dark);
}

/* Хедер */
header {
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

header.scrolled {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.navbar {
  padding: 1rem 0;
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--white);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  transform: scale(1);
  transition: transform 10s var(--transition-slow);
}

.hero-section:hover .hero-bg {
  transform: scale(1.05);
}

.overlay {
  z-index: -1;
}

.hero-content {
  max-width: 700px;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--white);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out 0.2s;
  animation-fill-mode: both;
}

.hero-cta {
  animation: fadeInUp 1s ease-out 0.4s;
  animation-fill-mode: both;
}

/* Services Section */
.services-section {
  background-color: var(--white);
}

.services-section h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 3rem;
}

.services-section h2::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.card {
  border: none;
  border-radius: 0;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-img-top {
  transition: transform var(--transition-normal);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-content {
  flex: 1;
  width: 100%;
}

.progress {
  height: 8px;
  border-radius: 0;
  background-color: var(--gray-200);
}

.progress-bar {
  background-color: var(--primary);
  transition: width 1.5s ease;
}

/* Products Section */
.products-section {
  background-color: var(--light);
}

.color-options {
  display: flex;
  gap: 8px;
}

.color-option {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.color-option:hover {
  transform: scale(1.2);
}

.badge {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 0;
}

/* Media Section */
.media-section {
  background-color: var(--white);
}

/* Resources Section */
.resources-section {
  background-color: var(--light);
}

/* Case Studies Section */
.case-studies-section {
  background-color: var(--white);
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: var(--gray-400);
  left: 0;
  top: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary);
  left: -36px;
  top: 6px;
}

.timeline-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  display: block;
  margin-bottom: 5px;
}

/* Blog Section */
.blog-section {
  background-color: var(--light);
}

.blog-section .card-img-top {
  height: 250px;
}

.text-muted {
  font-size: 0.875rem;
}

/* Careers Section */
.careers-section {
  background-color: var(--white);
}

.requirements {
  background-color: var(--gray-100);
  padding: 15px;
  border-left: 3px solid var(--primary);
}

.requirements h4 {
  margin-bottom: 10px;
}

.requirements ul {
  padding-left: 20px;
  margin-bottom: 0;
}

/* Contact Section */
.contact-section {
  background-color: var(--light);
}

.form-control {
  border-radius: 0;
  border: 1px solid var(--gray-400);
  padding: 12px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(51, 51, 51, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-label {
  font-weight: 500;
}

.contact-info {
  margin-bottom: 2rem;
}

.icon {
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 5rem 0 2rem;
}

footer h3, footer h4, footer h5 {
  color: var(--white);
}

footer a {
  color: var(--white);
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

footer a:hover {
  color: var(--gray-400);
  text-decoration: none;
  transform: translateX(5px);
}

.social-links a {
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.social-links a:hover {
  opacity: 0.8;
  transform: none;
}

/* Дополнительные страницы */
.page-content {
  padding-top: 120px;
  padding-bottom: 60px;
}

.about-page,
.privacy-page,
.terms-page,
.contacts-page {
  padding-top: 100px;
}

/* Success Page */
.success-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

.success-page .card {
  max-width: 600px;
  border: none;
  box-shadow: var(--shadow-lg);
}

.success-icon {
  font-size: 5rem;
  color: green;
  margin-bottom: 2rem;
}

/* Cookie Consent */
#cookieConsent {
  font-family: 'Montserrat', sans-serif;
}

#cookieAccept {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

#cookieAccept:hover {
  background-color: var(--gray-200);
}

/* Микроанимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Адаптивность */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  section {
    padding: 3rem 0;
  }
  
  .card-img-top {
    height: 250px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  section {
    padding: 2.5rem 0;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}