/* Общие стили */
body {
  margin: 0;
  font-family: Inter, sans-serif;
/*  background: url('./img/general-fon.img') no-repeat center center/cover;*/
  color: #D1D1D1;
  text-align: center;
}

h2 {
  font-family: Montserrat, sans-serif;
  font-size: 36px;
  font-weight: bold;
  color: #5AFFFF;
}

/* Стиль для логотипа */
.logo {
  margin-right: 20px; /* Отодвигаем логотип влево */
	padding-left: 20px; /* Добавляем отступ слева */
}

.logo img {
    height: 60px !important; /* Высота логотипа */
}

/* Навигационное меню */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #050B25;
  padding: 15px 0;
  transition: background 0.3s;
  z-index: 1000;
}

.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.navbar-logo {
  flex-shrink: 0;
  margin-left: 20px;
}

.navbar-logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

.navbar-logo img:hover {
  transform: scale(1.05);
}

.navbar-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Стиль для контейнера меню */
.menu-container {
  flex-grow: 1; /* Занимает оставшееся пространство */
  text-align: center; /* Центрируем содержимое внутри контейнера */
}

.navbar.transparent {
  background: rgba(13, 13, 13, 0.7);
}

.navbar nav ul {
  list-style: none;
  display: inline-flex; /* Сделаем меню строчно-блочным */
  justify-content: center;
  margin: 0;
  padding: 0;
}

.navbar nav ul li {
  margin: 0 20px;
}

.navbar nav ul li a {
  text-decoration: none;
  color: #63FDFF;
  font-size: 18px;
  transition: color 0.3s ease;
}

.navbar nav ul li a:hover {
  color: #2db9f5;
}

.navbar-cta {
  flex-shrink: 0;
  margin-right: 20px;
}

