@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* Base */

html {
  scroll-behavior: smooth;
} /* Плавный скролл внутри страницы */

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.none {
  display: none !important;
} /* Данный класс скрывает эл-ты со страницы, чтобы они не отвлекали во время работы над отдельным блоком. Применим преимущественно при мобильной адаптации */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
/* Хорошая практика - стилизовать по классам */

.header {
  position: relative;
  overflow: hidden; /* Чтобы элементы, находящиеся в классе, не выходили за его пределы. В данном случае - элементы видеофона */
  padding-top: 80px;
  padding-bottom: 80px;
  border-bottom-right-radius: 100px;
  /* background: #252525 linear-gradient(158deg, #2f2f2f 0%, #202020 100%); */
  background-color: #000;
  color: #fff;
}

.header .container {
  position: relative;
  z-index: 9;
}

.header-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-bottom-right-radius: 100px;
  opacity: 0.5;
}

.header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 60px;
}

.header-img {
  border-radius: 80px;
}

.header-title {
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 60px;
}

.header-text {
  margin-bottom: 20px;
  font-weight: 300;
  font-size: 26px;
}

.header-btns {
  display: flex;
  column-gap: 20px;
}

.btn {
  height: 48px;
  padding-top: 15px;
  padding-left: 25px;
  padding-right: 25px;
  font-size: 16px;
  background-color: #000;
  border-radius: 8px;
  color: #fff;
  line-height: 1;
  transition: all 0.2s ease-in;
}

.btn:hover {
  background-color: #1782cf;
}

.btn-outline {
  height: 48px;
  padding-top: 15px;
  padding-left: 25px;
  padding-right: 25px;
  font-size: 16px;
  border: 1px solid #3b3b3b;
  border-radius: 8px;
  color: #fff;
  line-height: 1;
  transition: all 0.2s ease-in;
}

.btn-outline:hover {
  border-color: #1782cf;
}

/* Portfolio */

.portfolio {
  padding: 80px 0;
}

.portfolio-title {
  margin-bottom: 65px;
  font-size: 52px;
  font-weight: 700;
  text-align: center;
}

.projects {
  display: flex;
  flex-direction: column;
  row-gap: 70px;
  align-items: center;
}

.project {
  text-align: center;
}

.project-img {
  margin-bottom: 30px;
  border-radius: 30px;
  transition: opacity 0.2s ease-in;
}

.project-img:hover {
  opacity: 0.8;
}

.project-title {
  font-size: 22px;
}

.project-title a {
  color: #000;
  text-decoration: underline;
}

/* Contacts */

.contacts {
  padding: 80px 0;
  background-color: #252525;
  border-top-left-radius: 100px;
  color: #fff;
}

.contacts-title {
  margin-bottom: 65px;
  text-align: center;
  font-size: 52px;
  font-weight: 700;
}

.messangers {
  display: flex;
  flex-wrap: wrap;
  column-gap: 30px;
  row-gap: 30px;
} /* flex-wrap отвечает за перенос элементов на след. строку, если они не помещаются на одной */

.messanger {
  flex-grow: 1;
  padding: 46px 20px;
  border-radius: 20px;
  border: 1px solid #363636;
  color: #fff;
  display: flex;
  column-gap: 15px;
  align-items: center;
  font-size: 20px;
  transition: background-color 0.2s ease-in;
}

.messanger:hover {
  background-color: #1e1e1e;
}

/* Footer */

.footer {
  padding: 30px 0;
  background-color: #1e1e1e;

  color: #5d5d5d;
}

.footer a {
  color: #5886a8;
}

.footer-inner {
  font-size: 14px;
  text-align: center;
}

.footer-inner p + p {
  margin-top: 15px;
}

/* Inner page  */

.inner-page {
  padding: 80px 0 40px;
}

.inner-page-details {
  display: flex;
  flex-direction: column;
  row-gap: 25px;
  align-items: center;
  margin-bottom: 40px;
  text-align: center;
}

.inner-page-title {
  font-size: 52px;
  font-weight: 700;
}

.inner-page-text {
  max-width: 570px;
  display: flex;
  flex-direction: column;
  row-gap: 25px;
  color: #555555;
  line-height: 1.5;
}

.inner-page-link {
  color: #000;
}

.inner-page-link a {
  color: #000;
  text-decoration: underline;
}

.inner-page-img {
  display: block;
  margin: 0 auto;
  margin-bottom: 40px;
}

.inner-page-backlink {
  max-width: 770px;
  padding: 30px;
  margin: 0 auto;

  display: flex;
  column-gap: 10px;
  align-items: center;
  justify-content: center;

  text-align: center;
  background-color: #f1f1f1;
  color: #000;
  transition: all 0.2s ease-in;
}

.inner-page-backlink:hover {
  background-color: #dedede;
}
