:root {
  /* Основная цветовая палитра */
  --primary-color: #FF5252;
  --primary-dark: #E53935;
  --primary-light: #FF8A80;
  
  --secondary-color: #536DFE;
  --secondary-dark: #3D5AFE;
  --secondary-light: #8C9EFF;
  
  --accent-color: #FFD54F;
  --accent-dark: #FFC107;
  --accent-light: #FFE082;
  
  /* Нейтральные цвета */
  --dark: #212121;
  --dark-medium: #424242;
  --medium: #757575;
  --light-medium: #BDBDBD;
  --light: #F5F5F5;
  --white: #FFFFFF;
  
  /* Функциональные цвета */
  --success: #66BB6A;
  --info: #29B6F6;
  --warning: #FFA726;
  --danger: #EF5350;
  
  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
  --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  
  /* Тени */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  
  /* Радиусы */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Переходы */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Параметры сетки */
  --grid-distortion: 3deg;
  --grid-skew: -5deg;
}

/* Глобальные стили и сброс */
html, body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  background-color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.display-2 {
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-title {
  position: relative;
  margin-bottom: 2rem;
  color: var(--dark);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) skewX(var(--grid-skew));
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
}

p {
  margin-bottom: 1.5rem;
}

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

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

img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* Навигация */
header {
  transition: background-color var(--transition-medium);
  z-index: 1000;
}

.navbar {
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  transition: all var(--transition-medium);
}

.navbar.scrolled {
  background-color: var(--dark);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
}

.navbar-brand {
  color: var(--primary-light);
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
}

.navbar-brand::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -10px;
  width: 40px;
  height: 40px;
  background-color: var(--accent-light);
  border-radius: 50%;
  z-index: -1;
  opacity: 0.3;
  transform: rotate(var(--grid-distortion));
}

.nav-link {
  color: var(--white) !important;
  font-weight: 600;
  margin: 0 0.5rem;
  padding: 0.5rem 0.75rem !important;
  position: relative;
  transition: all var(--transition-fast);
}

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

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

.navbar-toggler {
  border: none;
}

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

/* Кнопки - глобальные стили */
.btn {
  position: relative;
  padding: 0.6rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  overflow: hidden;
  z-index: 1;
  transition: all var(--transition-medium);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
  transition: all var(--transition-fast);
}

.btn:hover::before {
  left: 0;
}

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

.btn-primary:hover, .btn-primary:focus {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4);
}

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

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

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

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4);
}

.animated-btn {
  transition: transform var(--transition-fast);
}

.animated-btn:hover {
  transform: translateY(-5px);
}

/* Hero секция */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-section::before {
  content: '';
  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.4));
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Parallax эффект */
.parallax-section {
  background-attachment: fixed;
}

/* Features секция */
.features-section {
  position: relative;
  padding: 5rem 0;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-color: var(--accent-light);
  opacity: 0.1;
  border-radius: 50%;
  transform: translate(100px, -150px) rotate(var(--grid-distortion));
  z-index: -1;
}

.feature-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

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

.card-image img {
  transition: transform var(--transition-medium);
  width: 100%;
  height: 250px;
  object-fit: cover;
}

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

.card-content {
  padding: 2rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.progress-wrapper {
  height: 6px;
  background-color: var(--light-medium);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
}

/* About секция */
.about-section {
  position: relative;
  padding: 5rem 0;
}

.image-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.image-container::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100px;
  height: 100px;
  background-color: var(--primary-light);
  opacity: 0.2;
  border-radius: var(--radius-sm);
  transform: rotate(var(--grid-distortion));
  z-index: -1;
}

.image-container::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  background-color: var(--accent-light);
  opacity: 0.2;
  border-radius: var(--radius-lg);
  transform: rotate(calc(var(--grid-distortion) * -1));
  z-index: -1;
}

.image-container img {
  transition: transform var(--transition-slow);
}

.image-container:hover img {
  transform: scale(1.03);
}

/* Sustainability секция */
.sustainability-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 5rem 0;
  color: var(--white);
}

.sustainability-section .overlay {
  background-color: rgba(0, 0, 0, 0.7);
}