.navbar-cta-button {
  background-color: #FACC15;
  color: #0D0D0D;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.navbar-cta-button:hover {
  background-color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

/* Кнопка-бургер для мобильного меню */
.navbar-burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.navbar-burger span {
  width: 25px;
  height: 3px;
  background-color: #5AFFFF;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Анимация бургера при открытии */
.navbar-burger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.navbar-burger.active span:nth-child(2) {
  opacity: 0;
}

.navbar-burger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Скрываем мобильную CTA кнопку на десктопе по умолчанию */
.mobile-cta {
  display: none;
}

/* Стили для мобильной CTA кнопки */
.mobile-cta-button {
  background-color: #FACC15;
  color: #0D0D0D;
  border: none;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.mobile-cta-button:hover {
  background-color: #FFD700;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

/* Стиль для кнопки */
.modal-button {
    background-color: #FACC15; /* Цвет фона */
    color: #0D0D0D; /* Цвет текста */
    border: none; /* Убираем границы */
    padding: 8px 16px; /* Внутренние отступы */
    font-size: 12px; /* Размер шрифта */
    cursor: pointer; /* Изменение курсора при наведении */
    border-radius: 4px; /* Закругление углов */
    margin-left: auto; /* Перемещаем кнопку вправо */
    margin-right: 20px; /* Отступ справа */
	transition: color 0.3s ease;
}

.modal-button:hover {
  background-color: #FFD700;
}

/* Секция Hero */
.hero-block {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

 .hero-block::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../img/general-fon.jpg'); 
  background-size: cover;  /* Растягивает изображение по размеру блока */
  background-position: center center; /* Центрирует изображение */
  background-repeat: no-repeat; /* Отключает повторение */
  background-attachment: fixed;
  filter: brightness(0.6);
  z-index: -1;
  /*  background: linear-gradient(135deg, #1F1F1F, #0D0D0D);
  background: url('./img/general-fon.img') no-repeat center center/cover; 
  background-attachment: fixed; /* Фиксирует фон при прокрутке */
 }

.hero-section {
  /*display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;*/
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  z-index: 1;
}
/*
.hero-section::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%; */
/*  background: url('./img/general-fon.jpg') no-repeat center center/cover;*/
/*  opacity: 0.2;
  z-index: 1;
}*/

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  display: inline-block;
}

.hero-head {
  text-align: left;
  max-width: 800px;
}

.hero-head p {
  max-width: 560px;
  color: #56FFFB; /* #E1E1E1;*/
}

.hero-image {
  max-width: 560px;
  display: block;
  margin: 0 auto;
  position: relative;
  opacity: 0.87;
  z-index: 1;
}

.hero-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 40%, rgba(0,0,0,0.8));
  z-index: 2;
  pointer-events: none;
}
/*
.hero-descript {
  padding: 16px 0;
  background-image: url("../img/header-mask-40.png");
  background-size: contain;  * Растягивает изображение по размеру блока *
  background-position: left; * Центрирует изображение *
  background-repeat: no-repeat; * Отключает повторение *
}
*/
h1 {
  font-family: Montserrat, sans-serif;
  font-size: 64px;
  font-weight: bold;
  color: #E82AE7;
}

.hero-head h2 {
  font-family: Montserrat, sans-serif;
  font-size: 36px;
  font-weight: bold;
  color: #5AFFFF;
}

p {
  font-size: 18px;
  line-height: 1.6;
  color: #E1E1E1;
}

.cta-button {
  background-color: #FACC15;
  color: #0D0D0D;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 24px;
}

.cta-button:hover {
  background-color: #FFD700;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: url('../img/phone_cards.jpg') no-repeat center center/cover;
  position: relative;
  margin: 5% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(5, 11, 37, 0.9);
  border-radius: 20px;
  z-index: 1;
}

.modal-content * {
  position: relative;
  z-index: 2;
}

.modal-content h2 {
  color: #5AFFFF;
  text-align: center;
  margin-bottom: 30px;
  font-size: 28px;
}

.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-content input {
  padding: 15px;
  border: 2px solid rgba(90, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(5, 11, 37, 0.8);
  color: #E1E1E1;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.modal-content input:focus {
  outline: none;
  border-color: #5AFFFF;
}

.modal-content input::placeholder {
  color: #888;
}

/* Стили для полей телефона */
.phone-input {
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.phone-input.error {
  border-color: #F44336 !important;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.modal-content button {
  padding: 15px;
  background-color: #5AFFFF;
  color: #050B25;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button:hover {
  background-color: #63FDFF;
}

.modal-content .form-agreement {
  font-size: 12px;
  line-height: 1.4;
  color: #888;
  text-align: center;
  margin: 0;
}

.modal-content .form-agreement a {
  color: #5AFFFF;
  text-decoration: none;
}

.modal-content .form-agreement a:hover {
  text-decoration: underline;
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #5AFFFF;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 3;
  transition: color 0.3s ease;
}

.close:hover {
  color: #63FDFF;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    padding: 30px 20px;
    width: 95%;
  }
  
  .modal-content h2 {
    font-size: 24px;
  }
}

/* Модальное окно для сообщений */
.message-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.message-modal-content {
  background: url('../img/phone_cards.jpg') no-repeat center center/cover;
  position: relative;
  margin: 10% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.message-modal-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(5, 11, 37, 0.9);
  border-radius: 20px;
  z-index: 1;
}

.message-modal-content * {
  position: relative;
  z-index: 2;
}

.message-content {
  text-align: center;
}

.message-content h3 {
  color: #5AFFFF;
  margin-bottom: 20px;
  font-size: 24px;
}

.message-content p {
  color: #E1E1E1;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 30px;
}

.message-close-btn {
  padding: 15px 30px;
  background-color: #5AFFFF;
  color: #050B25;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.message-close-btn:hover {
  background-color: #63FDFF;
}

/* Адаптивность для модального окна сообщений */
@media (max-width: 768px) {
  .message-modal-content {
    margin: 15% auto;
    padding: 30px 20px;
    width: 95%;
  }
  
  .message-content h3 {
    font-size: 20px;
  }
}

/*  Секция Tasks-block  */
/*.tasks-block {
  height: 720px;
}*/
.tasks-block {
  padding: 80px 20px;
  text-align: center;
  background-color: #0C284D; 
}

/*.tasks-block h2 {
  font-size: 32px;
  margin-bottom: 40px;
  font-family: Montserrat, sans-serif;
  color: #10133A;
}*/

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 80px auto;
}

.task-item {
  background-color: #10133A;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: #D1D1D1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.task-item img {
  width: 270px;
  height: 270px;
  margin: 30px;
}

.task-item p {
  font-size: 20px;
  line-height: 1.5;
}

@media (min-width: 1200px) {
  .tasks-grid {
    grid-template-columns: repeat(3, 1fr); /* максимум 3 карточки в ряд */
  }
  
  /* Анимация для верхнего ряда карточек */
  .task-item:nth-child(1):hover {
    transform: translate(-5px, -5px); /* влево и вверх */
  }
  
  .task-item:nth-child(2):hover {
    transform: translateY(-5px); /* только вверх */
  }
  
  .task-item:nth-child(3):hover {
    transform: translate(5px, -5px); /* вправо и вверх */
  }
  
  /* Анимация для нижнего ряда карточек */
  .task-item:nth-child(4):hover {
    transform: translate(-5px, 5px); /* влево и вниз */
  }
  
  .task-item:nth-child(5):hover {
    transform: translateY(5px); /* только вниз */
  }
  
  .task-item:nth-child(6):hover {
    transform: translate(5px, 5px); /* вправо и вниз */
  }
}

/*  Секция consultation-block  */

.consultation-block {
  padding: 80px 20px;
  margin-bottom: 40px;
  font-family: Montserrat, sans-serif;
  color: #FACC15;
  text-align: center;
  width: 100%;
}

/*.consultation-block h2 {
  font-size: 32px;
  margin-bottom: 40px;
  font-family: Montserrat, sans-serif;
  color: #FACC15;
}*/

.steps-column {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 20px;
  margin-left: 180px;
}

.step-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  position: relative;
}
/*
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1000px;
  margin: 80px auto;
  gap: 30px;
}
*/
.step-item {
  background-color: rgba(16, 19, 58, 0.8); /* 80% прозрачности */
  padding: 25px 30px;
  border-radius: 12px;
  font-size: 18px;
  line-height: 1.6;
  color: #E1E1E1;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  margin-top: 60px;
  transition: transform 0.3s ease;
}

