/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

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

/* Верхняя панель (новая) */
.upper {
  background-color: rgba(7, 126, 11, 0.5);

  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.upper-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: #fff;
  text-decoration: none;
}

.upper-nav {
  display: flex;
  gap: 30px;
}

.upper-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.3s;
  padding: 5px 0;
  position: relative;
}

.upper-nav a:hover {
  opacity: 0.8;
}

.upper-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #fff;
  transition: width 0.3s;
}

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

/* Шапка (ваш существующий стиль) */
.main-header {
  background-color: #000;
  color: #fff;
  padding: 100px 0 60px;
  text-align: center;
}

.main-header h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  letter-spacing: 5px;
}

.consult-btn {
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 12px 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
}

.consult-btn:hover {
  background-color: #fff;
  color: #000;
}

/* Подвал (новый) */
.footer {
  background-color: #000;
  color: #fff;
  padding: 50px 0 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-contacts {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contacts p {
  margin: 0;
}

.footer-copyright {
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
  margin-top: 30px;
}

/* Остальные ваши стили (без изменений) */
.timeline-section {
  padding: 60px 0;
}

.timeline-item {
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.timeline-date {
  color: #777;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.timeline-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #222;
}

.timeline-item p {
  color: #666;
  max-width: 800px;
}

.services-section {
  padding: 60px 0;
  background-color: #f0f0f0;
  text-align: center;
}

.services-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.services-section h3 {
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 40px;
}

.gallery-section {
  background-color: #fff;
  text-align: center;
}

.gallery-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.gallery-section h3 {
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 40px;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-item:hover img {
  transform: scale(1.05);
}
.footer {
  background-color: rgba(7, 126, 11, 0.5);

  color: #fff;
  padding: 50px 0 20px;
  margin-top: 80px; /* Новый отступ сверху */
}

/* Адаптивность */
@media (max-width: 768px) {
  .upper-nav {
    gap: 15px;
  }

  .footer-nav {
    gap: 20px;
    flex-direction: column;
    align-items: center;
  }

  .main-header {
    padding: 80px 0 40px;
  }

  .main-header h1 {
    font-size: 2.2rem;
  }
}