.sustainability-content {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.progress-indicators .progress {
  height: 8px;
  background-color: var(--light-medium);
  border-radius: var(--radius-sm);
}

.progress-indicators .progress-bar {
  background: var(--gradient-secondary);
}

.progress-item span {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Statistics секция */
.statistics-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.statistics-section::before {
  content: '';
  position: absolute;
  left: -150px;
  bottom: -150px;
  width: 300px;
  height: 300px;
  background-color: var(--secondary-light);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  height: 100%;
}

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

.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.stat-title {
  font-weight: 600;
  color: var(--dark-medium);
  margin-bottom: 0;
}

/* Testimonials секция */
.testimonials-section {
  padding: 5rem 0;
  position: relative;
}

.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-slide {
  padding: 1rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.testimonial-card .card-image {
  margin-top: 2rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.testimonial-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-text {
  font-style: italic;
  color: var(--dark-medium);
  margin-bottom: 1.5rem;
  position: relative;
  padding: 0 1.5rem;
}

.testimonial-text::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 0;
  font-size: 3rem;
  color: var(--primary-light);
  opacity: 0.3;
  font-family: Georgia, serif;
}

.testimonial-author {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.testimonial-position {
  color: var(--medium);
  font-size: 0.9rem;
}

.stars {
  color: var(--accent-color);
  font-size: 1.2rem;
}

.testimonial-controls button {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.testimonial-controls button:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Clients секция */
.clients-section {
  padding: 5rem 0;
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.client-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}

.client-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.client-card img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter var(--transition-medium);
}

.client-card:hover img {
  filter: grayscale(0%);
}

/* Awards секция */
.awards-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.award-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: transform var(--transition-medium);
  margin-bottom: 2rem;
}

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

.award-image {
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium);
}

.award-card:hover .award-image img {
  transform: rotate(var(--grid-distortion));
}

.award-content h3 {
  margin-bottom: 1rem;
  color: var(--dark);
}

/* Press секция */
.press-section {
  padding: 5rem 0;
}

.press-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.press-card .card-image {
  overflow: hidden;
}

.press-card .card-image img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

.press-source {
  color: var(--medium);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Resources секция */
.resources-section {
  padding: 5rem 0;
}

.resource-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.resource-card .card-image {
  overflow: hidden;
}

.resource-card .card-image img {
  transition: transform var(--transition-slow);
  width: 100%;
  height: 220px;
  object-fit: cover;
}

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

/* Contact секция */
.contact-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 300px;
  height: 300px;
  background-color: var(--primary-light);
  opacity: 0.1;
  border-radius: 50%;
  z-index: -1;
}

.contact-info {
  position: relative;
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.contact-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.contact-list li i {
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--primary-color);
}

.contact-form-wrapper {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 1;
  height: 100%;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 100px;
  height: 100px;
  background-color: var(--accent-light);
  opacity: 0.2;
  border-radius: var(--radius-sm);
  transform: rotate(var(--grid-distortion));
  z-index: -1;
}

.form-control {
  border: 2px solid var(--light-medium);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.social-links {
  margin-top: 2rem;
}

.social-link {
  display: inline-block;
  margin-right: 1rem;
  color: var(--dark);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.social-link:hover {
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  left: -100px;
  top: -100px;
  width: 300px;
  height: 300px;
  background-color: var(--primary-color);
  opacity: 0.05;
  border-radius: 50%;
}

.footer-title {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 1rem;
}

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

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.footer .social-links a {
  color: var(--light);
  margin-right: 1.5rem;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.footer .social-links a:hover {
  color: var(--primary-light);
}

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

.success-content {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
}

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

/* Privacy & Terms Pages */
.privacy-content, .terms-content {
  padding-top: 100px;
  padding-bottom: 5rem;
}

.privacy-content h2, .terms-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.slide-in-up {
  animation: slideInUp 0.8s ease forwards;
}

.pulse {
  animation: pulse 2s infinite;
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .award-card {
    flex-direction: column;
  }
  
  .award-image {
    margin-bottom: 1.5rem;
    flex: auto;
  }
  
  .contact-info, .contact-form-wrapper {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section {
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .stats-container {
    flex-direction: column;
  }
  
  .client-card {
    height: 100px;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .contact-form-wrapper, .contact-info {
    padding: 1.5rem;
  }
}

/* Utility classes */
.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
}

.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.skewed-bg {
  transform: skewY(var(--grid-skew));
}

.unskewed-content {
  transform: skewY(calc(var(--grid-skew) * -1));
}

/* Icon styles for footer and contact */
.icon-location, .icon-phone, .icon-mail {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  margin-right: 10px;
  text-align: center;
  line-height: 20px;
  color: white;
  font-size: 12px;
}

.icon-location:before {
  content: "📍";
}

.icon-phone:before {
  content: "📞";
}

.icon-mail:before {
  content: "✉️";
}

/* Стили для "Читать далее" ссылок */
.read-more {
  display: inline-block;
  font-weight: 600;
  color: var(--primary-color);
  transition: all var(--transition-fast);
  position: relative;
  padding-right: 22px;
}

.read-more::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 0;
  transition: transform var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover::after {
  transform: translateX(5px);
}