.step-item span {
  font-size: 48px;
  display: block;
  margin-bottom: 10px;
}

.step-item.left {
  align-self: flex-start;
  transform: translateX(-10%);
}

.step-item.left:hover {
  transform: translateY(2%);
/*  transform: translateX(-3%);*/
}

.step-item.right {
  align-self: flex-end;
  transform: translateX(10%);
}

.step-item.right:hover {
  transform: translateY(2%);
/*  transform: translateX(3%); */
}

.image-column {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
}

.image-column img {
  max-width: 100%;
  height: auto;
  max-height: 875px;
  border-radius: 20px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
  margin-left: 380px;
  margin-top: 40px;
  opacity: 0.85;
}

@media (max-width: 1024px) {
  .step-item,
  .step-item.left,
  .step-item.right {
    align-self: center;
    transform: none;
    width: 100%;
  }

  .image-column {
    justify-content: center;
  }

  .image-column img {
    max-height: 300px;
  }
}

/*  Секция Cases-reviews-section  */

.cases-reviews-section {
  padding: 80px 20px 120px 20px;
  /*max-width: 1400px;*/
  margin: 0 auto;
  background-color: #0C284D;
}
/*
.cases-reviews-section h2 {
  text-align: center;
  font-size: 32px;
  font-family: Montserrat, sans-serif;
  color: #FACC15;
  margin-bottom: 60px;
}
*/

.case-before {color: #E82AE7 !important;}

.case-after {color: greenyellow !important;}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
  margin-top: 60px;
}

