html {

}

body {
  font-family: "Roboto", sans-serif;
  background-color: #1f1e1e;
}

h1, h2, h3 {
  margin: 0;
  padding: 0;
  color: #fff;
}

h1 {
  margin-bottom: 80px;
}

hr {
  width: 100%;
  max-width: 80%;
  border-bottom: 2px solid #00ff40;
}

.header {
  padding-top: 50px;
  padding-bottom: 50px;
}

.header__wrap {
  display: flex;
  justify-content: space-between;
}

.logo img {
  max-width: 280px;
}

.main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

section {
  padding: 20px 10px;
  margin-bottom: 40px;
}

.layout__row {
  display: flex;
}

.layout__img {
  display: inline-block;
  border-radius: 30px;
  box-shadow: 0 0 5px 0 #333232;

}
.layout__link {
  display: flex;
  width: 100%;
}

.layout__link:hover .layout__img {
  filter: brightness(70%);
  transition: filter 0.3s;
}

.layout__link:focus {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* контакты */
.social {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.social__list {
  display: flex;
  padding: 0;
  max-width: 300px;
  list-style: none;
  justify-content: space-between; 
  align-items: center; 
}

.social__item:not(:last-child) {
  margin-right: 10px;
}

.social__link {
  filter: grayscale(100%);
  transition: filter .3s;
}

.social__link:hover {
  filter: grayscale(0)
}

.social__icon {
  display: flex;
  width: 40px;
  height: 40px;
}



.social a:hover {
  color: #007bff; /* Измените цвет при наведении */
}

/* Адаптивность для маленьких экранов */
@media (max-width: 768px) {
  .contacts-social {
    flex-direction: column; /* Контакты и соцсети располагаются друг под другом */
  }

  .contacts,
  .social {
    width: 100%; /* Занимают всю ширину на маленьких экранах */
    text-align: left; /* Выравнивает текст и иконки по левому краю на маленьких экранах */
  }

  .social {
    margin-top: 20px;
  }
  .social a {
    margin-left: 0;
    margin-right: 10px; /* Добавляем отступ справа между иконками */
  }
}
