body {
  line-height: 1.7;
  color: #333;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

main_text {
  text-align: center;
  font-size: 1.5rem;
  font-weight: normal;
  margin-bottom: 1rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: inherit;
  font-weight: normal;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 2px 0; /* вертикальные отступы, чтобы линия не "прилипала" */
  position: relative;
  display: inline-block;
}

/* Анимированная линия */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 0;
  height: 2px; /* толщина линии */
  background-color: currentColor; /* цвет как у текста */
  transition: width 0.3s ease;
}

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

.contacts-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem; /* расстояние между иконками */
}

.contact-item {
  display: inline-block; /* или можно оставить как есть, flex-контейнер сам управляет */
}
.contact-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.2s;
  cursor: pointer;
}

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

.contact-link {
  color: #000;
  text-decoration: none;
  border-bottom: 1px dotted #999;
}

.contact-link:hover {
  border-bottom: 1px solid #c9a37c;
  color: #c9a37c;
}
