/* Общие стили */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --accent-color: #f39c12;
  --dark-text: #2c3e50;
  --light-text: #ecf0f1;
  --light-bg: #f9f9f9;
  --dark-bg: #34495e;
  --section-padding: 60px 0;
  --transition: all 0.3s ease;
  --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, #3498db, #2ecc71);
  --gradient-secondary: linear-gradient(135deg, #2c3e50, #3498db);
}

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

body {
  font-family: 'Roboto', 'Arial', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  background-color: var(--light-bg);
}

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

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

h1, h2, h3, h4, h5 {
  margin-bottom: 1rem;
  font-weight: 700;
}

p {
  margin-bottom: 1.5rem;
}

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

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--gradient-primary);
  color: var(--light-text);
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
  color: var(--light-text);
}

.btn-secondary {
  background: var(--gradient-secondary);
  box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

.btn-secondary:hover {
  box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
}

.section {
  padding: var(--section-padding);
}

/* Анимации */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes fadeIn {
  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);
  }
}

@keyframes gradientBg {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animated {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.float {
  animation: float 6s ease-in-out infinite;
}

.pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* Шапка */
.header {
  position: sticky;
  top: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  padding: 15px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.logo-icon {
  margin-right: 10px;
  font-size: 2rem;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  font-weight: 600;
  color: var(--dark-text);
  position: relative;
  padding: 5px 0;
}

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

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

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-color);
}

/* Hero секция */
.hero {
  background: var(--gradient-secondary);
  background-size: 200% 200%;
  animation: gradientBg 15s ease infinite;
  padding: 120px 0 100px;
  text-align: center;
  color: var(--light-text);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Особенности */
.features {
  padding: var(--section-padding);
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  position: relative;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-primary);
}

.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
  color: var(--primary-color);
}

.feature-title {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Услуги */
.services {
  padding: var(--section-padding);
  background-color: var(--light-bg);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: var(--gradient-primary);
  color: var(--light-text);
}

.service-content {
  padding: 30px;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

/* О компании */
.about {
  padding: var(--section-padding);
  background-color: white;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  position: relative;
}

.about-img-bg {
  position: absolute;
  top: -20px;
  left: -20px;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: var(--gradient-primary);
  z-index: -1;
}

.about-img img {
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.about-content h2 {
  margin-bottom: 30px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  background-color: var(--light-bg);
  padding: 20px;
  border-radius: 10px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* Как мы работаем */
.process {
  padding: var(--section-padding);
  background-color: var(--light-bg);
}

.process-container {
  max-width: 900px;
  margin: 0 auto;
}

.process-steps {
  position: relative;
}

.process-steps:before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background: var(--primary-color);
}

.process-step {
  position: relative;
  padding-left: 60px;
  margin-bottom: 50px;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light-text);
  font-weight: bold;
  z-index: 1;
}

.step-title {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

/* Отзывы */
.testimonials {
  padding: var(--section-padding);
  background-color: white;
}

.testimonials-container {
  max-width: 900px;
  margin: 0 auto;
}

.testimonial {
  background-color: var(--light-bg);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--light-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 15px;
}

.author-info h4 {
  margin-bottom: 5px;
}

.author-info p {
  opacity: 0.7;
  margin: 0;
}

/* Контакты */
.contacts {
  padding: var(--section-padding);
  background-color: var(--light-bg);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-info {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.5rem;
  margin-right: 15px;
  color: var(--primary-color);
}

.contact-text h4 {
  margin-bottom: 5px;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  height: 400px;
  background-color: #eee;
}

/* CTA секция */
.cta {
  padding: var(--section-padding);
  background: var(--gradient-secondary);
  color: var(--light-text);
  text-align: center;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta p {
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 0.9;
}

/* Подвал */
.footer {
  background-color: var(--dark-bg);
  color: var(--light-text);
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: var(--light-text);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-menu a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  background-color: rgba(255, 255, 255, 0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--light-text);
}

.social-icon:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Адаптивность */
@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
  }
  
  .about-img {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    height: calc(100vh - 70px);
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    transition: var(--transition);
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 0 0 30px 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  
  .about-img-bg {
    display: none;
  }
}

/* Кастомный скроллбар */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Уникальные стили для проекта */
.energy-pulse {
  position: relative;
  overflow: hidden;
}

.energy-pulse::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.energy-pulse:hover::before {
  animation: ripple 1.5s ease-out;
}

@keyframes ripple {
  0% {
    opacity: 1;
    width: 0;
    height: 0;
  }
  100% {
    opacity: 0;
    width: 300px;
    height: 300px;
  }
}

.light-effect {
  position: relative;
}

.light-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.light-effect:hover::after {
  left: 100%;
}

.glow-border {
  position: relative;
  z-index: 1;
}

.glow-border::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: var(--gradient-primary);
  z-index: -1;
  filter: blur(5px);
  opacity: 0;
  transition: var(--transition);
  border-radius: 12px;
}

.glow-border:hover::before {
  opacity: 1;
}

/* Технологические иконки с градиентом */
.tech-icon {
  display: inline-flex;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-right: 20px;
  box-shadow: var(--box-shadow);
  position: relative;
  overflow: hidden;
}

.tech-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.tech-icon i {
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.tech-icon:hover::before {
  opacity: 1;
}

.tech-icon:hover i {
  color: white;
}

/* Цифровые линии (имитация электрических соединений) */
.digital-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.1;
}

.digital-line {
  position: absolute;
  background: var(--primary-color);
}

.digital-line-h {
  height: 1px;
  width: 100%;
}

.digital-line-v {
  width: 1px;
  height: 100%;
}

.digital-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-color);
  animation: pulse 2s infinite;
}

/* Карточки проектов */
.projects {
  padding: var(--section-padding);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-img {
  height: 200px;
  background-color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--light-text);
}

.project-content {
  padding: 30px;
}

.project-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-tag {
  background-color: var(--light-bg);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
}

/* Уникальные анимации для энергетической тематики */
.energy-flow {
  position: relative;
  overflow: hidden;
}

.energy-flow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: energyFlow 2s linear infinite;
}

@keyframes energyFlow {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.connection-points {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-color);
  animation: connectionPulse 2s ease-in-out infinite;
}

@keyframes connectionPulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}