.case-item {
  background-color: rgba(16, 19, 58, 0.9);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.case-item:hover {
  transform: translateY(-5px);
}

.case-item h3 {
  color: #38BDF8;
  margin-bottom: 15px;
}

.case-image {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.case-image img{
  width: 390px;
  height: 260px;
  background-color: #1F1F1F;
  border-radius: 8px;
  object-fit: cover;
}

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

.review-item {
  /*background-color: rgba(16, 19, 58, 0.1);*/
  background: url('../img/phone_cards.jpg') no-repeat center center/cover;
  position: relative;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  overflow: hidden;
  z-index: 0;
  transition: transform 0.3s;
}

.review-item:hover {
  transform: translateY(-5px);
}

.review-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3); /* степень затемнения */
  border-radius: 12px;
  z-index: 1;
}

.review-item * {
  position: relative;
  z-index: 2; /* Контент поверх затемнения */
}

.review-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.review-item p {
  font-size: 18px;
  line-height: 1.5;
  color: #E1E1E1;
}

.review-item .name {
  margin-top: 10px;
  font-weight: bold;
  color: #FACC15;
}

/*  Секция why-me-section  */

.why-me-section {
  padding: 80px 20px 40px 20px;
 /*max-width: 1400px;*/
  margin: 0 auto;
  text-align: center;
}

/*.why-me-section h2 {
  font-size: 32px;
  font-family: Montserrat, sans-serif;
  color: #FACC15;
  margin-bottom: 60px;
}
*/

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  justify-items: center;
  margin-bottom: 80px;
  margin-top: 60px;
}

.advantage-item {
  background-color: rgba(16, 19, 58, 0.9);
  padding: 30px 20px;
  border-radius: 16px;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s;
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-item img {
  width: 360px;
  height: 360px;
  margin-bottom: 20px;
}

.advantage-item p {
  font-size: 18px;
  line-height: 1.5;
  color: #E1E1E1;
}

/* FAQ секция */
.faq-section {
  padding: 80px 20px 80px 20px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(16, 19, 58, 0.9);
}

.faq-container {
  max-width: 800px;
  margin: 60px auto 0;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  background-color: rgba(5, 11, 37, 0.8);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid rgba(90, 255, 255, 0.2);
}

.faq-question:hover {
  background-color: rgba(90, 255, 255, 0.1);
}

.faq-question span {
  font-size: 18px;
  font-weight: 500;
  color: #E1E1E1;
  text-align: left;
  flex: 1;
}

.faq-toggle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #5AFFFF;
  color: #050B25;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  transition: transform 0.3s ease, background-color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-toggle:hover {
  background-color: #63FDFF;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: rgba(5, 11, 37, 0.6);
}

.faq-answer.active {
  max-height: 200px;
}

.faq-answer p {
  padding: 25px 30px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #D1D1D1;
  text-align: left;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .faq-question {
    padding: 20px 20px;
  }
  
  .faq-question span {
    font-size: 16px;
  }
  
  .faq-answer p {
    padding: 20px 20px;
    font-size: 15px;
  }
  
  .faq-toggle {
    width: 25px;
    height: 25px;
    font-size: 16px;
  }
}

/* Заключительный блок CTA */
.final-cta-section {
  padding: 80px 20px 40px 20px;
  margin: 0 auto;
  text-align: center;
  background: transparent;
}

.cta-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.cta-text h2 {
  margin-bottom: 20px;
}

.cta-text p {
  font-size: 18px;
  line-height: 1.6;
  color: #D1D1D1;
  margin-bottom: 30px;
}

.contact-form {
  background-color: rgba(16, 19, 58, 0.9);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  text-align: left;
}

.contact-form h3 {
  color: #5AFFFF;
  font-size: 24px;
  margin-bottom: 25px;
  text-align: center;
}

.contact-form input {
  width: calc(100% - 30px);
  padding: 15px;
  margin-bottom: 20px;
  border: 2px solid rgba(90, 255, 255, 0.3);
  border-radius: 8px;
  background-color: rgba(5, 11, 37, 0.8);
  color: #E1E1E1;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.contact-form input:focus {
  outline: none;
  border-color: #5AFFFF;
}

