/*підключення шрифтів*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.container {
  max-width: 970px;
  padding: 0 15px;
  margin: 0 auto;
}

p {
  color: #6a859c;
  line-height: 1.8;
}

.hide {
    display: none; !important;
}
.subtitle {
  font-size: 17px;
  line-height: 118%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8e8e9c;
}
.title-wrapper {
}
.title {
  margin-bottom: 17px;
  font-size: 30px;
  line-height: 120%;
  letter-spacing: 0.17em;
  text-transform: uppercase;

  color: #676770;
}
.common-section {
  text-align: center;
  padding: 80px 0;
}
.common-section--dark {
  background-color: #000000;
}
.common-section--dark * {
  color: #fff;
}
/*шапка профілю*/
.header {
  /*позиціонування щоб при зміні екрану, шапка адаптовувалась*/
  padding: 20px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1); /*тінь для шапки*/
}
.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-style: 25px;
  line-height: 25px;
  letter-spacing: 4px;
  color: #69b9ff;
  text-transform: uppercase;
}
.header__nav ul {
  display: flex;
  gap: 40px;
}
.header__nav a {
  font-style: 16px;
  line-height: 20px;
  color: #676770;
  transition: color 0.2s;
}
.header__nav a:hover {
  color: #0082f3;
}

/*main*/
.main {
}
.welcome {
  min-height: 600px;
  height: 100vh;
  padding: 195px 0;

  display: flex;
  justify-content: center;
  align-items: center;

  color: white;
  text-align: center;

  background-color: #4b4949;
  background-image: url(./img/mainphoto.png);
  background-size: cover;
  background-position: center;
}
.welcome__heading {
  margin-bottom: 100px;
  font-size: 59px;
  line-height: 1;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.welcome__links > * + * {
  margin-left: 20px;
}
.link-primary:hover {
  background-color: #7cc2ff;
}
.link:hover {
  background-color: rgba(99, 95, 95, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}
.link-primary {
  display: inline-block;
  padding: 10px 30px;

  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  background: #69b9ff;
  border: 1px solid #69b9ff;
  border-radius: 4px;

  transition: color 0.2s;
}
.link {
  display: inline-block;
  padding: 10px 30px;

  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  border: 1px solid #fff;
  border-radius: 4px;
}

/*about*/
.about {
  text-align: center;
}

.about .cards-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 60px;
}
.about .card {
  padding: 35px 15px 25px;
  width: 300px;
  border: 1px solid #dcebf7;
  border-radius: 5px;
}
.about .card img {
  width: 94px;
  height: 94px;
  object-fit: contain;
}
.about .card h4 {
  margin-bottom: 15px;
  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #676770;
}

/*service*/
.service .cards-wrapper {
  display: flex;
  justify-content: space-between;
}
.service .card {
  width: 45%;
}
.service .card img {
  margin-bottom: 20px;
}
.service .card h4 {
  margin-bottom: 20px;

  font-size: 20px;
  line-height: 150%;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #fff;
}
.service .card p {
  font-size: 14px;
  line-height: 179%;
  color: #fff;
}
.service .link {
  margin-top: 15px;
}

/*tabs*/

.tabs__nav {
  margin-top: 70px;
  margin-bottom: 50px;
}
.tabs__nav button {
  padding: 0 30px;

  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;

  background: #92a0ad;
  border-radius: 4px;
}
.tabs__nav button.active {
  background: #2e80b6;
}
.tabs__nav button + button {
  margin-left: 15px;
}
.tabs__item {
    animation: fade 1s;
}

@keyframes fade {
    from {
        opacity:0.1;
    }
    to {
        opacity: 0.7;
    }
}
.tabs__item img {
  margin-bottom: 15px;
}
.tabs__item h4 {
  margin-bottom: 15px;
  font-size: 31px;
  line-height: 116%;
  color: #676770;
}
.tabs__desc {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

/*підвал*/

.footer__desc {
  margin-bottom: 50px;
}
.footer__desc h4 {
  margin-bottom: 25px;

  font-size: 18px;
  line-height: 111%;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #676770;
}
.footer__desc li {
  height: 30px;
}
.footer__desc li + li {
  margin-top: 5px;
}
.footer__desc-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px 40px;
}
.footer__desc-container > * {
  width: 30%;
  min-width: 220px;
}

.footer__links li {
  font-size: 13px;
  line-height: 154%;
  color: #668cad;
}
.footer__social a {
  font-size: 14px;
  line-height: 143%;
  color: #668cad;
}
.footer__social img {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer__copy {
  padding: 40px 0;
  text-align: center;
  background-color: #383838;
}
.footer__copy p {
  color: #9e9e9e;
}

/*адаптація під всі пристрої*/

@media (max-width: 400px) {
  .welcome__heading {
    font-size: 40px;
    margin-bottom: 50px;
  }

  .welcome__links a {
    display: block;
    margin-top: 20px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .body {
    font-size: 12px;
  }
  .about .card h4 {
    font-size: 16px;
  }

  .service .card h4 {
    font-size: 16px;
  }

  .service .card .link {
    font-size: 14px;
  }
}

@media (max-width: 800px) {
  .header__nav li + li {
    margin-left: 15px;
  }

  .service .cards-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .service .card {
    width: 80%;
  }

  .title-wrapper {
    margin-bottom: 40px;
  }

  .tabs__nav button {
    display: block;
    margin: 0 auto;
    padding: 10px 30px;
  }

  .tabs__nav button + button {
    margin-left: auto;
    margin-top: 20px;
  }

  .tabs__item h4 {
    font-size: 24px;
  }
}

@media (max-width: 829px) {

    .footer__desc-container{
        justify-content: space-evenly;
    }
}
