/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

/* Container Styling */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Styling */
.header {
  background-color: #d9e6c7;
  color: #555;
  padding: 1rem 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* Раздвигаем логотип и бургер */
  align-items: center;
  position: relative;
}

.logo {
  height: 16px; /* Свой размер */
  font-size: 1.5rem;
  margin: 10;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: #2ecc71;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a:hover {
  color: #27ae60;
}
/* Бургер-кнопка */
.menu-toggle {
  display: none; /* По умолчанию скрыта */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}
.menu-toggle span {
  height: 3px;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero-content {
  display: flex;
  align-items: center;       /* Вертикальное выравнивание по центру */
  justify-content: space-between; /* Раздвигаем элементы по краям */
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  max-width: 600px;
  width: 100%;
}

.side-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.avatar {
  width: 180px;
  height: 180px;
  object-fit: cover; /* Обрезает края, сохраняя пропорции */
  border-radius: 50%; /* Делает изображение круглым */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* About Section */
.about-section {
  padding: 40px;
  text-align: center;
}

.about-content {
  background-color: #fff;
  border-radius: 20px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-content h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.about-content p {
  margin-bottom: 20px;
  color: #555;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Services Section */
/* Обёртка карточек */

.services-section {
  padding: 10px 10px;
}

.services-section .container {
  display: flex;
  flex-wrap: wrap; /* Разрешаем перенос на следующую строку */
  justify-content: center; /* Центрируем карточки по горизонтали */
  gap: 30px; /* Расстояние между карточками */
}

.service-card {
  background-color: #fff;
  border-radius: 20px;
  padding: 30px;
  margin: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 calc(33% - 20px); /* По 3 карточки в ряд */
  min-width: 280px; /* Минимальная ширина для мобильных */
  max-width: 350px; /* Максимальная ширина для десктопов */
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.service-card h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.service-card p {
  margin-bottom: 20px;
  color: #555;
}
/* === Секция "Проекты" === */
.projects {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

.projects h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

/* === Контейнер проектов (сетка) === */
.project-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* === Карточка проекта === */
.project-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  width: calc(50% - 15px); /* По две карточки в ряд */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Изображение внутри карточки */
.project-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Текстовое содержимое карточки */
.project-card h3 {
  font-size: 1.2rem;
  margin: 20px 20px 10px;
  color: #222;
}

.project-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0 20px 20px;
  line-height: 1.5;
}

/* Buttons */
.btn,
.btn-link {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn {
  background-color: #2ecc71;
  color: white;
  border: none;
}

.btn:hover {
  background-color: #27ae60;
}

.btn-link {
  color: #2ecc71;
  border: 2px solid #2ecc71;
}

.btn-link:hover {
  background-color: #2ecc71;
  color: white;
}

.btn-contact {
  display: inline-block;
  padding: 12px 24px;
  background-color: #2ecc71;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 30px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.btn-contact:hover {
  background-color: #27ae60;
}

/* Contact Section */
.contact-section {
  background-color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.contact-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

.contact-form input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 30px;
  font-size: 1rem;
}

.contact-section p {
  margin-top: 20px;
  color: #333;
}

/* Контакты */
.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.btn {
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-telegram {
  background-color: #0088cc;
  color: white;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
}

.phone {
  text-align: center;
  margin: 20px 0;
  font-size: 1.1rem;
}

.phone-link {
  color: #25D366;
  text-decoration: underline;
  font-weight: bold;
}

.phone-link:hover {
  color: #128c55;
}
/* Footer */
.footer {
  background-color: #d9e6c7;
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}

/* Адаптивность под мобильные устройства */
@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .side-image {
    max-width: 100%;
  }
  .avatar {
    margin: 0 auto 20px;
  }
  .avatar-wrapper {
    order: -1; /* Ставим аватар над текстом на мобильных */
  }
  .text-content {
    max-width: 100%;
  }
  .service-card {
    flex: 1 1 100%; /* На маленьких экранах — по одной карточке в ряд */
    max-width: 100%;
  }
  .services-section {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .project-card {
    width: 100%; /* Одна карточка в ряд */
  }

  .projects h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }

/* Показываем бургер на мобильных */
  .menu-toggle {
    display: flex;
  }
  .menu-toggle.cross span:nth-child(1) {
  transform: rotate(45deg);
  }
  .menu-toggle.cross span:nth-child(2) {
  opacity: 0;
  }
  .menu-toggle.cross span:nth-child(3) {
  transform: rotate(-45deg);
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

}