.contact-form input::placeholder {
  color: #888;
}

/* Стили для полей телефона в форме контактов */
.contact-form .phone-input {
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.contact-form .phone-input.error {
  border-color: #F44336 !important;
  animation: shake 0.5s ease-in-out;
}

.contact-form button {
  width: calc(100%);
  padding: 15px;
  background-color: #5AFFFF;
  color: #050B25;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 20px;
}

.contact-form button:hover {
  background-color: #63FDFF;
}

.form-agreement {
  font-size: 12px;
  line-height: 1.4;
  color: #888;
  text-align: center;
}

.form-agreement a {
  color: #5AFFFF;
  text-decoration: none;
}

.form-agreement a:hover {
  text-decoration: underline;
}

/* Футер */
.footer {
  background-color: rgba(5, 11, 37, 0.95);
  padding: 60px 20px 30px;
  margin-top: 60px;
}

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

.footer-section h4 {
  color: #5AFFFF;
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}

.footer-section p {
  color: #D1D1D1;
  margin-bottom: 10px;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(90, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background-color: rgba(90, 255, 255, 0.2);
}

.social-link img {
  width: 25px;
  height: 25px;
}

.telegram-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 25px;
  background-color: #5AFFFF;
  color: #050B25;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.telegram-button:hover {
  background-color: #63FDFF;
}

.telegram-button img {
  width: 20px;
  height: 20px;
}

.portfolio-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 25px;
  background-color: rgba(90, 255, 255, 0.1);
  color: #D1D1D1;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-top: 15px;
  border: 1px solid rgba(90, 255, 255, 0.3);
}

.portfolio-link:hover {
  background-color: rgba(90, 255, 255, 0.2);
  color: #5AFFFF;
  border-color: rgba(90, 255, 255, 0.5);
}

.portfolio-link img {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  border-top: 1px solid rgba(90, 255, 255, 0.2);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: #888;
  margin: 5px 0;
  font-size: 14px;
}



