/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Website Header */
.header {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.logo p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

/* Navigation Links */
.navigation a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s;
  display: inline-flex;
  align-items: center;
}
/* Стили для иконки в меню */
.navigation a i {
  margin-right: 8px; /* Отступ между иконкой и текстом */
  font-size: 0.9rem;
  transition: transform 0.3s;
}

.navigation a:hover {
  background: rgba(255, 255, 255, 0.2);
}
.navigation a:hover i {
  transform: scale(1.2); /* Иконка увеличивается при наведении */
}

/* Hero Section */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(44, 62, 80, 0.8), rgba(52, 152, 219, 0.8)),
    url("images/background.jpg") center 65% / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content {
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-content h2 {
  text-align: center;
  width: 100%;
}

.hero-content p {
  text-align: center;
  width: 100%;
  max-width: 600px;
}

.btn-primary {
  background: #3498db;
  color: white;
  padding: 1rem 3rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin-top: 1rem;
  text-align: center;
}

.btn-primary:hover {
  background: #c0392b;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(231, 76, 60, 0.4);
}

/* Sections */
section {
  padding: 5rem 0;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #221c1c;
}

/* About Us */
.about {
  background: #f8f9fa;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
}

/* Services */
.services {
  background: linear-gradient(135deg, #2c3e50, #3498db);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card h3 {
  color: #3498db;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Advantages */
.advantages {
  background: #f8f9fa;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.advantage-item {
  text-align: center;
  padding: 2rem;
}

.advantage-item h3 {
  color: #e74c3c;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* Contact */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h3,
.contact-form h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3498db;
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  color: white;
  padding: 0 0 2rem;
  position: relative;
  margin-top: 4rem;
}

/* Графическая волна */
.footer-wave {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: rotate(180deg);
}

.footer-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

.footer-wave path {
  fill: linear-gradient(
    135deg,
    #2c3e50,
    #3498db
  ); /* Цвет должен совпадать с началом градиента */
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
  padding-top: 3rem;
}

/* Иконки заголовков */
.footer-icon {
  font-size: 2rem;
  color: #3498db;
  margin-bottom: 1rem;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.footer-column:hover .footer-icon {
  background: #3498db;
  color: white;
  transform: rotateY(180deg);
}

.footer-column h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: #ecf0f1;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.footer-column p {
  color: #bdc3c7;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* Социальные иконки */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s;
}

.social-links a:hover {
  background: #3498db;
  transform: translateY(-3px);
}

/* Ссылки */
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column ul li a {
  color: #bdc3c7;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
}

.footer-column ul li a i {
  margin-right: 8px;
  font-size: 0.8rem;
  color: #3498db;
  transition: all 0.3s;
}

.footer-column ul li a:hover {
  color: white;
  padding-left: 10px;
}

.footer-column ul li a:hover i {
  color: #3498db;
}

/* Контактная информация */
.contact-info p {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.contact-info p i {
  margin-right: 15px;
  color: #3498db;
  margin-top: 5px;
}

/* Нижняя часть */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: #95a5a6;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer {
    padding: 0 0 2rem;
  }

  .footer-wave {
    top: -40px;
  }
}

/* Responsive for Footer */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer {
    padding: 3rem 0 2rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }

  .navigation ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 0;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card,
.advantage-item {
  animation: fadeInUp 0.6s ease-out;
}
/* About & Advantages Combined */
.about-advantages {
  background: #f8f9fa;
  padding: 5rem 0;
}

.about-advantages-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 4rem;
  align-items: center;
}

.text-content h2 {
  text-align: left;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2c3e50;
}

.text-content h3 {
  text-align: left;
  font-size: 2rem;
  margin: 3rem 0 2rem 0;
  color: #2c3e50;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.8;
}

.advantages-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.advantage-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.advantage-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.advantage-item h4 {
  color: #3498db;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.advantage-item p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 968px) {
  .about-advantages-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .image-content {
    order: -1;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .text-content h2,
  .text-content h3 {
    text-align: center;
  }
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #3498db;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}
/* Hero Section Alignment */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content * {
  max-width: 100%;
}

.btn-primary {
  min-width: 200px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.image-content {
  perspective: 1000px;
}

.image-content img {
  width: 170%;
  height: 700px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
}

.image-content img:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}
/* CTA Section Styles */
.cta-section {
  background: linear-gradient(135deg, #2c3e50, #3498db);
  padding: 5rem 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

/* Декоративные элементы фона */
.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 60%
  );
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-section p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 3rem auto;
  opacity: 0.95;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: white;
  color: #3498db;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn i {
  font-size: 1.1rem;
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  background: #f8f9fa;
  color: linear-gradient(135deg, #2c3e50, #3498db);
}

/* Адаптивность */
@media (max-width: 768px) {
  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-section p {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .cta-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}
/* Stats Section Styles */
.stats-section {
  padding: 5rem 0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Декоративный фон */
.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(52, 152, 219, 0.05) 0%,
      transparent 20%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(52, 152, 219, 0.05) 0%,
      transparent 20%
    );
  z-index: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  border-radius: 15px;
  transition: transform 0.3s;
}

.stat-item:hover {
  transform: translateY(-5px);
}

/* Иконки */
.stat-icon {
  font-size: 3.5rem;
  color: #3498db;
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* Анимация движения иконок */
.stat-icon {
  animation: float 3s ease-in-out infinite;
}

/* Задержка анимации для каждого элемента */
.stat-item:nth-child(1) .stat-icon {
  animation-delay: 0s;
}
.stat-item:nth-child(2) .stat-icon {
  animation-delay: 0.2s;
}
.stat-item:nth-child(3) .stat-icon {
  animation-delay: 0.4s;
}
.stat-item:nth-child(4) .stat-icon {
  animation-delay: 0.6s;
}

@keyframes float {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-15px) scale(1.05);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

/* Текст */
.stat-content h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-content p {
  font-size: 1.1rem;
  color: #7f8c8d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Адаптивность */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .stats-section {
    padding: 3rem 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stat-icon {
    font-size: 3rem;
  }

  .stat-content h3 {
    font-size: 2rem;
  }
}
/* Анимация для главной секции (только то, что нужно) */

/* Заголовок */
.hero-content h2 {
  opacity: 0; /* Сначала невидимый */
  animation: fadeInUp 1s ease forwards; /* Анимация появления */
  animation-delay: 0.3s; /* Задержка 0.3 сек */
}

/* Текст под заголовком */
.hero-content p {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.6s; /* Задержка 0.6 сек (появится после заголовка) */
}

/* Кнопка Get Consultation */
.hero-content .btn-primary {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.9s; /* Задержка 0.9 сек (появится последней) */
}

/* Сама анимация (выезд снизу) */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px); /* Положение ниже на 30 пикселей */
  }
  to {
    opacity: 1;
    transform: translateY(0); /* Возвращение на место */
  }
}
/* СИСТЕМА АНИМАЦИИ ПРИ СКРОЛЛЕ */

.reveal {
  opacity: 0; /* Сначала невидимый */
  transform: translateY(40px); /* Сдвинут вниз */
  transition: all 0.8s ease; /* Плавность появления */
}

.reveal.active {
  opacity: 5; /* Становится видимым */
  transform: translateY(0); /* Возвращается на место */
}