/* Комплексная адаптация для мобильных устройств */
@media (max-width: 768px) {
  /* Общие стили */
  h1 {
    font-size: 36px !important;
  }
  
  h2 {
    font-size: 28px !important;
  }
  
  p {
    font-size: 16px !important;
  }
  
  /* Навигация */
  .navbar {
    padding: 10px 0;
  }
  
  .navbar-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
  }
  
  .navbar-logo {
    margin-left: 0;
  }
  
  .navbar-logo img {
    height: 40px;
  }
  
  /* Показываем кнопку-бургер */
  .navbar-burger {
    display: flex;
  }
  
  /* Скрываем обычное меню и CTA на мобильных */
  .navbar-menu,
  .navbar-cta {
    display: none;
  }
  
  /* Мобильное меню */
  .navbar-menu.mobile-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(5, 11, 37, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(90, 255, 255, 0.2);
    padding: 20px 0;
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .navbar-menu.mobile-open ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }
  
  .navbar-menu.mobile-open ul li {
    margin: 0;
    border-bottom: 1px solid rgba(90, 255, 255, 0.1);
  }
  
  .navbar-menu.mobile-open ul li:last-child {
    border-bottom: none;
  }
  
  .navbar-menu.mobile-open ul li a {
    font-size: 18px;
    padding: 15px 20px;
    display: block;
    color: #E1E1E1;
    transition: all 0.3s ease;
  }
  
  .navbar-menu.mobile-open ul li a:hover {
    background-color: rgba(90, 255, 255, 0.1);
    color: #5AFFFF;
  }
  
  /* Показываем CTA кнопку в мобильном меню */
  .navbar-menu.mobile-open .mobile-cta {
    display: block !important;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(90, 255, 255, 0.2);
    margin-top: 20px;
  }
  
  .navbar-menu.mobile-open .mobile-cta .mobile-cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  
  /* Скрываем CTA кнопку по умолчанию на мобильных */
  .mobile-cta {
    display: none;
  }
  
  /* Скрываем мобильную CTA кнопку на десктопе */
  @media (min-width: 769px) {
    .mobile-cta {
      display: none !important;
    }
  }
  
  /* Hero секция */
  .hero-section {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }
  
  .hero-head {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .hero-image {
    max-width: 100%;
    height: auto;
  }
  
  .cta-button {
    padding: 12px 24px;
    font-size: 16px;
  }
  
  /* Блок задач */
  .tasks-block {
    padding: 40px 20px;
  }
  
  .tasks-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px auto;
  }
  
  .task-item img {
    width: 200px;
    height: 200px;
    margin: 20px;
  }
  
  /* Блок консультации */
  .consultation-block {
    padding: 40px 20px;
  }
  
  .steps-column {
    flex-direction: column;
    margin-left: 0;
    padding: 20px;
  }
  
  .steps-list {
    flex-direction: column;
    gap: 20px;
  }
  
  .step-item {
    text-align: center;
    padding: 15px;
  }
  
  .image-column img {
    max-width: 100%;
    height: auto;
  }
  
  /* Кейсы и отзывы */
  .cases-reviews-section {
    padding: 40px 20px;
  }
  
  .cases-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .case-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    max-height: 200px;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .review-item {
    padding: 20px;
  }
  
  .review-item img {
    width: 60px;
    height: 60px;
  }
  
  /* Почему мы */
  .why-me-section {
    padding: 40px 20px;
  }
  
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }
  
  .advantage-item {
    padding: 20px;
  }
  
  .advantage-item img {
    width: 280px;
    height: 280px;
  }
  
  /* FAQ */
  .faq-section {
    padding: 40px 20px;
  }
  
  .faq-container {
    margin: 40px auto 0;
  }
  
  /* CTA блок */
  .final-cta-section {
    padding: 40px 20px;
  }
  
  .cta-content {
    gap: 30px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer {
    padding: 40px 20px 20px;
  }
  
  .telegram-button {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Адаптация для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
  .navbar-container {
    padding: 0 25px;
  }
  
  .navbar-logo {
    margin-left: 10px;
  }
  
  .navbar-cta {
    margin-right: 10px;
  }
  
  .navbar-cta-button {
    padding: 10px 18px;
    font-size: 13px;
  }
  
  .hero-section {
    padding: 40px;
  }
  
  .hero-head h1 {
    font-size: 48px;
  }
  
  .hero-head h2 {
    font-size: 28px;
  }
  
  .tasks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .case-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
    max-height: 180px;
  }
  
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cta-content {
    gap: 40px;
  }
}

/* Адаптация для очень маленьких экранов */
@media (max-width: 480px) {
  .hero-section {
    padding: 15px;
  }
  
  h1 {
    font-size: 28px !important;
  }
  
  h2 {
    font-size: 24px !important;
  }
  
  .cta-button {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .task-item img {
    width: 150px;
    height: 150px;
    margin: 15px;
  }
  
  .advantage-item img {
    width: 200px;
    height: 200px;
  }
  
  .modal-content {
    margin: 5% auto;
    padding: 20px 15px;
    width: 98%;
  }
  
  .contact-form {
    padding: 20px 15px;
  }
  
  .footer-content {
    gap: 20px;
  }
}

/* Чат-виджет */
.chat-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  font-family: Inter, sans-serif;
}

/* Кнопка открытия чата */
.chat-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #5AFFFF, #38BDF8);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(90, 255, 255, 0.4);
  transition: all 0.3s ease;
  position: relative;
  animation: chatFloat 3s ease-in-out infinite;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(90, 255, 255, 0.6);
}

@keyframes chatFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-avatar-fallback {
  font-size: 24px;
  color: white;
}

/* Окно чата */
.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 400px;
  height: 660px;
  background: rgba(5, 11, 37, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(90, 255, 255, 0.2);
}

.chat-window.open {
  display: flex;
  animation: chatSlideUp 0.3s ease-out;
}

@keyframes chatSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Заголовок чата */
.chat-header {
  background: linear-gradient(135deg, #5AFFFF, #38BDF8);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #050B25;
}

.chat-assistant-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-assistant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-assistant-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-assistant-avatar-fallback {
  font-size: 18px;
  color: white;
}

.chat-assistant-name {
  font-weight: bold;
  font-size: 16px;
}

.chat-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #050B25;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Область сообщений */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-message.user {
  flex-direction: row-reverse;
}

.message-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(90, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-avatar-fallback {
  font-size: 16px;
  color: #5AFFFF;
}

.message-content {
  flex: 1;
  max-width: 80%;
}

.message-text {
  background: rgba(16, 19, 58, 0.8);
  padding: 12px 16px;
  border-radius: 18px;
  color: #E1E1E1;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.chat-message.user .message-text {
  background: linear-gradient(135deg, #5AFFFF, #38BDF8);
  color: #050B25;
}

.message-time {
  font-size: 11px;
  color: #888;
  margin-top: 5px;
  text-align: right;
}

.chat-message.user .message-time {
  text-align: left;
}

/* Область ввода */
.chat-input-container {
  padding: 20px;
  border-top: 1px solid rgba(90, 255, 255, 0.2);
  background: rgba(5, 11, 37, 0.8);
}

.chat-input-wrapper {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
  align-items: center;
}

.chat-input-wrapper input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(90, 255, 255, 0.3);
  border-radius: 25px;
  background: rgba(16, 19, 58, 0.8);
  color: #E1E1E1;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.chat-input-wrapper input:focus {
  border-color: #5AFFFF;
}

.chat-input-wrapper input::placeholder {
  color: #888;
}

.chat-send-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #5AFFFF, #38BDF8);
  color: #050B25;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.chat-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 255, 255, 0.3);
}

.chat-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.chat-privacy {
  font-size: 11px;
  color: #888;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.3;
}

.chat-privacy a {
  color: #5AFFFF;
  text-decoration: none;
}

.chat-privacy a:hover {
  text-decoration: underline;
}

.chat-clear-btn {
  width: 100%;
  padding: 8px 16px;
  background: rgba(90, 255, 255, 0.1);
  color: #5AFFFF;
  border: 1px solid rgba(90, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-clear-btn:hover {
  background: rgba(90, 255, 255, 0.2);
  border-color: rgba(90, 255, 255, 0.5);
}

/* Анимация отставания при прокрутке */
.chat-widget.scroll-lag {
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.chat-widget.scroll-up {
  transform: translateY(-60px);
}

.chat-widget.scroll-down {
  transform: translateY(0px);
}

/* Анимация возврата с ускорением и замедлением */
.chat-widget.returning {
  transition: transform 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chat-widget.returning-slow {
  transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Эффект отскока от нижнего края */
.chat-widget.bouncing {
  animation: bounceFromBottom 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceFromBottom {
  0% {
    transform: translateY(0px);
  }
  20% {
    transform: translateY(-8px);
  }
  40% {
    transform: translateY(0px);
  }
  60% {
    transform: translateY(-4px);
  }
  80% {
    transform: translateY(0px);
  }
  90% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .chat-widget {
    bottom: 15px;
    right: 15px;
  }
  
  .chat-toggle {
    width: 50px;
    height: 50px;
  }
  
  .chat-avatar {
    width: 40px;
    height: 40px;
  }
  
  .chat-window {
    width: calc(100vw - 30px);
    max-width: 400px;
    height: 600px;
    bottom: 70px;
  }
  
  .chat-messages {
    padding: 15px;
  }
  
  .chat-input-container {
    padding: 15px;
  }
  
  .message-text {
    font-size: 13px;
  }
}

/* Анимация печати */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: rgba(16, 19, 58, 0.8);
  border-radius: 18px;
  color: #888;
  font-size: 14px;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #5AFFFF;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}